@kedem/okdb 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +114 -3
  2. package/README.md +72 -36
  3. package/bin/okdb +1 -1
  4. package/docs/auth-and-sync.md +30 -24
  5. package/docs/auth-permissions.md +5 -4
  6. package/docs/c-bridge.md +94 -0
  7. package/docs/change-log.md +79 -36
  8. package/docs/data-model.md +35 -9
  9. package/docs/deployment.md +42 -38
  10. package/docs/diagnostics.md +61 -125
  11. package/docs/embeddings.md +143 -51
  12. package/docs/encryption.md +132 -0
  13. package/docs/files.md +64 -27
  14. package/docs/fts.md +48 -23
  15. package/docs/functions.md +109 -56
  16. package/docs/getting-started.md +121 -9
  17. package/docs/http-api.md +66 -11
  18. package/docs/http-cluster.md +80 -88
  19. package/docs/index.md +33 -15
  20. package/docs/indexes.md +53 -17
  21. package/docs/licensing.md +19 -5
  22. package/docs/logging.md +11 -22
  23. package/docs/manifest.json +6 -3
  24. package/docs/migration.md +41 -16
  25. package/docs/pipelines.md +111 -46
  26. package/docs/plugins.md +47 -15
  27. package/docs/process-registry.md +23 -24
  28. package/docs/processors.md +26 -23
  29. package/docs/querying.md +102 -29
  30. package/docs/queue.md +165 -51
  31. package/docs/resolved-fields.md +24 -1
  32. package/docs/subscriptions.md +4 -4
  33. package/docs/sync.md +9 -6
  34. package/docs/time-machine.md +52 -14
  35. package/docs/transactions.md +63 -15
  36. package/docs/ttl.md +34 -13
  37. package/docs/upgrade-2.0.md +32 -15
  38. package/docs/upgrade-2.1.md +10 -12
  39. package/docs/upgrade-3.0.md +144 -0
  40. package/docs/views.md +165 -61
  41. package/index.js +1 -1
  42. package/native/linux-x64-gnu/okdb +0 -0
  43. package/native/linux-x64-gnu/okdb-node.linux-x64-gnu.node +0 -0
  44. package/native-loader.js +1 -1
  45. package/okdb-native.js +1 -1
  46. package/package.json +1 -1
  47. package/public/features/files/parts/files-blob-status.ok.js +1 -1
  48. package/types/environment.d.ts +32 -11
  49. package/types/errors.d.ts +20 -0
  50. package/types/features/admin.d.ts +3 -5
  51. package/types/features/api.d.ts +5 -7
  52. package/types/features/embeddings.d.ts +8 -7
  53. package/types/features/engines.d.ts +9 -1
  54. package/types/features/files.d.ts +2 -1
  55. package/types/features/fts.d.ts +3 -3
  56. package/types/features/functions.d.ts +14 -8
  57. package/types/features/pipelines.d.ts +10 -10
  58. package/types/features/queue.d.ts +15 -10
  59. package/types/features/sync.d.ts +7 -0
  60. package/types/features/time-machine.d.ts +3 -0
  61. package/types/index.d.ts +3 -0
  62. package/types/okdb.d.ts +70 -7
  63. package/types/options.d.ts +12 -8
  64. package/docs/OKDB-ARCHITECTURE.md +0 -1061
package/okdb-native.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x30dd4b=_0x5df8;(function(_0x38592a,_0x98384f){const _0x2cd9eb=_0x5df8,_0x3c749a=_0x38592a();while(!![]){try{const _0x3b977a=-parseInt(_0x2cd9eb(0x493))/0x1*(parseInt(_0x2cd9eb(0x622))/0x2)+parseInt(_0x2cd9eb(0xf3))/0x3*(-parseInt(_0x2cd9eb(0x42b))/0x4)+parseInt(_0x2cd9eb(0x303))/0x5+-parseInt(_0x2cd9eb(0x2ba))/0x6+parseInt(_0x2cd9eb(0x508))/0x7*(parseInt(_0x2cd9eb(0x488))/0x8)+-parseInt(_0x2cd9eb(0x4f7))/0x9+parseInt(_0x2cd9eb(0x3b8))/0xa*(parseInt(_0x2cd9eb(0x40b))/0xb);if(_0x3b977a===_0x98384f)break;else _0x3c749a['push'](_0x3c749a['shift']());}catch(_0x549c38){_0x3c749a['push'](_0x3c749a['shift']());}}}(_0x40a8,0xe7e24));var require$$0$6=require(_0x30dd4b(0x10b)),require$$1$1=require(_0x30dd4b(0x34e)),require$$0=require(_0x30dd4b(0x5ba)),require$$3=require(_0x30dd4b(0x20b)),require$$0$2=require(_0x30dd4b(0x42d)),require$$0$1=require(_0x30dd4b(0x61f)),require$$16=require(_0x30dd4b(0x6c6)),require$$0$3=require(_0x30dd4b(0x4a0)),require$$1=require(_0x30dd4b(0x67a)),require$$2=require(_0x30dd4b(0x454)),require$$18=require(_0x30dd4b(0x456)),require$$0$4=require('crypto'),require$$0$5=require(_0x30dd4b(0x780));function getDefaultExportFromCjs(_0x123441){const _0x480f21=_0x30dd4b;return _0x123441&&_0x123441[_0x480f21(0x3d4)]&&Object['prototype'][_0x480f21(0x300)]['call'](_0x123441,_0x480f21(0x1e3))?_0x123441[_0x480f21(0x1e3)]:_0x123441;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x34384e extends Error{constructor(_0x571ff9,_0x416c08,_0x153aa4={}){const _0x31ce07=_0x5df8;super(_0x571ff9),this[_0x31ce07(0x331)]=_0x31ce07(0x265),this[_0x31ce07(0x1a8)]=_0x416c08,this[_0x31ce07(0x77d)]=_0x153aa4,_0x153aa4[_0x31ce07(0x31d)]&&(this[_0x31ce07(0x31d)]=_0x153aa4[_0x31ce07(0x31d)]),Error[_0x31ce07(0x4d7)](this,this['constructor']);}}class _0x3d28bf extends _0x34384e{constructor(_0x2b385f,_0x438fc9,_0x4ac62e,_0x410334){const _0x27eb0a=_0x5df8;super(_0x27eb0a(0x75c)+_0x2b385f+'@'+_0x438fc9+_0x27eb0a(0x133)+_0x4ac62e+_0x27eb0a(0x3ef)+_0x410334,_0x27eb0a(0x2dc),{'type':_0x2b385f,'key':_0x438fc9,'expectedVersion':_0x4ac62e,'actualVersion':_0x410334}),this[_0x27eb0a(0x331)]=_0x27eb0a(0x7ed);}}class _0x59238b extends _0x34384e{constructor(_0x1137d9,_0xd75d1e){const _0x4c2c5b=_0x5df8;super(_0x1137d9+'@'+_0xd75d1e+_0x4c2c5b(0x60a),'NOT_FOUND',{'type':_0x1137d9,'key':_0xd75d1e}),this['name']=_0x4c2c5b(0x76f);}}class _0x119802 extends _0x34384e{constructor(_0xb62120,_0x17156e){const _0x256288=_0x5df8;super(_0xb62120+'@'+_0x17156e+_0x256288(0x66f),'ALREADY_EXISTS',{'type':_0xb62120,'key':_0x17156e}),this[_0x256288(0x331)]=_0x256288(0x47a);}}class _0x40ae68 extends _0x34384e{constructor(_0x2e73eb,_0x28ed85){const _0x235d3b=_0x5df8,_0x3d862d=typeof _0x28ed85;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x2e73eb+_0x235d3b(0x308)+_0x3d862d+_0x235d3b(0x448)+_0x28ed85,_0x235d3b(0x66e),{'index':_0x2e73eb,'key':_0x28ed85,'keyType':_0x3d862d}),this['name']=_0x235d3b(0x2a0);}}class _0x3222de extends _0x34384e{constructor(_0x4a410a){const _0x998e3f=_0x5df8,_0x5278ed=typeof _0x4a410a;super(_0x998e3f(0x777)+_0x5278ed+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0x4a410a,_0x998e3f(0x4da),{'key':_0x4a410a,'keyType':_0x5278ed}),this['name']=_0x998e3f(0x255);}}class _0x2d404d extends _0x34384e{constructor(_0x5ae0d9){const _0x3cad15=_0x5df8;super('Type\x20\x27'+_0x5ae0d9+_0x3cad15(0x5a4),'TYPE_NOT_REGISTERED',{'type':_0x5ae0d9}),this[_0x3cad15(0x331)]=_0x3cad15(0x630);}}class _0x49aecb extends _0x34384e{constructor(_0x546b9d){const _0xaba2a2=_0x5df8;super(_0xaba2a2(0x491)+_0x546b9d+_0xaba2a2(0x5f7),_0xaba2a2(0x13e),{'type':_0x546b9d}),this['name']=_0xaba2a2(0x5de);}}class _0x26aff1 extends _0x34384e{constructor(_0x2b9657,_0xabebe2){const _0x7dda90=_0x5df8;super(_0x7dda90(0x4dc)+_0xabebe2+_0x7dda90(0x269)+_0x2b9657+_0x7dda90(0x5a4),_0x7dda90(0x50c),{'type':_0x2b9657,'index':_0xabebe2}),this['name']=_0x7dda90(0x671);}}class _0x301dbb extends _0x34384e{constructor(_0x57e75a,_0x4b7389){const _0xc2272c=_0x5df8;super(_0xc2272c(0x4dc)+_0x4b7389+_0xc2272c(0x269)+_0x57e75a+'\x27\x20is\x20already\x20registered',_0xc2272c(0x6c0),{'type':_0x57e75a,'index':_0x4b7389}),this[_0xc2272c(0x331)]=_0xc2272c(0x6a3);}}class _0x39769c extends _0x34384e{constructor(_0x5de01d,_0x8a53d4={}){const _0x74186c=_0x5df8;super(_0x5de01d,_0x74186c(0x7a5),_0x8a53d4),this[_0x74186c(0x331)]=_0x74186c(0x537);}}class _0x22205a extends _0x34384e{constructor(_0x53077c,_0x868c18,_0x219e6e,_0xaa0853,_0x549470){const _0x22277a=_0x5df8;super('Unique\x20constraint\x20violated\x20on\x20'+_0x53077c+'@'+_0x868c18+_0x22277a(0x752)+_0x219e6e+']\x20already\x20maps\x20to\x20\x27'+_0xaa0853+_0x22277a(0x58a)+_0x549470+'\x27',_0x22277a(0x512),{'type':_0x53077c,'index':_0x868c18,'indexKey':_0x219e6e,'existingKey':_0xaa0853,'conflictingKey':_0x549470}),this[_0x22277a(0x331)]='OKDBUniqueConstraintError';}}class _0x1424bb extends _0x34384e{constructor(_0x44e702,_0x3a76de,_0x357ce5){const _0x23afe9=_0x5df8;super('Schema\x20validation\x20failed\x20for\x20'+_0x44e702+'@'+_0x3a76de,_0x23afe9(0x351),{'type':_0x44e702,'key':_0x3a76de,'errors':_0x357ce5}),this[_0x23afe9(0x331)]=_0x23afe9(0x390),this[_0x23afe9(0x705)]=_0x44e702,this[_0x23afe9(0xfb)]=_0x3a76de,this[_0x23afe9(0x569)]=_0x357ce5;}}class _0x365f9d extends _0x34384e{constructor(_0x18425e,_0x33c40f){const _0x478edf=_0x5df8;super(_0x478edf(0x2d4)+_0x18425e+':\x20'+_0x33c40f[_0x478edf(0x306)]+'\x20documents\x20fail\x20validation',_0x478edf(0x55c),{'type':_0x18425e,'failures':_0x33c40f}),this['name']='OKDBSchemaCollectionError',this[_0x478edf(0x705)]=_0x18425e,this['failures']=_0x33c40f;}}class _0x1a7692 extends _0x34384e{constructor(_0x254308,_0x50386c,_0x24681d,_0x43bcd7,_0x6723e0){const _0x18023a=_0x5df8;super(_0x18023a(0x10d)+_0x254308+'@'+_0x50386c+'.'+_0x24681d+_0x18023a(0x1af)+_0x43bcd7+'@'+_0x6723e0+_0x18023a(0x3ba),_0x18023a(0x502),{'sourceType':_0x254308,'sourceKey':_0x50386c,'fieldPath':_0x24681d,'targetType':_0x43bcd7,'targetKey':_0x6723e0}),this['name']=_0x18023a(0x4c1),this[_0x18023a(0x307)]=_0x254308,this[_0x18023a(0x1da)]=_0x50386c,this['fieldPath']=_0x24681d,this['targetType']=_0x43bcd7,this[_0x18023a(0x108)]=_0x6723e0;}}class _0x1b7a8c extends _0x34384e{constructor(_0x59feb8,_0x1b4d98,_0x54c212){const _0x5e710c=_0x5df8;super(_0x5e710c(0x56f)+_0x59feb8+'@'+_0x1b4d98+':\x20'+_0x54c212['length']+_0x5e710c(0x6d6),'FOREIGN_KEY_DELETE_RESTRICTED',{'targetType':_0x59feb8,'targetKey':_0x1b4d98,'references':_0x54c212}),this[_0x5e710c(0x331)]='OKDBForeignKeyDeleteError',this[_0x5e710c(0x662)]=_0x59feb8,this[_0x5e710c(0x108)]=_0x1b4d98,this[_0x5e710c(0x61a)]=_0x54c212;}}class _0x3a8832 extends _0x34384e{constructor(_0x5190e3,_0x2f6855,_0x70f7e9){const _0x3c0d86=_0x5df8;super(_0x3c0d86(0x14a)+_0x2f6855+'\x22\x20on\x20\x22'+_0x5190e3+_0x3c0d86(0xdf)+_0x70f7e9[_0x3c0d86(0x3e7)](_0x917a94=>_0x917a94[_0x3c0d86(0x6a7)]+':'+_0x917a94[_0x3c0d86(0x331)])[_0x3c0d86(0x78e)](',\x20'),_0x3c0d86(0x59a),{'type':_0x5190e3,'index':_0x2f6855,'usedBy':_0x70f7e9}),this['name']=_0x3c0d86(0x268);}}return okdbError={'OKDBError':_0x34384e,'OKDBVersionMismatchError':_0x3d28bf,'OKDBNotFoundError':_0x59238b,'OKDBAlreadyExistsError':_0x119802,'OKDBInvalidIndexKeyError':_0x40ae68,'OKDBInvalidPrimaryKeyError':_0x3222de,'OKDBTypeNotRegisteredError':_0x2d404d,'OKDBTypeAlreadyRegisteredError':_0x49aecb,'OKDBIndexNotRegisteredError':_0x26aff1,'OKDBIndexAlreadyRegisteredError':_0x301dbb,'OKDBInvalidValueError':_0x39769c,'OKDBUniqueConstraintError':_0x22205a,'OKDBSchemaValidationError':_0x1424bb,'OKDBSchemaCollectionError':_0x365f9d,'OKDBForeignKeyError':_0x1a7692,'OKDBForeignKeyDeleteError':_0x1b7a8c,'OKDBIndexHasConsumersError':_0x3a8832},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x174e76=_0x30dd4b;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0xe86adb=requireOkdbError(),_0xa1aa41={'VERSION_MISMATCH':_0xe86adb[_0x174e76(0x7ed)],'NOT_FOUND':_0xe86adb[_0x174e76(0x76f)],'ALREADY_EXISTS':_0xe86adb[_0x174e76(0x47a)],'INVALID_INDEX_KEY':_0xe86adb[_0x174e76(0x2a0)],'INVALID_PRIMARY_KEY':_0xe86adb[_0x174e76(0x255)],'TYPE_NOT_REGISTERED':_0xe86adb[_0x174e76(0x630)],'TYPE_ALREADY_REGISTERED':_0xe86adb[_0x174e76(0x5de)],'INDEX_NOT_REGISTERED':_0xe86adb['OKDBIndexNotRegisteredError'],'INDEX_ALREADY_REGISTERED':_0xe86adb[_0x174e76(0x6a3)],'INVALID_VALUE':_0xe86adb[_0x174e76(0x537)],'UNIQUE_CONSTRAINT':_0xe86adb[_0x174e76(0x45e)],'SCHEMA_VALIDATION_FAILED':_0xe86adb['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0xe86adb[_0x174e76(0x2b0)],'FOREIGN_KEY_VIOLATION':_0xe86adb[_0x174e76(0x4c1)],'FOREIGN_KEY_DELETE_RESTRICTED':_0xe86adb[_0x174e76(0x29f)],'INDEX_HAS_CONSUMERS':_0xe86adb[_0x174e76(0x268)]};class _0x1172b extends _0xe86adb[_0x174e76(0x265)]{constructor(_0x446622,_0x485e93){const _0x29b0cd=_0x174e76;super(_0x446622+':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet'+(_0x485e93?'\x20('+_0x485e93+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x446622}),this[_0x29b0cd(0x331)]='OKDBNotImplementedNativeError';}}function _0x484157(_0x4fbea9){const _0x3bca94=_0x174e76;if(!_0x4fbea9||typeof _0x4fbea9!==_0x3bca94(0x218)||!_0x4fbea9['__okdb'])return _0x4fbea9;delete _0x4fbea9[_0x3bca94(0x797)];const _0xcae30d=_0x4fbea9['code'];if(_0xcae30d===_0x3bca94(0x4c6)||_0xcae30d===_0x3bca94(0x2de)||_0xcae30d===_0x3bca94(0x576)){const _0xc14ef6=_0xcae30d===_0x3bca94(0x2de)?TypeError['prototype']:_0xcae30d===_0x3bca94(0x576)?RangeError[_0x3bca94(0x4d3)]:Error[_0x3bca94(0x4d3)];Object[_0x3bca94(0xea)](_0x4fbea9,_0xc14ef6),_0x4fbea9[_0x3bca94(0x331)]=_0xcae30d;if(_0x4fbea9[_0x3bca94(0x77d)]&&_0x4fbea9[_0x3bca94(0x77d)][_0x3bca94(0x2b6)]!==undefined)_0x4fbea9[_0x3bca94(0x2b6)]=_0x4fbea9['details'][_0x3bca94(0x2b6)];return delete _0x4fbea9[_0x3bca94(0x1a8)],delete _0x4fbea9['details'],_0x4fbea9;}const _0x431573=_0xa1aa41[_0xcae30d];Object[_0x3bca94(0xea)](_0x4fbea9,(_0x431573||_0xe86adb[_0x3bca94(0x265)])[_0x3bca94(0x4d3)]),_0x4fbea9['name']=_0x431573?_0x431573[_0x3bca94(0x331)][_0x3bca94(0x23c)](/^OKDB/,_0x3bca94(0x29b)):_0x3bca94(0x265);const _0x2854cd=_0x4fbea9[_0x3bca94(0x77d)]||{};_0xcae30d===_0x3bca94(0x351)&&(_0x4fbea9[_0x3bca94(0x705)]=_0x2854cd['type'],_0x4fbea9[_0x3bca94(0xfb)]=_0x2854cd[_0x3bca94(0xfb)],_0x4fbea9[_0x3bca94(0x569)]=_0x2854cd[_0x3bca94(0x569)]);_0xcae30d==='SCHEMA_COLLECTION_INVALID'&&(_0x4fbea9[_0x3bca94(0x705)]=_0x2854cd[_0x3bca94(0x705)],_0x4fbea9[_0x3bca94(0x274)]=_0x2854cd[_0x3bca94(0x274)]);if(_0xcae30d===_0x3bca94(0x502)){for(const _0x3bc3e3 of[_0x3bca94(0x307),_0x3bca94(0x1da),'fieldPath','targetType',_0x3bca94(0x108)])_0x4fbea9[_0x3bc3e3]=_0x2854cd[_0x3bc3e3];}if(_0xcae30d===_0x3bca94(0x51b)){for(const _0x28a1ef of[_0x3bca94(0x662),_0x3bca94(0x108),_0x3bca94(0x61a)])_0x4fbea9[_0x28a1ef]=_0x2854cd[_0x28a1ef];}if(_0x2854cd[_0x3bca94(0x31d)])_0x4fbea9[_0x3bca94(0x31d)]=_0x2854cd[_0x3bca94(0x31d)];if(_0x2854cd[_0x3bca94(0x2b6)]!==undefined)_0x4fbea9['status']=_0x2854cd[_0x3bca94(0x2b6)];if(_0x2854cd[_0x3bca94(0x180)]!==undefined)_0x4fbea9['retryable']=_0x2854cd['retryable'];return _0x4fbea9;}function _0x45a0f8(_0xe08bf5){const _0x18c9f3=_0x174e76;if(_0xe08bf5===undefined)return _0x18c9f3(0x184);if(_0xe08bf5===null)return _0x18c9f3(0x64c);if(typeof _0xe08bf5===_0x18c9f3(0x677))return _0xe08bf5?_0x18c9f3(0x677):_0x18c9f3(0x129);if(typeof _0xe08bf5===_0x18c9f3(0x1ea))return _0x18c9f3(0x1ea);if(typeof _0xe08bf5!==_0x18c9f3(0x218))return typeof _0xe08bf5;if(Array['isArray'](_0xe08bf5))return _0xe08bf5[_0x18c9f3(0x306)]?_0x18c9f3(0x5b8):_0x18c9f3(0x484);if(_0xe08bf5 instanceof Date)return _0x18c9f3(0x743);if(_0xe08bf5 instanceof Map)return _0x18c9f3(0x239);if(Buffer[_0x18c9f3(0x157)](_0xe08bf5))return _0x18c9f3(0x647);return _0x18c9f3(0x218);}const _0x4cee13=(_0x11dc87,_0x3d0407,_0x31c19e)=>new _0xe86adb[(_0x174e76(0x265))](_0x3d0407,_0x11dc87,_0x31c19e),_0x5d59c2=(_0x4b1b00,_0x8b4e84,_0x1ff9eb)=>_0x4cee13(_0x174e76(0x25a),_0x4b1b00+_0x174e76(0x327)+_0x8b4e84+';\x20got\x20'+_0x45a0f8(_0x1ff9eb),{'argument':_0x4b1b00,'expected':_0x8b4e84,'got':_0x45a0f8(_0x1ff9eb)}),_0x314bc1=(_0x48e4be,_0x10b6a0)=>_0x4cee13(_0x174e76(0x419),_0x48e4be+_0x174e76(0x4bc)+_0x45a0f8(_0x10b6a0),{'argument':_0x48e4be,'expected':_0x174e76(0x660),'got':_0x45a0f8(_0x10b6a0)}),_0x1f368d=(_0x52b171,_0x20f477)=>_0x4cee13(_0x174e76(0x3de),_0x52b171+':\x20'+_0x20f477,{'argument':_0x52b171,'problem':_0x20f477});function _0x239149(_0x4f83a7,_0x12a73e=_0x174e76(0x3d8)){const _0x36922f=_0x174e76;if(_0x4f83a7===undefined)return{};if(_0x4f83a7===null)throw _0x1f368d(_0x12a73e,_0x36922f(0x7cf));return _0x4f83a7;}return errors={'reclass':_0x484157,'NotImplementedNative':_0x1172b,'BY_CODE':_0xa1aa41,'describe':_0x45a0f8,'invalidArgument':_0x5d59c2,'invalidTypeName':_0x314bc1,'invalidOptions':_0x1f368d,'optionsArg':_0x239149,..._0xe86adb},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x5532de=new Map(),_0x4d48f0=new Map();let _0x5bbbf0=0x1;const _0x3e624d=new Map(),_0x51e57a=new Map();let _0x41dd2d=0x1;const _0x1a0dc7=new Map();let _0x9d4ca3=0x1;function _0x5ee816(_0x21b85d){const _0x5ce6e5=_0x5df8,_0x30da31=_0x9d4ca3++;return _0x1a0dc7[_0x5ce6e5(0x5af)](_0x30da31,_0x21b85d),_0x30da31;}function _0x2862ba(_0x5b8da3,_0xe7e188){const _0x3dfa91=_0x5df8,_0x3a87ef=_0x1a0dc7['get'](_0x5b8da3),_0xa76eae=Array[_0x3dfa91(0x4d3)][_0x3dfa91(0x101)][_0x3dfa91(0x39c)](arguments,0x2),_0x5337ea=_0x156818=>_0x26d67d(_0x156818);let _0x2533af=_0xa76eae;if(_0xe7e188===_0x3dfa91(0x6ac)||_0xe7e188===_0x3dfa91(0x7af)||_0xe7e188===_0x3dfa91(0x7c7)||_0xe7e188===_0x3dfa91(0x238)||_0xe7e188===_0x3dfa91(0x24d))_0x2533af=[_0x5337ea(_0xa76eae[0x0])];else{if(_0xe7e188===_0x3dfa91(0x32a))_0x2533af=[_0xa76eae[0x0],_0xa76eae[0x1],_0x5337ea(_0xa76eae[0x2])];else{if(_0xe7e188==='assertCreateAllowed')_0x2533af=[_0x5337ea(_0xa76eae[0x0])];}}let _0x35f4db=_0x3a87ef[_0xe7e188](..._0x2533af);if(_0x35f4db&&typeof _0x35f4db[_0x3dfa91(0x1c4)]==='function')_0x35f4db=_0x54ae58(_0x35f4db);if(_0xe7e188===_0x3dfa91(0x6ac)){const _0x1e500a=_0x35f4db&&typeof _0x35f4db==='object'?_0x5ee816(_0x35f4db):_0x5ee816({});return{'$api':_0x1e500a};}return _0x35f4db===undefined?null:_0x35f4db;}function _0x26d67d(_0x288af3){const _0x2b6eb1=_0x5df8,_0x4c1a57=_0x22bcef[_0x2b6eb1(0x759)](_0x288af3[_0x2b6eb1(0x23d)]),_0xa5b7f6=_0x4c1a57&&_0x4c1a57[_0x2b6eb1(0x11c)],_0x5136f4=(_0x53b661,..._0x477f7c)=>_0xa5b7f6[_0x2b6eb1(0x6ad)]('engines',null,_0x53b661,[_0x288af3['type'],_0x288af3['name'],..._0x477f7c],!![]);return{'okdb':_0xa5b7f6,'key':_0x288af3[_0x2b6eb1(0xfb)],'type':_0x288af3['type'],'name':_0x288af3[_0x2b6eb1(0x331)],'storeEnv':_0x4c1a57,'storeEnvName':_0x288af3[_0x2b6eb1(0x420)],'config':_0x288af3['config'],'meta':_0x288af3[_0x2b6eb1(0x22f)],'options':_0x288af3[_0x2b6eb1(0x3d8)],'emit':(_0x9e8345,_0x638824)=>_0x5136f4(_0x2b6eb1(0x707),_0x9e8345,_0x638824),'updateStatus':async(_0x1f8fcf,_0xc82c3a)=>_0x5136f4('ctxUpdateStatus',_0x1f8fcf,_0xc82c3a==null?null:String(_0xc82c3a&&_0xc82c3a['message']?_0xc82c3a[_0x2b6eb1(0x3f9)]:_0xc82c3a)),'updateMeta':async _0x5da199=>_0x5136f4('patchDeclaration',{'meta':_0x5da199}),'updateConfig':async _0x50c9bb=>_0x5136f4(_0x2b6eb1(0x7c3),{'config':_0x50c9bb})};}function _0x2056a2(_0x4c9d9d,_0x5328da,_0x9c8c39){const _0x38669d=_0x5df8;if(_0x4c9d9d==='new'){const _0x48d29b=_0x235b5b(_0x5328da);let _0x1e91e9=_0x48d29b(_0x9c8c39);if(_0x1e91e9&&typeof _0x1e91e9[_0x38669d(0x1c4)]===_0x38669d(0x1ea))_0x1e91e9=_0x54ae58(_0x1e91e9);if(!_0x1e91e9||typeof _0x1e91e9[_0x38669d(0x6b8)]!==_0x38669d(0x1ea)){const {OKDBError:_0x2306a6}=requireErrors();throw new _0x2306a6(_0x38669d(0x69e)+(_0x9c8c39&&_0x9c8c39['type'])+'\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','BAD_EMBEDDER_FACTORY');}return _0x1e91e9[_0x38669d(0x797)]=_0x48d29b[_0x38669d(0x797)],{'$id':_0x5ee816(_0x1e91e9),'batch':typeof _0x1e91e9['embedBatch']===_0x38669d(0x1ea)};}const _0x406c00=_0x1a0dc7[_0x38669d(0x759)](_0x5328da);if(_0x4c9d9d===_0x38669d(0x56c))return _0x1a0dc7['delete'](_0x5328da),_0x588696['delete'](_0x5328da),null;if(!_0x406c00)throw new Error(_0x38669d(0x79c));if(typeof _0x406c00[_0x4c9d9d]!==_0x38669d(0x1ea))return null;if(_0x4c9d9d===_0x38669d(0x6b8)||_0x4c9d9d==='embedBatch'){const _0x12d0fd=_0x4c9d9d===_0x38669d(0x427)?_0x1fa6ef(_0x5328da,_0x406c00,_0x9c8c39):_0x229fae(_0x5328da,_0x406c00,_0x4c9d9d,_0x9c8c39);return _0x4c9d9d===_0x38669d(0x6b8)?Array['from'](_0x12d0fd):_0x12d0fd[_0x38669d(0x3e7)](_0x4e1a58=>Array[_0x38669d(0x320)](_0x4e1a58));}let _0x14fbb6=_0x406c00[_0x4c9d9d]();if(_0x14fbb6&&typeof _0x14fbb6[_0x38669d(0x1c4)]==='function')_0x14fbb6=_0x54ae58(_0x14fbb6);return _0x14fbb6===undefined?null:_0x14fbb6;}function _0x36aa10(_0x3fcbd4,_0x338238,_0x281b0c){const _0x59352b=_0x5df8;if(_0x3fcbd4==='new'){const _0xdd2084=_0x235b5b(_0x338238);let _0x35718a=_0xdd2084(_0x281b0c[_0x59352b(0x58f)]??{},{'dims':_0x281b0c[_0x59352b(0x667)],'dir':_0x281b0c[_0x59352b(0x228)]});if(_0x35718a&&typeof _0x35718a[_0x59352b(0x1c4)]===_0x59352b(0x1ea))_0x35718a=_0x54ae58(_0x35718a);for(const _0x8b084f of[_0x59352b(0x443),_0x59352b(0x241),_0x59352b(0x4a1),_0x59352b(0x6a0),_0x59352b(0x4e5)]){if(!_0x35718a||typeof _0x35718a[_0x8b084f]!==_0x59352b(0x1ea)){const {OKDBError:_0x16d537}=requireErrors();throw new _0x16d537(_0x59352b(0x28c)+_0x8b084f+'()','BAD_ALGORITHM_FACTORY',{'method':_0x8b084f});}}return{'$id':_0x5ee816(_0x35718a)};}const _0x5c78fd=_0x1a0dc7[_0x59352b(0x759)](_0x338238);if(_0x3fcbd4===_0x59352b(0x56c))return _0x1a0dc7['delete'](_0x338238),null;if(!_0x5c78fd)throw new Error(_0x59352b(0x479));const _0x14f926=_0x3a989f=>_0x3a989f?_0x3a989f[_0x59352b(0x3e7)](_0x15fa9a=>({'key':_0x15fa9a[_0x59352b(0xfb)],'vector':Float32Array[_0x59352b(0x320)](_0x15fa9a[_0x59352b(0x73e)])})):null;let _0x259ce2;switch(_0x3fcbd4){case'load':case _0x59352b(0x111):{const _0x2dd2a4=_0x14f926(_0x281b0c);_0x259ce2=_0x5c78fd[_0x3fcbd4](_0x2dd2a4?async()=>_0x2dd2a4:undefined);break;}case _0x59352b(0x241):_0x259ce2=_0x5c78fd['add'](_0x281b0c[0x0],Float32Array[_0x59352b(0x320)](_0x281b0c[0x1]),_0x281b0c[0x2]??undefined);break;case _0x59352b(0x4a1):_0x259ce2=_0x5c78fd[_0x59352b(0x4a1)](_0x281b0c);break;case _0x59352b(0x6a0):_0x259ce2=_0x5c78fd[_0x59352b(0x6a0)](Float32Array['from'](_0x281b0c[_0x59352b(0x187)]),_0x281b0c[_0x59352b(0x440)]??{});break;case _0x59352b(0x57a):_0x259ce2=typeof _0x5c78fd[_0x59352b(0x57a)]===_0x59352b(0x1ea)?_0x5c78fd[_0x59352b(0x57a)](_0x281b0c??undefined):![];break;case _0x59352b(0x7af):_0x259ce2=typeof _0x5c78fd['stop']===_0x59352b(0x1ea)?_0x5c78fd['stop']():undefined;break;case _0x59352b(0x5ad):_0x259ce2=typeof _0x5c78fd[_0x59352b(0x5ad)]===_0x59352b(0x1ea)?_0x5c78fd[_0x59352b(0x5ad)]():undefined;break;case _0x59352b(0x4e5):return Number(_0x5c78fd['count']());case _0x59352b(0x2d0):return(typeof _0x5c78fd[_0x59352b(0x2d0)]===_0x59352b(0x1ea)?_0x5c78fd['info']():null)??{};default:throw new Error(_0x59352b(0x4b8)+_0x3fcbd4);}if(_0x259ce2&&typeof _0x259ce2[_0x59352b(0x1c4)]===_0x59352b(0x1ea))_0x259ce2=_0x54ae58(_0x259ce2);return _0x259ce2===undefined?null:_0x259ce2;}function _0x3da907(_0x30b5f2,_0x2b3965,_0x4ee6f7){const _0x2024af=_0x5df8;if(_0x30b5f2===_0x2024af(0x192)){const _0x91cf72=_0x235b5b(_0x2b3965);let _0x4d1760=_0x91cf72(_0x4ee6f7);if(_0x4d1760&&typeof _0x4d1760[_0x2024af(0x1c4)]==='function')_0x4d1760=_0x54ae58(_0x4d1760);if(!_0x4d1760)return null;const _0x59fb80=[_0x2024af(0x438),_0x2024af(0x2e9),_0x2024af(0x759),'count',_0x2024af(0x3d6),_0x2024af(0x4ce)]['filter'](_0x2ee4b7=>typeof _0x4d1760[_0x2ee4b7]==='function');return{'$id':_0x5ee816(_0x4d1760),'has':_0x59fb80};}const _0x5e6417=_0x1a0dc7[_0x2024af(0x759)](_0x2b3965);if(_0x30b5f2==='free')return _0x1a0dc7[_0x2024af(0x5cb)](_0x2b3965),null;if(!_0x5e6417)throw new Error(_0x2024af(0x33b));const _0x28eaed=_0x15d872=>Float32Array[_0x2024af(0x320)](_0x15d872);let _0x3b300e;switch(_0x30b5f2){case _0x2024af(0x77a):_0x3b300e=_0x5e6417['put'](_0x4ee6f7[0x0],_0x28eaed(_0x4ee6f7[0x1]));break;case _0x2024af(0x4a1):_0x3b300e=_0x5e6417[_0x2024af(0x4a1)](_0x4ee6f7);break;case _0x2024af(0x2b3):{_0x3b300e=typeof _0x5e6417[_0x2024af(0x2b3)]===_0x2024af(0x1ea)?_0x5e6417['getAll']():[];if(_0x3b300e&&typeof _0x3b300e['then']===_0x2024af(0x1ea))_0x3b300e=_0x54ae58(_0x3b300e);return Array[_0x2024af(0x320)](_0x3b300e??[],_0x57ae35=>({'key':_0x57ae35[_0x2024af(0xfb)],'vector':Array[_0x2024af(0x320)](_0x57ae35['vector'])}));}case _0x2024af(0x438):_0x3b300e=_0x5e6417[_0x2024af(0x438)](_0x4ee6f7[_0x2024af(0x354)][_0x2024af(0x3e7)](_0x33ad0a=>({'key':_0x33ad0a[_0x2024af(0xfb)],'vector':_0x28eaed(_0x33ad0a[_0x2024af(0x73e)])})),_0x4ee6f7[_0x2024af(0x33e)]);break;case _0x2024af(0x2e9):_0x3b300e=_0x5e6417[_0x2024af(0x2e9)](_0x4ee6f7??undefined);if(_0x3b300e&&typeof _0x3b300e['then']===_0x2024af(0x1ea))_0x3b300e=_0x54ae58(_0x3b300e);return Array[_0x2024af(0x320)](_0x3b300e??[]);case _0x2024af(0x759):{_0x3b300e=_0x5e6417['get'](_0x4ee6f7);if(_0x3b300e&&typeof _0x3b300e[_0x2024af(0x1c4)]===_0x2024af(0x1ea))_0x3b300e=_0x54ae58(_0x3b300e);return _0x3b300e==null?null:Array['from'](_0x3b300e);}case'count':return Number(_0x5e6417[_0x2024af(0x4e5)]());case'dropAll':_0x3b300e=_0x5e6417[_0x2024af(0x3d6)]();break;case _0x2024af(0x4ce):return _0x5e6417['stats']()??null;default:throw new Error(_0x2024af(0x1a7)+_0x30b5f2);}if(_0x3b300e&&typeof _0x3b300e[_0x2024af(0x1c4)]==='function')_0x3b300e=_0x54ae58(_0x3b300e);return _0x3b300e===undefined?null:_0x3b300e;}const _0x553350=new Map();function _0x229fae(_0x4d8e5c,_0x3129dd,_0x7e28fe,_0x5e3b33){const _0x5b22f3=_0x5df8,_0x93630b=_0x4d8e5c+'\x00'+_0x7e28fe+'\x00'+JSON['stringify'](_0x5e3b33),_0x4745a6=_0x553350['get'](_0x93630b);if(_0x4745a6){if(_0x4745a6[_0x5b22f3(0x70c)]===_0x5b22f3(0x1b8))throw _0x586c37();_0x553350['delete'](_0x93630b);if(_0x4745a6[_0x5b22f3(0x70c)]===_0x5b22f3(0x2c0))throw _0x4745a6[_0x5b22f3(0x2e6)];return _0x4745a6[_0x5b22f3(0x2e6)];}const _0x19acd7=_0x3129dd[_0x7e28fe](_0x5e3b33);if(!_0x19acd7||typeof _0x19acd7[_0x5b22f3(0x1c4)]!==_0x5b22f3(0x1ea))return _0x19acd7;const _0x14678a={'state':'pending','value':undefined};_0x19acd7['then'](_0x31d98d=>{const _0x37bb82=_0x5b22f3;_0x14678a[_0x37bb82(0x70c)]='ok',_0x14678a['value']=_0x31d98d;if(_0x553350['get'](_0x93630b)===_0x14678a)_0x521268(_0x3129dd);},_0x17dce8=>{const _0x4c0582=_0x5b22f3;_0x14678a[_0x4c0582(0x70c)]='err',_0x14678a['value']=_0x17dce8;if(_0x553350[_0x4c0582(0x759)](_0x93630b)===_0x14678a)_0x521268(_0x3129dd);});for(let _0xfe1d58=0x0;_0xfe1d58<0x64&&_0x14678a[_0x5b22f3(0x70c)]==='pending';_0xfe1d58++)process[_0x5b22f3(0x200)]();if(_0x14678a['state']==='ok')return _0x14678a[_0x5b22f3(0x2e6)];if(_0x14678a[_0x5b22f3(0x70c)]===_0x5b22f3(0x2c0))throw _0x14678a['value'];_0x553350[_0x5b22f3(0x5af)](_0x93630b,_0x14678a);throw _0x586c37();}const _0x588696=new Map(),_0x1213ee=0xa*0x3c*0x3e8;function _0x1fa6ef(_0x403fea,_0x2189bc,_0x54a53e){const _0x5ef0ef=_0x5df8,_0x2640c2=Array[_0x5ef0ef(0x470)](_0x54a53e)?_0x54a53e:Array['from'](_0x54a53e??[]);let _0x39536d=_0x588696[_0x5ef0ef(0x759)](_0x403fea);if(!_0x39536d)_0x588696[_0x5ef0ef(0x5af)](_0x403fea,_0x39536d=new Map());const _0x1a3904=Date[_0x5ef0ef(0x466)]();for(const [_0x1476ca,_0xfd62ee]of _0x39536d)if(_0xfd62ee[_0x5ef0ef(0x27b)]['state']!==_0x5ef0ef(0x1b8)&&_0x1a3904-_0xfd62ee[_0x5ef0ef(0x27b)]['at']>_0x1213ee)_0x39536d[_0x5ef0ef(0x5cb)](_0x1476ca);const _0x98b840=_0x2640c2[_0x5ef0ef(0x3e7)](_0x5af060=>JSON[_0x5ef0ef(0x34b)](_0x5af060));let _0x2b1127=![];const _0x563435=[],_0x589eb4=new Set();for(let _0x4c50fc=0x0;_0x4c50fc<_0x98b840['length'];_0x4c50fc++){const _0x458b77=_0x39536d[_0x5ef0ef(0x759)](_0x98b840[_0x4c50fc]);if(!_0x458b77)!_0x589eb4[_0x5ef0ef(0x37b)](_0x98b840[_0x4c50fc])&&(_0x589eb4['add'](_0x98b840[_0x4c50fc]),_0x563435[_0x5ef0ef(0x150)](_0x4c50fc));else{if(_0x458b77['req']['state']===_0x5ef0ef(0x1b8))_0x2b1127=!![];else{if(_0x458b77[_0x5ef0ef(0x27b)][_0x5ef0ef(0x70c)]==='err'){const _0xee99a5=_0x458b77[_0x5ef0ef(0x27b)][_0x5ef0ef(0x2e6)];for(const [_0x326fbf,_0x4467d6]of _0x39536d)if(_0x4467d6['req']===_0x458b77['req'])_0x39536d[_0x5ef0ef(0x5cb)](_0x326fbf);throw _0xee99a5;}}}}if(_0x2b1127)throw _0x586c37();if(_0x563435['length']){const _0x4741c8=_0x563435[_0x5ef0ef(0x3e7)](_0x14f581=>_0x2640c2[_0x14f581]),_0x489db4=_0x2189bc['embedBatch'](_0x4741c8),_0x5ac8d9={'state':_0x5ef0ef(0x1b8),'value':undefined,'at':0x0},_0x36d5f2=(_0x2a9bd0,_0x52581d)=>{const _0x42220e=_0x5ef0ef;_0x5ac8d9[_0x42220e(0x70c)]=_0x2a9bd0,_0x5ac8d9[_0x42220e(0x2e6)]=_0x52581d,_0x5ac8d9['at']=Date[_0x42220e(0x466)]();};if(!_0x489db4||typeof _0x489db4['then']!==_0x5ef0ef(0x1ea))_0x36d5f2('ok',_0x489db4);else{let _0x33e2d5=!![];_0x489db4[_0x5ef0ef(0x1c4)](_0x28a781=>{_0x36d5f2('ok',_0x28a781);if(!_0x33e2d5)_0x521268(_0x2189bc);},_0x4b63d4=>{const _0x40bbb4=_0x5ef0ef;_0x36d5f2(_0x40bbb4(0x2c0),_0x4b63d4);if(!_0x33e2d5)_0x521268(_0x2189bc);});for(let _0x4f1bd6=0x0;_0x4f1bd6<0x64&&_0x5ac8d9[_0x5ef0ef(0x70c)]===_0x5ef0ef(0x1b8);_0x4f1bd6++)process[_0x5ef0ef(0x200)]();_0x33e2d5=![];}for(let _0x318837=0x0;_0x318837<_0x563435[_0x5ef0ef(0x306)];_0x318837++)_0x39536d['set'](_0x98b840[_0x563435[_0x318837]],{'req':_0x5ac8d9,'index':_0x318837});if(_0x5ac8d9['state']===_0x5ef0ef(0x2c0)){for(const _0x4e37d3 of _0x563435)_0x39536d['delete'](_0x98b840[_0x4e37d3]);throw _0x5ac8d9[_0x5ef0ef(0x2e6)];}if(_0x5ac8d9['state']===_0x5ef0ef(0x1b8))throw _0x586c37();}const _0x26570f=_0x98b840['map'](_0x4aa3c1=>{const _0xd710ac=_0x5ef0ef,_0xc7e8dd=_0x39536d['get'](_0x4aa3c1),_0x559262=_0xc7e8dd['req'][_0xd710ac(0x2e6)];return _0x559262?_0x559262[_0xc7e8dd[_0xd710ac(0x760)]]:undefined;});for(const _0x217d88 of _0x98b840)_0x39536d['delete'](_0x217d88);if(!_0x39536d[_0x5ef0ef(0x415)])_0x588696['delete'](_0x403fea);return _0x26570f;}function _0x586c37(){const _0x4f8e92=_0x5df8;return Object[_0x4f8e92(0x18d)](new Error(_0x4f8e92(0x11d)),{'code':_0x4f8e92(0x1d1)});}function _0x521268(_0x510753){const _0x5a5a91=_0x5df8;_0x490635();try{const _0x54bfc6=_0x510753[_0x5a5a91(0x797)]||_0x383c83;if(_0x54bfc6&&_0x54bfc6[_0x5a5a91(0x34c)])_0x54bfc6[_0x5a5a91(0x6ad)](_0x5a5a91(0x3a0),null,_0x5a5a91(0x663),[_0x5a5a91(0xf6),{}],!![]);}catch{}}function _0x9520b(_0x2c7792,_0x56b2a2,_0x5c6ba0){const _0x561b2d=_0x5df8,_0x46f1bd=_0x1a0dc7[_0x561b2d(0x759)](_0x2c7792);if(!_0x46f1bd||typeof _0x46f1bd[_0x56b2a2]!==_0x561b2d(0x1ea))return{'__absent':!![]};let _0x179d47=_0x46f1bd[_0x56b2a2](...Array[_0x561b2d(0x470)](_0x5c6ba0)?_0x5c6ba0:[]);if(_0x179d47&&typeof _0x179d47['then']==='function')_0x179d47=_0x54ae58(_0x179d47);return{'value':_0x179d47===undefined?null:_0x179d47};}const _0x57d2f4=new Map();let _0x3e93cb=0x1;const _0x22bcef=new Map(),_0x62e6bc=new Map();function _0xd56ab3(_0x103371,_0x319791=null){const _0x4f31f2=_0x5df8,_0x696561=_0x3e93cb++;_0x57d2f4[_0x4f31f2(0x5af)](_0x696561,_0x103371);if(_0x319791)_0x62e6bc[_0x4f31f2(0x5af)](_0x696561,_0x319791);return _0x696561;}function _0x1a22bc(_0x10ff26){const _0x3d9a59=_0x5df8;for(const [_0xc44bcb,_0x49931f]of _0x22bcef)if(_0x49931f&&_0x49931f[_0x3d9a59(0x11c)]===_0x10ff26)_0x22bcef[_0x3d9a59(0x5cb)](_0xc44bcb);for(const [_0x5b2df5,_0x259812]of _0x62e6bc)_0x259812===_0x10ff26&&(_0x62e6bc[_0x3d9a59(0x5cb)](_0x5b2df5),_0x57d2f4[_0x3d9a59(0x5cb)](_0x5b2df5));if(_0x383c83===_0x10ff26)_0x383c83=null;}function _0x4c52f5(_0x5bab91,_0x60438f){const _0xd56a3c=_0x5df8;_0x22bcef[_0xd56a3c(0x5af)](_0x5bab91,_0x60438f);}function _0xbc71b0(_0x442c6f){const _0x5acf22=_0x5df8;if(_0x442c6f&&typeof _0x442c6f==='object'&&Object[_0x5acf22(0x2e9)](_0x442c6f)[_0x5acf22(0x306)]===0x1&&_0x442c6f[_0x5acf22(0x2c6)]!==undefined)return _0x57d2f4[_0x5acf22(0x759)](_0x442c6f['$payload']);return _0x442c6f;}function _0x54ae58(_0x23aabd){const _0x5df5b9=_0x5df8;let _0x2a0fe5=![],_0x41afcd=![],_0x28b208;_0x23aabd[_0x5df5b9(0x1c4)](_0x42103f=>{_0x2a0fe5=!![],_0x28b208=_0x42103f;},_0x57fea2=>{_0x2a0fe5=!![],_0x41afcd=!![],_0x28b208=_0x57fea2;});for(let _0x578c40=0x0;_0x578c40<0x2710&&!_0x2a0fe5;_0x578c40++)process[_0x5df5b9(0x200)]();if(!_0x2a0fe5)return _0x23aabd[_0x5df5b9(0x1c4)](undefined,_0x2a6701=>{const _0x5e74a5=_0x5df5b9;try{process['emitWarning'](_0x5e74a5(0x6c5)+(_0x2a6701&&_0x2a6701[_0x5e74a5(0x3f9)]?_0x2a6701[_0x5e74a5(0x3f9)]:_0x2a6701));}catch{}}),undefined;if(_0x41afcd)throw _0x28b208;return _0x28b208;}function _0x38a8e2(_0x473b7c,_0x1148c3,_0x33f51e){const _0x775e57=_0x5df8,_0x5f278c=_0x235b5b(_0x473b7c),_0x223178=_0x22bcef[_0x775e57(0x759)](_0x1148c3);try{const _0x5313a8=_0x5f278c(_0x33f51e,{'okdb':_0x223178&&_0x223178[_0x775e57(0x11c)],'env':_0x223178});if(_0x5313a8&&typeof _0x5313a8[_0x775e57(0x1c4)]===_0x775e57(0x1ea))_0x54ae58(_0x5313a8);}catch(_0xb9ecd2){if(_0xb9ecd2&&_0xb9ecd2[_0x775e57(0x7a1)]===!![]&&_0xb9ecd2[_0x775e57(0x1a8)]!==_0x775e57(0x1e6)){const _0x4d8b53=new Error(_0xb9ecd2[_0x775e57(0x3f9)]);_0x4d8b53[_0x775e57(0x1a8)]=_0x775e57(0x1e6);throw _0x4d8b53;}throw _0xb9ecd2;}}const _0x1ea0e9=new Map();function _0x59934a(_0x55d92d,_0x318df8,_0x283373,_0x1e7908,_0x107ebe,_0x322f8d){const _0x26f276=_0x5df8,_0x4ead53=_0x235b5b(_0x55d92d),_0x23c506=(_0x22bcef[_0x26f276(0x759)](_0x322f8d)||{})[_0x26f276(0x11c)]||_0x383c83,_0x500b79=new AbortController(),_0x5494cd=(_0x5e72b0,..._0x57fa72)=>_0x23c506[_0x26f276(0x6ad)](_0x26f276(0x39f),_0x26f276(0x1e3),_0x5e72b0,_0x57fa72,![]),_0x3bf84b={'okdb':_0x23c506,'env':_0x22bcef['get'](_0x322f8d)||null,'job':_0x1e7908,'jobId':_0x107ebe,'signal':_0x500b79[_0x26f276(0x46f)],'heartbeat':()=>_0x5494cd(_0x26f276(0x6c3),_0x283373),'markProgress':_0x22f4de=>_0x5494cd('ctxProgress',_0x283373,_0x22f4de),'log':(_0x56052f,_0x35f54a)=>_0x5494cd(_0x26f276(0x74f),_0x283373,_0x56052f,_0x35f54a)};_0x1ea0e9[_0x26f276(0x5af)](_0x283373,{'ctrl':_0x500b79,'call':_0x5494cd});const _0x1fbe9c=()=>{const _0x40540c=_0x26f276;_0x1ea0e9[_0x40540c(0x5cb)](_0x283373);try{_0x5494cd(_0x40540c(0x768),_0x283373);}catch{}};let _0x3039f6;try{_0x3039f6=_0x4ead53(_0x318df8,_0x3bf84b);}catch(_0x2e0bbb){_0x1fbe9c();throw _0x2e0bbb;}if(_0x3039f6&&typeof _0x3039f6[_0x26f276(0x1c4)]===_0x26f276(0x1ea)){const _0x3ea152=_0x111f9a(_0x3039f6);return _0x3039f6['then'](_0x1fbe9c,_0x1fbe9c),{'$token':_0x3ea152};}return _0x1fbe9c(),_0x3039f6;}function _0x300772(){const _0x39956c=_0x5df8;for(const [_0xb73369,_0x257213]of _0x1ea0e9){if(_0x257213[_0x39956c(0x196)]['signal']['aborted'])continue;let _0x1d5710;try{_0x1d5710=_0x257213[_0x39956c(0x39c)]('ctxSignal',_0xb73369);}catch{continue;}if(_0x1d5710&&_0x1d5710[_0x39956c(0x1e2)]){const {OKDBError:_0x463f4e}=requireErrors();_0x257213[_0x39956c(0x196)][_0x39956c(0x161)](new _0x463f4e(_0x1d5710[_0x39956c(0x3f9)],_0x1d5710[_0x39956c(0x1a8)]));}}}let _0x383c83=null;function _0x5cece2(_0x21ee9b){_0x383c83=_0x21ee9b;}function _0x1ddd10(_0x42ff2d,_0x4efd61,_0x549f5f,_0x2b9922,_0x50aa0e,_0x4f1ee6,_0x540876){const _0x1c10ca=_0x5df8,_0x463111=_0x235b5b(_0x42ff2d),_0x2c7cfc=_0x22bcef['get'](_0x549f5f);try{const _0xa845f3=_0x4efd61?_0x463111(_0x50aa0e,_0x4f1ee6):_0x463111({'env':_0x2c7cfc,'okdb':_0x2c7cfc&&_0x2c7cfc[_0x1c10ca(0x11c)],'payload':_0xbc71b0(_0x2b9922)},_0x50aa0e,_0x4f1ee6);if(_0xa845f3&&typeof _0xa845f3[_0x1c10ca(0x1c4)]===_0x1c10ca(0x1ea)){if(_0x4f1ee6&&_0x4f1ee6[_0x1c10ca(0x21e)]===_0x1c10ca(0x56e))_0xa845f3[_0x1c10ca(0x1c4)](undefined,()=>{});else{if(_0x540876){const _0x457e47=_0x43225(_0xa845f3);if(_0x457e47===0x0)return null;return{'$token':_0x457e47};}else _0x54ae58(_0xa845f3);}}}catch(_0x3e8137){if(_0x3e8137&&_0x3e8137[_0x1c10ca(0x7a1)]===!![]&&_0x3e8137[_0x1c10ca(0x1a8)]!==_0x1c10ca(0x1e6)){const _0xd714b8=new Error(_0x3e8137[_0x1c10ca(0x3f9)]);_0xd714b8[_0x1c10ca(0x1a8)]='__HOLD__';throw _0xd714b8;}throw _0x3e8137;}return null;}function _0x43225(_0x2c1245){const _0x257354=_0x5df8;let _0x10c502=_0x257354(0x1b8),_0x3fba0b;_0x2c1245[_0x257354(0x1c4)](_0x21f8ec=>{_0x10c502='ok',_0x3fba0b=_0x21f8ec;},_0x1a3976=>{_0x10c502='err',_0x3fba0b=_0x1a3976;});for(let _0x2e0cf9=0x0;_0x2e0cf9<0x64&&_0x10c502===_0x257354(0x1b8);_0x2e0cf9++)process[_0x257354(0x200)]();if(_0x10c502==='ok')return 0x0;const _0x4d04aa=_0x41dd2d++,_0x1ed6ba={'state':_0x10c502,'value':_0x3fba0b};_0x51e57a[_0x257354(0x5af)](_0x4d04aa,_0x1ed6ba);if(_0x10c502===_0x257354(0x1b8))_0x2c1245['then'](_0x2518d6=>{const _0x3d3aa8=_0x257354;_0x1ed6ba[_0x3d3aa8(0x70c)]='ok',_0x1ed6ba[_0x3d3aa8(0x2e6)]=_0x2518d6,_0x490635();},_0x510638=>{const _0x54dff3=_0x257354;_0x1ed6ba[_0x54dff3(0x70c)]=_0x54dff3(0x2c0),_0x1ed6ba[_0x54dff3(0x2e6)]=_0x510638,_0x490635();});return _0x4d04aa;}function _0x37df0e(_0x111407){const _0xcdcde8=_0x5df8;let _0x1b2b77=_0x4d48f0[_0xcdcde8(0x759)](_0x111407);return _0x1b2b77===undefined&&(_0x1b2b77=_0x5bbbf0++,_0x4d48f0[_0xcdcde8(0x5af)](_0x111407,_0x1b2b77),_0x5532de[_0xcdcde8(0x5af)](_0x1b2b77,{'fn':_0x111407,'refs':0x0})),_0x5532de['get'](_0x1b2b77)['refs']++,_0x1b2b77;}function _0x3012c9(_0x5233fc){const _0x2c7ddd=_0x5df8,_0x1a66ad=_0x5532de[_0x2c7ddd(0x759)](_0x5233fc);if(!_0x1a66ad)return;--_0x1a66ad['refs']<=0x0&&(_0x5532de[_0x2c7ddd(0x5cb)](_0x5233fc),_0x4d48f0[_0x2c7ddd(0x5cb)](_0x1a66ad['fn']));}function _0x235b5b(_0x544376){const _0x5bf0fd=_0x5df8,_0x3855c6=_0x5532de[_0x5bf0fd(0x759)](_0x544376);if(!_0x3855c6)throw new Error(_0x5bf0fd(0x530)+_0x544376);return _0x3855c6['fn'];}function _0x111f9a(_0x44e42b){const _0x54fc23=_0x5df8;if(_0x44e42b&&typeof _0x44e42b[_0x54fc23(0x1c4)]===_0x54fc23(0x1ea)){const _0x4f2aa6=_0x41dd2d++,_0x4ccf72={'state':'pending','value':undefined};return _0x51e57a[_0x54fc23(0x5af)](_0x4f2aa6,_0x4ccf72),_0x44e42b[_0x54fc23(0x1c4)](_0x4ca5e2=>{const _0x54438b=_0x54fc23;_0x4ccf72[_0x54438b(0x70c)]='ok',_0x4ccf72['value']=_0x4ca5e2,_0x490635();},_0x4a0b76=>{const _0x830991=_0x54fc23;_0x4ccf72[_0x830991(0x70c)]=_0x830991(0x2c0),_0x4ccf72[_0x830991(0x2e6)]=_0x4a0b76,_0x490635();}),_0x4f2aa6;}return 0x0;}let _0x52b73c=()=>{},_0x5da71c=null;function _0x23150d(_0xdbd85d,_0x1b783d=null){_0x52b73c=_0xdbd85d,_0x5da71c=_0x1b783d;}function _0x34c104(_0x3b30aa){return _0x5da71c===_0x3b30aa;}function _0x490635(){_0x52b73c();}function _0x1ace25(_0x5da7de){const _0x148bbd=_0x5df8,_0x1e69a1=_0x51e57a['get'](_0x5da7de);if(!_0x1e69a1)return{'state':_0x148bbd(0x2c0),'error':{'message':_0x148bbd(0x183)}};if(_0x1e69a1[_0x148bbd(0x70c)]==='pending')return{'state':_0x148bbd(0x1b8)};_0x51e57a['delete'](_0x5da7de);if(_0x1e69a1[_0x148bbd(0x70c)]==='ok')return{'state':'ok','value':_0x1e69a1[_0x148bbd(0x2e6)]};const _0x399a20=_0x1e69a1[_0x148bbd(0x2e6)];return{'state':_0x148bbd(0x2c0),'error':{'message':_0x399a20&&_0x399a20[_0x148bbd(0x3f9)]!=null?String(_0x399a20[_0x148bbd(0x3f9)]):String(_0x399a20),'stack':_0x399a20&&_0x399a20['stack'],'code':_0x399a20&&_0x399a20[_0x148bbd(0x1a8)],'status':_0x399a20&&typeof _0x399a20[_0x148bbd(0x2b6)]===_0x148bbd(0x682)?_0x399a20[_0x148bbd(0x2b6)]:undefined,'hold':!!(_0x399a20&&_0x399a20[_0x148bbd(0x7a1)]===!![])}};}function _0x199c4d(_0x49bc40,_0x53c2a9){const _0x12a7ad=_0x5df8;_0x3e624d[_0x12a7ad(0x5af)](_0x49bc40,_0x53c2a9);}function _0x3bf3a2(_0x6f5d3c){const _0xd13dd5=_0x5df8;_0x3e624d[_0xd13dd5(0x5cb)](_0x6f5d3c);}let _0x25f2c6=0x0;function _0x363a88(){return _0x25f2c6>0x0;}function _0x2b3b7f(){const _0x3cbba4=_0x5df8;_0x25f2c6++;try{return _0x13d9a7[_0x3cbba4(0x323)](undefined,arguments);}finally{_0x25f2c6--;}}function _0x13d9a7(_0x33c4ef,_0x38cadd,_0x253078,_0x17924a,_0x4b305,_0x133fee){const _0x3f0262=_0x5df8;switch(_0x33c4ef){case _0x3f0262(0x533):return _0x37df0e(_0x38cadd);case _0x3f0262(0x5d2):return _0x3012c9(_0x38cadd);case'call':{const _0xc46c6c=Array[_0x3f0262(0x4d3)][_0x3f0262(0x101)][_0x3f0262(0x39c)](arguments,0x2),_0x45c4dd=_0x235b5b(_0x38cadd)[_0x3f0262(0x323)](undefined,_0xc46c6c);return _0x45c4dd&&typeof _0x45c4dd[_0x3f0262(0x1c4)]===_0x3f0262(0x1ea)?_0x54ae58(_0x45c4dd):_0x45c4dd;}case _0x3f0262(0x7d8):{const _0x35c8a0=Array[_0x3f0262(0x4d3)][_0x3f0262(0x101)]['call'](arguments,0x2),_0x364273=_0x235b5b(_0x38cadd)[_0x3f0262(0x323)](undefined,_0x35c8a0);if(_0x364273&&typeof _0x364273['then']===_0x3f0262(0x1ea))return{'$token':_0x111f9a(_0x364273)};return{'$value':_0x364273===undefined?null:_0x364273,'$undef':_0x364273===undefined};}case _0x3f0262(0x1dd):{const _0x5d8b38=_0x3e624d[_0x3f0262(0x759)](_0x38cadd);if(_0x5d8b38)_0x5d8b38[_0x3f0262(0x12a)](_0x253078,_0x17924a);return undefined;}case'log':{const _0x467d9c=_0x3e624d[_0x3f0262(0x759)](_0x38cadd);if(_0x467d9c)_0x467d9c[_0x3f0262(0x4b6)](_0x253078);return undefined;}case _0x3f0262(0x586):return _0x1ddd10(_0x38cadd,_0x253078,_0x17924a,_0x4b305,_0x133fee,arguments[0x6],arguments[0x7]);case _0x3f0262(0x481):return _0x38a8e2(_0x38cadd,_0x253078,_0x17924a);case _0x3f0262(0x5cf):return _0x59934a(_0x38cadd,_0x253078,_0x17924a,_0x4b305,_0x133fee,arguments[0x6]);case'driver':return _0x2862ba[_0x3f0262(0x323)](null,Array['prototype'][_0x3f0262(0x101)][_0x3f0262(0x39c)](arguments,0x1));case'api':return _0x9520b(_0x38cadd,_0x253078,_0x17924a);case _0x3f0262(0x313):return _0x1ace25(_0x38cadd);case'fetchJson':{const _0x3f8924=((async()=>{const _0x54835c=_0x3f0262,_0xa04591=await globalThis['fetch'](_0x38cadd);if(!_0xa04591['ok']){const _0x349e51=new Error(_0x54835c(0x48c)+_0xa04591[_0x54835c(0x2b6)]);_0x349e51[_0x54835c(0x1a8)]=_0x54835c(0x2d1);throw _0x349e51;}return _0xa04591[_0x54835c(0x73d)]();})());return _0x54ae58(_0x3f8924)??null;}case _0x3f0262(0x398):return _0x2056a2(_0x38cadd,_0x253078,_0x17924a);case _0x3f0262(0x6ed):return _0x36aa10(_0x38cadd,_0x253078,_0x17924a);case _0x3f0262(0x2a5):return _0x3da907(_0x38cadd,_0x253078,_0x17924a);default:throw new Error(_0x3f0262(0x5f5)+_0x33c4ef);}}return bridge_1={'inNativeCall':_0x363a88,'regObject':_0x5ee816,'checkSignals':_0x300772,'setCurrentDb':_0x5cece2,'forgetDb':_0x1a22bc,'storePayload':_0xd56ab3,'registerEnv':_0x4c52f5,'resolvePayload':_0xbc71b0,'bridge':_0x2b3b7f,'reg':_0x37df0e,'unreg':_0x3012c9,'fnOf':_0x235b5b,'track':_0x111f9a,'resolve':_0x1ace25,'registerTarget':_0x199c4d,'unregisterTarget':_0x3bf3a2,'setKick':_0x23150d,'kickOwnedBy':_0x34c104},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1c1471=_0x30dd4b;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x1ee294}=requireErrors(),_0x29570a=requireBridge(),_0xdbcef1=new Map();let _0x5e8bec=null;function _0x56d543(_0x1c8004){const _0x2c6309=_0x5df8;if(_0x5e8bec)return;_0x5e8bec=_0x1c8004,_0x1c8004[_0x2c6309(0x3a8)](_0x468e76);}function _0x468e76(){const _0x11a8de=_0x5df8,_0x2f5260=_0x5e8bec[_0x11a8de(0x765)]();for(const _0x5222c7 of _0x2f5260){const _0x1eeea2=_0xdbcef1[_0x11a8de(0x759)](_0x5222c7);_0x1eeea2&&(_0xdbcef1[_0x11a8de(0x5cb)](_0x5222c7),_0x1eeea2());}}function _0x4e164c(_0x4c9db8,_0x3c3736){const _0x2295e0=_0x5df8;_0xdbcef1[_0x2295e0(0x5af)](_0x4c9db8,_0x3c3736);}class _0x52e180{constructor(_0x4f8e9f){const _0x252a8c=_0x5df8;this['db']=_0x4f8e9f,this[_0x252a8c(0x39f)]=[],this[_0x252a8c(0x6f4)]=![],this[_0x252a8c(0x7ad)]=![],this['inflight']=new Set();}['enqueue'](_0x45396,_0x107057,_0x459a95,_0x8494d7){const _0x3984c5=_0x5df8;if(_0x29570a[_0x3984c5(0x39d)]())try{return Promise[_0x3984c5(0x313)](this['db'][_0x3984c5(0x6ad)](_0x45396,_0x107057,_0x459a95,_0x8494d7));}catch(_0x264995){return Promise[_0x3984c5(0x165)](_0x264995);}const _0x29cc4f=new Promise((_0x40e057,_0x160348)=>{const _0x586620=_0x3984c5;this[_0x586620(0x39f)][_0x586620(0x150)]({'item':[_0x45396,_0x107057,_0x459a95,_0x8494d7],'resolve':_0x40e057,'reject':_0x160348});});this[_0x3984c5(0x5b4)][_0x3984c5(0x241)](_0x29cc4f);const _0x4bf02f=()=>this['inflight']['delete'](_0x29cc4f);return _0x29cc4f[_0x3984c5(0x1c4)](_0x4bf02f,_0x4bf02f),!this[_0x3984c5(0x6f4)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x35cdd1=_0x3984c5;this[_0x35cdd1(0x6f4)]=![],this[_0x35cdd1(0x6a6)]();})),_0x29cc4f;}['commit'](){const _0x5ca2fc=_0x5df8;if(!this[_0x5ca2fc(0x39f)]['length'])return;if(this[_0x5ca2fc(0x7ad)]){!this[_0x5ca2fc(0x6f4)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x57aead=_0x5ca2fc;this[_0x57aead(0x6f4)]=![],this[_0x57aead(0x6a6)]();}));return;}const _0x225668=this[_0x5ca2fc(0x39f)];this[_0x5ca2fc(0x39f)]=[],this['_run'](_0x225668);}[_0x1c1471(0x2f2)](_0x3454af){const _0x2098be=_0x1c1471;let _0x5cb67e;this['inBatch']=!![];try{_0x5cb67e=this['db'][_0x2098be(0x175)][_0x2098be(0x4a4)](_0x3454af[_0x2098be(0x3e7)](_0x347e3d=>_0x347e3d[_0x2098be(0x7b5)]));}catch(_0x1cf919){this[_0x2098be(0x7ad)]=![];if(_0x3454af[_0x2098be(0x306)]>0x1){for(const _0x3ade49 of _0x3454af)this[_0x2098be(0x2f2)]([_0x3ade49]);return;}const _0x13bc9d=_0x1ee294(_0x1cf919);for(const _0x5a816e of _0x3454af)_0x5a816e[_0x2098be(0x165)](_0x13bc9d);return;}finally{this['inBatch']=![];}try{this['db'][_0x2098be(0x2fd)][_0x2098be(0x7e0)]();}catch{}const [_0x464f9e,_0x5a3168]=_0x5cb67e;_0x4e164c(_0x5a3168,()=>{const _0x52489b=_0x2098be;for(let _0xcecb50=0x0;_0xcecb50<_0x3454af[_0x52489b(0x306)];_0xcecb50++){const _0x156a12=_0x464f9e[_0xcecb50];if(_0x156a12&&_0x156a12[0x0])_0x3454af[_0xcecb50][_0x52489b(0x313)](_0x156a12[0x1]);else _0x3454af[_0xcecb50]['reject'](_0x1ee294(_0x156a12?_0x156a12[0x1]:new Error(_0x52489b(0x417))));}});}async[_0x1c1471(0x6bb)](){const _0x40e95a=_0x1c1471;this[_0x40e95a(0x6a6)]();while(this[_0x40e95a(0x5b4)]['size']){await Promise['allSettled']([...this[_0x40e95a(0x5b4)]]),this[_0x40e95a(0x6a6)]();}let _0x41533d;try{_0x41533d=this['db'][_0x40e95a(0x175)]['flushTicket']();}catch{return;}await new Promise(_0x20de86=>_0x4e164c(_0x41533d,_0x20de86));}}return writebatch={'install':_0x56d543,'WriteBatch':_0x52e180,'whenSettled':_0x4e164c},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x52c736=_0x30dd4b;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x3408c7=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x4dc8c9{constructor(_0x34d0a8){const _0x4cadb2=_0x5df8;this[_0x4cadb2(0x74e)]=_0x34d0a8,this[_0x4cadb2(0x2c2)]=null,this['immediate']=null,this['running']=![],this[_0x4cadb2(0x40f)]=![],this[_0x4cadb2(0x3a5)]=![],this[_0x4cadb2(0x167)]=![],this[_0x4cadb2(0x5f9)]=0x0,this[_0x4cadb2(0x569)]=[];}[_0x52c736(0x6ac)](){const _0x4a0621=_0x52c736;this[_0x4a0621(0x40f)]=![],this[_0x4a0621(0x7e0)]();}['stop'](){const _0x390764=_0x52c736;this[_0x390764(0x40f)]=!![];if(this[_0x390764(0x2c2)])clearTimeout(this[_0x390764(0x2c2)]);if(this[_0x390764(0x4b1)])clearImmediate(this['immediate']);this[_0x390764(0x2c2)]=this[_0x390764(0x4b1)]=null;}[_0x52c736(0x7e0)](){const _0x442f88=_0x52c736;if(this['stopped']||this[_0x442f88(0x4b1)])return;this[_0x442f88(0x2c2)]&&(clearTimeout(this[_0x442f88(0x2c2)]),this[_0x442f88(0x2c2)]=null),this[_0x442f88(0x4b1)]=setImmediate(()=>{const _0x549252=_0x442f88;this['immediate']=null,this[_0x549252(0x28f)]();});}[_0x52c736(0x28f)](){const _0x2c47d3=_0x52c736;if(this[_0x2c47d3(0x40f)]||this[_0x2c47d3(0x3a5)]){this[_0x2c47d3(0x167)]=!![];return;}this['pumping']=!![];let _0x362420;try{this[_0x2c47d3(0x5f9)]++,_0x362420=this[_0x2c47d3(0x74e)]['pump']();if(this[_0x2c47d3(0x642)])this[_0x2c47d3(0x642)]();}catch(_0x7dcb91){_0x362420=_0x3408c7,process[_0x2c47d3(0x47d)](()=>{throw _0x7dcb91;});}finally{this['pumping']=![];}if(this[_0x2c47d3(0x40f)]||_0x362420===-0x2)return;if(this[_0x2c47d3(0x167)])return this[_0x2c47d3(0x167)]=![],this[_0x2c47d3(0x7e0)]();const _0x403b90=_0x362420<0x0?_0x3408c7:Math[_0x2c47d3(0x1fa)](0x0,Math[_0x2c47d3(0x6fa)](_0x362420,_0x3408c7));if(_0x403b90<=0x0)return this['wake']();this['timer']=setTimeout(()=>{const _0x113507=_0x2c47d3;this[_0x113507(0x2c2)]=null,this[_0x113507(0x28f)]();},Math[_0x2c47d3(0x4f9)](_0x403b90));if(this[_0x2c47d3(0x2c2)][_0x2c47d3(0x4ff)])this['timer']['unref']();}}return pump={'Pumper':_0x4dc8c9},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x43e2fb=_0x30dd4b;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x33e97f=Symbol['for'](_0x43e2fb(0x4c3)),_0x288609={'value':null,'done':!![]},_0x4bb4cb={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol['asyncIterator']=Symbol[_0x43e2fb(0x7d2)](_0x43e2fb(0x3e8)));const _0x3e1c02={};class _0x1cb869{constructor(_0x8a48c5){const _0x5ff810=_0x43e2fb;_0x8a48c5&&(this['iterate']=_0x8a48c5[Symbol[_0x5ff810(0x527)]][_0x5ff810(0x5c9)](_0x8a48c5));}[_0x43e2fb(0x3e7)](_0xc5ed5f){const _0x20a313=_0x43e2fb;let _0x3cf7a0=this,_0x2d8ca9=new _0x1cb869();return _0x2d8ca9[_0x20a313(0x5ce)]=(_0x539514=_0x3e1c02)=>{const _0x3e99c0=_0x20a313,{async:_0x3920a2}=_0x539514;let _0x2b8111=_0x3cf7a0[_0x3920a2?Symbol[_0x3e99c0(0x5e7)]:Symbol['iterator']](_0x539514);if(!_0x3920a2)_0x3cf7a0[_0x3e99c0(0x732)]=!![];let _0xe726f6=-0x1;return{'next'(_0xa90add){const _0x427a56=_0x3e99c0;let _0x4e2cc6;do{let _0x2a99fa;try{if(_0xa90add)_0x2a99fa=_0xa90add,_0xa90add=null;else{_0xe726f6++,_0x2a99fa=_0x2b8111['next']();if(_0x2a99fa[_0x427a56(0x1c4)])return!_0x3920a2&&this[_0x427a56(0x171)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x2a99fa[_0x427a56(0x1c4)](_0x2baa4a=>this[_0x427a56(0x659)](_0x2baa4a),_0x4da93d=>{const _0x2a2773=_0x427a56;return this[_0x2a2773(0x171)](_0x4da93d);});}if(_0x2a99fa[_0x427a56(0x11f)]===!![]){this['done']=!![];if(_0x2d8ca9[_0x427a56(0x447)])_0x2d8ca9[_0x427a56(0x447)]();return _0x2a99fa;}try{_0x4e2cc6=_0xc5ed5f[_0x427a56(0x39c)](_0x3cf7a0,_0x2a99fa['value'],_0xe726f6);if(_0x4e2cc6&&_0x4e2cc6['then']&&_0x3920a2)return _0x4e2cc6[_0x427a56(0x1c4)](_0x33fe4c=>_0x33fe4c===_0x33e97f?this[_0x427a56(0x659)]():{'value':_0x33fe4c},_0x5b34b0=>{const _0x2c246f=_0x427a56;if(_0x539514[_0x2c246f(0x4de)])_0x5b34b0[_0x2c246f(0x377)]=!![];return this[_0x2c246f(0x171)](_0x5b34b0);});}catch(_0x342507){if(_0x539514[_0x427a56(0x4de)])_0x342507[_0x427a56(0x377)]=!![];throw _0x342507;}}catch(_0x1a4802){if(_0x2d8ca9['handleError'])try{_0x4e2cc6=_0x2d8ca9['handleError'](_0x1a4802,_0xe726f6);}catch(_0x56c021){return this[_0x427a56(0x171)](_0x56c021);}else return this[_0x427a56(0x171)](_0x1a4802);}}while(_0x4e2cc6===_0x33e97f);if(_0x4e2cc6===_0x288609)return this[_0x427a56(0x235)]();return{'value':_0x4e2cc6};},'return'(_0x374330){const _0x42259d=_0x3e99c0;if(!this[_0x42259d(0x11f)]){_0x4bb4cb[_0x42259d(0x2e6)]=_0x374330,this['done']=!![];if(_0x2d8ca9[_0x42259d(0x447)])_0x2d8ca9[_0x42259d(0x447)]();_0x2b8111[_0x42259d(0x235)]?.();}return _0x4bb4cb;},'throw'(_0x52e1ca){const _0x16f757=_0x3e99c0;if(_0x52e1ca['continueIteration']){if(_0x2d8ca9[_0x16f757(0x273)])try{return{'value':_0x2d8ca9[_0x16f757(0x273)](_0x52e1ca)};}catch(_0x449314){this[_0x16f757(0x235)]();throw _0x449314;}if(_0x539514[_0x16f757(0x4de)])throw _0x52e1ca;}this[_0x16f757(0x235)]();throw _0x52e1ca;}};},_0x2d8ca9;}[Symbol[_0x43e2fb(0x5e7)]](_0x1f741c){const _0x5bd081=_0x43e2fb;if(_0x1f741c)_0x1f741c={..._0x1f741c,'async':!![]};else _0x1f741c={'async':!![]};return this[_0x5bd081(0x527)]=this[_0x5bd081(0x5ce)](_0x1f741c);}[Symbol['iterator']](_0x1fbfd7){return this['iterator']=this['iterate'](_0x1fbfd7);}[_0x43e2fb(0x3c0)](_0x1a2b75){const _0x387e1a=_0x43e2fb;let _0x3ae8db=this[_0x387e1a(0x3e7)](_0x300cb6=>{const _0x20c632=_0x387e1a;let _0x422951=_0x1a2b75(_0x300cb6);if(_0x422951?.['then'])return _0x422951[_0x20c632(0x1c4)](_0x843c29=>_0x843c29?_0x300cb6:_0x33e97f);else return _0x422951?_0x300cb6:_0x33e97f;}),_0x1fc7f0=_0x3ae8db[_0x387e1a(0x5ce)];return _0x3ae8db[_0x387e1a(0x5ce)]=(_0x1f3b7b=_0x3e1c02)=>{if(_0x1f3b7b['continueOnRecoverableError'])_0x1f3b7b={..._0x1f3b7b,'continueOnRecoverableError':![]};return _0x1fc7f0(_0x1f3b7b);},_0x3ae8db;}[_0x43e2fb(0x131)](_0x46744e){const _0x2bc8d7=_0x43e2fb;let _0x415dbc=this[_0x2bc8d7(0x527)]=this['iterate'](),_0x161c0;while((_0x161c0=_0x415dbc['next']())[_0x2bc8d7(0x11f)]!==!![]){_0x46744e(_0x161c0[_0x2bc8d7(0x2e6)]);}}['concat'](_0x1a5927){let _0x184105=new _0x1cb869();return _0x184105['iterate']=(_0x50b517=_0x3e1c02)=>{const _0x189c2a=_0x5df8;let _0x4a55b2=this[_0x189c2a(0x527)]=this[_0x189c2a(0x5ce)](_0x50b517),_0x3ceb88=!![];function _0x5f8034(_0x5a0723){const _0x5d828b=_0x189c2a;if(_0x3ceb88)try{_0x3ceb88=![],_0x4a55b2=_0x1a5927[_0x50b517[_0x5d828b(0x459)]?Symbol['asyncIterator']:Symbol[_0x5d828b(0x527)]](),_0x5a0723=_0x4a55b2[_0x5d828b(0x659)]();if(_0x184105[_0x5d828b(0x447)]){if(_0x5a0723[_0x5d828b(0x1c4)]){if(!_0x50b517['async'])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x5a0723[_0x5d828b(0x1c4)](_0x35777a=>{if(_0x35777a['done']())_0x184105['onDone']();},_0x247cce=>{this['return']();throw _0x247cce;});}else{if(_0x5a0723[_0x5d828b(0x11f)])_0x184105[_0x5d828b(0x447)]();}}}catch(_0x2d9615){this[_0x5d828b(0x171)](_0x2d9615);}else{if(_0x184105[_0x5d828b(0x447)])_0x184105['onDone']();}return _0x5a0723;}return{'next'(){const _0x10a5b2=_0x189c2a;try{let _0x233e4e=_0x4a55b2['next']();if(_0x233e4e[_0x10a5b2(0x1c4)]){if(!_0x50b517[_0x10a5b2(0x459)])throw new Error(_0x10a5b2(0xe0));return _0x233e4e[_0x10a5b2(0x1c4)](_0x1b8224=>{const _0xb87039=_0x10a5b2;if(_0x1b8224[_0xb87039(0x11f)])return _0x5f8034(_0x1b8224);return _0x1b8224;});}if(_0x233e4e[_0x10a5b2(0x11f)])return _0x5f8034(_0x233e4e);return _0x233e4e;}catch(_0x4ab1c0){this[_0x10a5b2(0x171)](_0x4ab1c0);}},'return'(_0x469b08){const _0x53775a=_0x189c2a;if(!this['done']){_0x4bb4cb[_0x53775a(0x2e6)]=_0x469b08,this['done']=!![];if(_0x184105[_0x53775a(0x447)])_0x184105[_0x53775a(0x447)]();_0x4a55b2['return']();}return _0x4bb4cb;},'throw'(_0x1042ac){const _0x33902b=_0x189c2a;if(_0x50b517['continueOnRecoverableError'])throw _0x1042ac;this[_0x33902b(0x235)]();throw _0x1042ac;}};},_0x184105;}['flatMap'](_0x28f775){const _0x2eb413=_0x43e2fb;let _0x3ac364=new _0x1cb869();return _0x3ac364[_0x2eb413(0x5ce)]=(_0x26a8e4=_0x3e1c02)=>{const _0x323ce4=_0x2eb413;let _0x451767=this[_0x323ce4(0x527)]=this[_0x323ce4(0x5ce)](_0x26a8e4),_0x49dae3;return{'next'(_0x1f9e3){const _0xe47e02=_0x323ce4;try{do{if(_0x49dae3){let _0x197771;if(_0x1f9e3)_0x197771=_0x1f9e3,_0x1f9e3=undefined;else _0x197771=_0x49dae3[_0xe47e02(0x659)]();if(_0x197771[_0xe47e02(0x1c4)]){if(!_0x26a8e4['async'])throw new Error(_0xe47e02(0xe0));return _0x197771[_0xe47e02(0x1c4)](_0x251363=>this[_0xe47e02(0x659)](_0x251363));}if(!_0x197771['done'])return _0x197771;}let _0x852921;if(_0x1f9e3!=undefined)_0x852921=_0x1f9e3,_0x1f9e3=undefined;else _0x852921=_0x451767['next']();if(_0x852921[_0xe47e02(0x1c4)]){if(!_0x26a8e4[_0xe47e02(0x459)])throw new Error(_0xe47e02(0xe0));return _0x49dae3=undefined,_0x852921['then'](_0x483520=>this[_0xe47e02(0x659)](_0x483520));}if(_0x852921[_0xe47e02(0x11f)]){if(_0x3ac364['onDone'])_0x3ac364[_0xe47e02(0x447)]();return _0x852921;}try{let _0x1f8364=_0x28f775(_0x852921[_0xe47e02(0x2e6)]);if(_0x1f8364?.['then']){if(!_0x26a8e4[_0xe47e02(0x459)])throw new Error(_0xe47e02(0xe0));return _0x1f8364[_0xe47e02(0x1c4)](_0x4c5f70=>{const _0x3d5e54=_0xe47e02;return Array[_0x3d5e54(0x470)](_0x4c5f70)||_0x4c5f70 instanceof _0x1cb869?(_0x49dae3=_0x4c5f70[Symbol[_0x3d5e54(0x527)]](),this[_0x3d5e54(0x659)]()):(_0x49dae3=null,{'value':_0x4c5f70});},_0x1a95fd=>{const _0x358fb4=_0xe47e02;if(_0x26a8e4['continueOnRecoverableError'])_0x1a95fd[_0x358fb4(0x377)]=!![];this['throw'](_0x1a95fd);});}if(Array['isArray'](_0x1f8364)||_0x1f8364 instanceof _0x1cb869)_0x49dae3=_0x1f8364[Symbol[_0xe47e02(0x527)]]();else return _0x49dae3=null,{'value':_0x1f8364};}catch(_0x4c33e2){if(_0x26a8e4[_0xe47e02(0x4de)])_0x4c33e2[_0xe47e02(0x377)]=!![];throw _0x4c33e2;}}while(!![]);}catch(_0x5e85e4){this[_0xe47e02(0x171)](_0x5e85e4);}},'return'(){const _0x400161=_0x323ce4;if(_0x3ac364[_0x400161(0x447)])_0x3ac364[_0x400161(0x447)]();if(_0x49dae3)_0x49dae3[_0x400161(0x235)]();return _0x451767[_0x400161(0x235)]();},'throw'(_0x33039d){const _0x2f7c21=_0x323ce4;if(_0x26a8e4[_0x2f7c21(0x4de)])throw _0x33039d;if(_0x3ac364[_0x2f7c21(0x447)])_0x3ac364[_0x2f7c21(0x447)]();if(_0x49dae3)_0x49dae3[_0x2f7c21(0x235)]();this[_0x2f7c21(0x235)]();throw _0x33039d;}};},_0x3ac364;}[_0x43e2fb(0x101)](_0x527cf6,_0x33fbc7){const _0x1b108e=_0x43e2fb;let _0x185ca5=this[_0x1b108e(0x3e7)]((_0x4c22d9,_0x22161a)=>{const _0xc57003=_0x1b108e;if(_0x22161a<_0x527cf6)return _0x33e97f;if(_0x22161a>=_0x33fbc7)return _0x288609[_0xc57003(0x2e6)]=_0x4c22d9,_0x288609;return _0x4c22d9;});return _0x185ca5['handleError']=(_0x474924,_0x3753c9)=>{if(_0x3753c9<_0x527cf6)return _0x33e97f;if(_0x3753c9>=_0x33fbc7)return _0x288609;throw _0x474924;},_0x185ca5;}['mapError'](_0x2f222e){const _0x12a01c=_0x43e2fb;if(typeof _0x2f222e!==_0x12a01c(0x1ea))throw new TypeError(_0x12a01c(0x178));let _0x3f01fa=this[_0x12a01c(0x3e7)](_0x43c5e4=>{return _0x43c5e4;}),_0x515726=_0x3f01fa['iterate'];return _0x3f01fa[_0x12a01c(0x5ce)]=(_0x1d23d7=_0x3e1c02)=>{return _0x515726({..._0x1d23d7,'continueOnRecoverableError':!![]});},_0x3f01fa[_0x12a01c(0x273)]=_0x2f222e,_0x3f01fa;}[_0x43e2fb(0x659)](){const _0x17e6b2=_0x43e2fb;if(!this[_0x17e6b2(0x527)])this[_0x17e6b2(0x527)]=this['iterate']();return this[_0x17e6b2(0x527)]['next']();}[_0x43e2fb(0x38a)](){const _0x1dd827=_0x43e2fb;if(this[_0x1dd827(0x403)]&&this['asArray'][_0x1dd827(0x131)])return this[_0x1dd827(0x403)];const _0x2ccb6a=new Error(_0x1dd827(0x5ac));_0x2ccb6a[_0x1dd827(0x272)]=this[_0x1dd827(0x403)];throw _0x2ccb6a;}get['asArray'](){const _0x29490e=_0x43e2fb;if(this[_0x29490e(0x49a)])return this[_0x29490e(0x49a)];let _0x67788a=new Promise((_0x4e06c7,_0x50f364)=>{const _0x4ecad9=_0x29490e;let _0x201afd=this['iterate'](!![]),_0xecf0f7=[],_0x1e53b4=this;Object['defineProperty'](_0xecf0f7,_0x4ecad9(0x206),{'value':_0x1e53b4});function _0x114be2(_0x12e57d){const _0x9d6832=_0x4ecad9;while(_0x12e57d[_0x9d6832(0x11f)]!==!![]){if(_0x12e57d[_0x9d6832(0x1c4)])return _0x12e57d[_0x9d6832(0x1c4)](_0x114be2);else _0xecf0f7[_0x9d6832(0x150)](_0x12e57d[_0x9d6832(0x2e6)]);_0x12e57d=_0x201afd['next']();}_0x4e06c7(_0x1e53b4[_0x9d6832(0x49a)]=_0xecf0f7);}_0x114be2(_0x201afd['next']());});return _0x67788a[_0x29490e(0x206)]=this,this['_asArray']||(this['_asArray']=_0x67788a);}[_0x43e2fb(0x655)](){return this['asArray'];}['at'](_0x56e146){for(let _0x5e02e8 of this){if(_0x56e146--===0x0)return _0x5e02e8;}}}return _0x1cb869[_0x43e2fb(0x4d3)][_0x43e2fb(0x52e)]=_0x288609,dist$1[_0x43e2fb(0x528)]=_0x1cb869,dist$1[_0x43e2fb(0x4ed)]=_0x33e97f,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x2c8749=_0x30dd4b;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x526178}=requireDist$1(),_0x16cc71=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x1ec892=Math['min'](_0x16cc71,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x4a91c2=new Set(['getRange',_0x2c8749(0x1ae),_0x2c8749(0x187),_0x2c8749(0x591)]),_0x2f9e98=Math[_0x2c8749(0x6fa)](_0x1ec892,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x2c7b7c=0x4,_0x1b24c5=(_0x29ff5d,_0x13db07=_0x16cc71)=>Math[_0x2c8749(0x6fa)](_0x13db07,_0x29ff5d*_0x2c7b7c),_0x40c923={'value':undefined,'done':!![]};function _0x371055(_0x420061){const _0x35a2eb=_0x2c8749,_0x12a687=new _0x526178();return _0x12a687[_0x35a2eb(0x5ce)]=()=>{let _0x1bd51b=0x0;return{'next'(){const _0x3e362f=_0x5df8;return _0x1bd51b<_0x420061[_0x3e362f(0x306)]?{'value':_0x420061[_0x1bd51b++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x5e7395=_0x5df8;return _0x1bd51b=_0x420061[_0x5e7395(0x306)],{'value':undefined,'done':!![]};},'throw'(){const _0xa7fda9=_0x5df8;return _0x1bd51b=_0x420061[_0xa7fda9(0x306)],{'value':undefined,'done':!![]};}};},_0x12a687;}const _0x498ab4=_0x4a7747=>typeof _0x4a7747==='number'&&!Number[_0x2c8749(0x1d0)](_0x4a7747)?Math['max'](0x0,Math[_0x2c8749(0x4f9)](_0x4a7747)):Infinity,_0x24a4fc=_0x3c0533=>typeof _0x3c0533==='number'?Math['max'](0x0,Math[_0x2c8749(0x35e)](_0x3c0533))||0x0:0x0;function _0x1e4585(_0x22e0fc,_0x33e0d6,_0x5dea4a,_0xb2c8fa={}){const _0x433567=_0x2c8749,_0x5d4940=new _0x526178(),_0x24f87a=(_0xb2c8fa['limitOf']||_0x498ab4)(_0x33e0d6[_0x433567(0x376)]),_0x1f1bd1=_0xb2c8fa['rows']?_0x1ec892:_0x16cc71,_0xefb82d=_0xb2c8fa[_0x433567(0xe2)]||((_0xb575ed,_0x4b8a20)=>{const _0x59a2f7=_0x433567;_0xb575ed[_0x59a2f7(0x6ac)]=_0x4b8a20,_0xb575ed[_0x59a2f7(0x144)]=!![],delete _0xb575ed[_0x59a2f7(0x7e6)];});let _0xe4ada0=null;if(_0xb2c8fa[_0x433567(0x7cb)]){const _0x2d1ceb={..._0x33e0d6,'limit':Math[_0x433567(0x6fa)](_0x2f9e98,_0x24f87a)};_0xe4ada0={'rows':_0x22e0fc(_0x2d1ceb),'limit':_0x2d1ceb[_0x433567(0x376)]};const _0x250749=_0xe4ada0;queueMicrotask(()=>{const _0x4845ef=_0x433567;_0x250749[_0x4845ef(0x39e)]=!![];});}return _0x5d4940['iterate']=()=>{const _0x4866d8=_0x433567;let _0x98e3a2=[],_0x3d0a75=0x0,_0x450259=0x0,_0x3e816b,_0x125fd2=![],_0x44c1b7=![],_0x74ccef=_0x2f9e98;if(_0xe4ada0&&!_0xe4ada0['dropped']&&!_0xe4ada0[_0x4866d8(0x148)]){_0xe4ada0[_0x4866d8(0x148)]=!![],_0x98e3a2=_0xe4ada0['rows'],_0x125fd2=!![],_0x74ccef=_0x1b24c5(_0x74ccef,_0x1f1bd1);if(_0x98e3a2[_0x4866d8(0x306)]<_0xe4ada0[_0x4866d8(0x376)])_0x44c1b7=!![];if(_0x98e3a2['length'])_0x3e816b=_0x5dea4a(_0x98e3a2[_0x98e3a2[_0x4866d8(0x306)]-0x1]);}const _0xa70e8f=()=>{const _0x41df45=_0x4866d8;if(_0x44c1b7)return;const _0x33aa27=_0x24f87a-_0x450259;if(_0x33aa27<=0x0){_0x44c1b7=!![],_0x98e3a2=[];return;}const _0x182bf8={..._0x33e0d6,'limit':Math[_0x41df45(0x6fa)](_0x74ccef,_0x33aa27)};if(_0x125fd2)_0xefb82d(_0x182bf8,_0x3e816b);_0x125fd2=!![],_0x74ccef=_0x1b24c5(_0x74ccef,_0x1f1bd1),_0x98e3a2=_0x22e0fc(_0x182bf8),_0x3d0a75=0x0;if(_0x98e3a2['length']<_0x182bf8[_0x41df45(0x376)])_0x44c1b7=!![];if(_0x98e3a2[_0x41df45(0x306)])_0x3e816b=_0x5dea4a(_0x98e3a2[_0x98e3a2[_0x41df45(0x306)]-0x1]);};return{'next'(){const _0x3e932e=_0x4866d8;if(_0x3d0a75>=_0x98e3a2[_0x3e932e(0x306)])_0xa70e8f();if(_0x3d0a75>=_0x98e3a2[_0x3e932e(0x306)])return{'value':undefined,'done':!![]};return _0x450259++,{'value':_0x98e3a2[_0x3d0a75++],'done':![]};},'return'(){return _0x44c1b7=!![],_0x98e3a2=[],{'value':undefined,'done':!![]};},'throw'(){return _0x44c1b7=!![],_0x98e3a2=[],{'value':undefined,'done':!![]};}};},_0x5d4940;}function _0x418c5f(_0x571e67,_0x3ec8ee,_0x7c002b,_0x3e71ad,_0x3f0b13={}){const _0x3ea85f=_0x2c8749,_0x3f3b1d=(_0x3f0b13[_0x3ea85f(0x47c)]||_0x498ab4)(_0x3e71ad&&_0x3e71ad[_0x3ea85f(0x376)]),_0x4c2e61=_0x4a91c2['has'](_0x3ec8ee)?_0x1ec892:_0x16cc71,_0x4f44ee=(_0x3f0b13[_0x3ea85f(0x1db)]||_0x24a4fc)(_0x3e71ad&&_0x3e71ad[_0x3ea85f(0x7e6)]),_0x219e7f=(_0x4c0755,_0x18922b,_0x4c608e)=>{const _0xb12223=_0x3ea85f,_0x141d20=_0x3f3b1d-_0x18922b,_0x430b79=Math[_0xb12223(0x6fa)](_0x4c608e,_0x141d20),_0x1d3597={'limit':_0x430b79,'offset':_0x4f44ee+_0x18922b},_0xd9b7d=_0x571e67('pinned',[_0x4c0755,_0x3ec8ee,_0x430b79===_0x141d20?Infinity:_0x430b79,..._0x7c002b(_0x1d3597)]);if(_0xd9b7d[0x0]===-0x1){const _0x56ac92={'offset':_0x4f44ee+_0x18922b};if(_0x141d20!==Infinity)_0x56ac92[_0xb12223(0x376)]=_0x141d20;return{'pin':0x0,'rows':_0x571e67(_0x3ec8ee,_0x7c002b(_0x56ac92)),'raw':Infinity,'eager':!![]};}return{'pin':_0xd9b7d[0x0],'rows':_0xd9b7d[0x1],'raw':_0xd9b7d[0x2]};},_0x12c5a2=_0x103d13=>{if(_0x103d13)_0x571e67('unpin',[_0x103d13]);};function _0x46bd45(_0x10b870,_0x74af82,_0x4907e7){let _0x3f466c=0x0,_0x223dce=[],_0x42a07e=0x0,_0x1e5bb6=_0x10b870,_0x5a5199=_0x2f9e98,_0x3f5012=_0x3f3b1d-_0x10b870<=0x0;if(_0x4907e7)({buf:_0x223dce,pos:_0x42a07e,consumed:_0x1e5bb6,size:_0x5a5199,exhausted:_0x3f5012}=_0x4907e7);const _0x43b77f=_0x182883=>{const _0xc49e0c=_0x5df8;_0x3f466c=_0x182883[_0xc49e0c(0x567)],_0x223dce=_0x182883[_0xc49e0c(0x127)],_0x42a07e=0x0,_0x1e5bb6+=_0x182883[_0xc49e0c(0x279)],_0x5a5199=_0x1b24c5(_0x5a5199,_0x4c2e61);if(!_0x3f466c)_0x3f5012=!![];};if(_0x74af82)_0x43b77f(_0x74af82);const _0x5b4584=()=>{const _0x24821f=_0x3f466c;_0x3f466c=0x0,_0x12c5a2(_0x24821f);},_0xd2f883={'next'(){const _0x2273f0=_0x5df8;while(_0x42a07e>=_0x223dce[_0x2273f0(0x306)]){if(_0x3f5012||_0x3f3b1d-_0x1e5bb6<=0x0)return _0x3f5012=!![],_0x5b4584(),_0x40c923;try{_0x43b77f(_0x219e7f(_0x3f466c,_0x1e5bb6,_0x5a5199));}catch(_0x7d6923){_0x3f466c=0x0,_0x3f5012=!![],_0x223dce=[];throw _0x7d6923;}}return{'value':_0x223dce[_0x42a07e++],'done':![]};},'return'(){return _0x5b4584(),_0x40c923;},'throw'(){return _0x5b4584(),_0x40c923;},'resumed'(){return _0x46bd45(0x0,null,{'buf':_0x223dce,'pos':_0x42a07e,'consumed':_0x1e5bb6,'size':_0x5a5199,'exhausted':_0x3f5012});},[Symbol['iterator']](){return this;}};return _0xd2f883;}function _0x7903a4(){if(_0x3f3b1d<=0x0)return null;const _0x5b6cac=_0x219e7f(0x0,0x0,_0x2f9e98);return queueMicrotask(()=>{const _0x48749b=_0x5df8;!_0x5b6cac[_0x48749b(0x148)]&&(_0x5b6cac[_0x48749b(0x39e)]=!![],_0x12c5a2(_0x5b6cac[_0x48749b(0x567)]));}),_0x5b6cac;}return{'source':_0x46bd45,'prefetch':_0x7903a4};}function _0x33ba7b(_0x35f394){const _0x112dcc=_0x2c8749;if(!_0x35f394||_0x35f394[_0x112dcc(0x148)]||_0x35f394[_0x112dcc(0x39e)])return null;return _0x35f394[_0x112dcc(0x148)]=!![],_0x35f394;}return iterable={'fromArray':_0x371055,'chunkedRange':_0x1e4585,'pinnedChunks':_0x418c5f,'claimPrefetch':_0x33ba7b,'lmdbLimit':_0x498ab4,'lmdbOffset':_0x24a4fc,'CHUNK':_0x16cc71,'ROW_CHUNK':_0x1ec892,'FIRST':_0x2f9e98},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x47633b=_0x30dd4b;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x3fecc5}=requireIterable();class _0x369b25{constructor(_0x39cab6,_0x50e589='',_0x3a1db4={},_0x28ace3=null){const _0x3d5313=_0x5df8;this[_0x3d5313(0x5ed)]=_0x39cab6,this[_0x3d5313(0x331)]=_0x50e589,this['dupSort']=!!(_0x3a1db4&&_0x3a1db4[_0x3d5313(0x412)]),this[_0x3d5313(0x276)]=!!(_0x3a1db4&&_0x3a1db4[_0x3d5313(0x276)]),this[_0x3d5313(0x592)]=_0x28ace3||this,this[_0x3d5313(0x45a)]=null;}get[_0x47633b(0x2bd)](){const _0x5ab141=_0x47633b;return this[_0x5ab141(0x412)]?!![]:this[_0x5ab141(0x276)]?'v':![];}['_n'](_0xb89223,_0x4cad23){const _0x13f859=_0x47633b;return this[_0x13f859(0x5ed)][_0x13f859(0x11c)][_0x13f859(0x6ad)](_0x13f859(0x279),this[_0x13f859(0x5ed)]['name'],_0xb89223,[this['name'],this['_dupArg'],..._0x4cad23],!![]);}[_0x47633b(0x5d8)](_0x145c29,_0x281601){const _0x482396=_0x47633b;return this['_env']['okdb'][_0x482396(0x6ad)]('raw',this[_0x482396(0x5ed)]['name'],_0x145c29,[this['name'],this[_0x482396(0x2bd)],..._0x281601],![]);}[_0x47633b(0x593)](_0x428c1e){const _0x56d9b2=_0x47633b,_0xea460c=this[_0x56d9b2(0x5ed)][_0x56d9b2(0x63b)];if(_0xea460c)_0xea460c['push']({'sub':this[_0x56d9b2(0x331)],'dup':this[_0x56d9b2(0x2bd)],..._0x428c1e});else this['_env'][_0x56d9b2(0x11c)][_0x56d9b2(0x6ad)](_0x56d9b2(0x279),this[_0x56d9b2(0x5ed)][_0x56d9b2(0x331)],'batch',[[{'sub':this['name'],'dup':this['_dupArg'],..._0x428c1e}]],!![]);}['get'](_0x21d0c5){const _0x3095a4=_0x47633b;return this[_0x3095a4(0x5d8)](_0x3095a4(0x759),[_0x21d0c5]);}[_0x47633b(0x31c)](_0x2eba58){const _0x4eac59=_0x47633b;if(this[_0x4eac59(0x276)])return this[_0x4eac59(0x5d8)]('getEntry',[_0x2eba58]);const _0x2a3d66=this[_0x4eac59(0x759)](_0x2eba58);return _0x2a3d66===undefined?undefined:{'value':_0x2a3d66};}[_0x47633b(0x745)](_0x11bc85){const _0x1d6cf7=_0x47633b;return this[_0x1d6cf7(0x5d8)](_0x1d6cf7(0x606),[_0x11bc85]);}['getBinary'](_0x581075){return this['get'](_0x581075);}[_0x47633b(0x501)](_0x4b9c1b={}){const _0x1266a6=_0x47633b,_0x5cf475=this['_read'](_0x1266a6(0x501),[_0x4b9c1b]),_0x2401bc=_0x4b9c1b['values']===![],_0x2ebce2=_0x4b9c1b[_0x1266a6(0x2e9)]===![];return _0x3fecc5(_0x5cf475[_0x1266a6(0x3e7)](([_0xf83d49,_0x3c9015,_0x2cabba])=>{if(_0x2401bc)return _0xf83d49;if(_0x2ebce2)return _0x3c9015;return _0x2cabba===undefined?{'key':_0xf83d49,'value':_0x3c9015}:{'key':_0xf83d49,'value':_0x3c9015,'version':_0x2cabba};}));}['getKeys'](_0x15b3d={}){const _0x26d523=_0x47633b;return _0x3fecc5(this[_0x26d523(0x5d8)](_0x26d523(0x501),[_0x15b3d])[_0x26d523(0x3e7)](([_0x208c11])=>_0x208c11));}[_0x47633b(0x3c6)](_0x427648,_0x541d0b={}){const _0x40edc3=_0x47633b,_0x23e95e=this[_0x40edc3(0x5d8)](_0x40edc3(0x501),[{..._0x541d0b,'start':_0x427648,'end':_0x427648,'inclusiveEnd':!![]}]);return _0x3fecc5(_0x23e95e[_0x40edc3(0x3e7)](([,_0x8c9acf])=>_0x8c9acf));}[_0x47633b(0x429)](_0x3f5a68={}){const _0x20dcf4=_0x47633b;return this[_0x20dcf4(0x5d8)](_0x20dcf4(0x4e5),[_0x3f5a68]);}[_0x47633b(0x465)](){const _0x372e36=_0x47633b;return{'entryCount':this[_0x372e36(0x429)]()};}[_0x47633b(0x77a)](_0x20627a,_0xa7663b,_0x51791a){const _0x3d8b08=_0x47633b;return this[_0x3d8b08(0x593)]({'op':'put','key':_0x20627a,'value':_0xa7663b,'version':_0x51791a}),Promise['resolve'](!![]);}[_0x47633b(0x76e)](_0x38dce5,_0xcf04e3,_0x19a127){const _0x158136=_0x47633b;return this[_0x158136(0x593)]({'op':_0x158136(0x77a),'key':_0x38dce5,'value':_0xcf04e3,'version':_0x19a127}),!![];}[_0x47633b(0x4a1)](_0x462fd2,_0x28fbb9){const _0x2bc99a=_0x47633b;return this[_0x2bc99a(0x593)]({'op':_0x2bc99a(0x4a1),'key':_0x462fd2,'value':_0x28fbb9}),Promise[_0x2bc99a(0x313)](!![]);}[_0x47633b(0x712)](_0x4ecfdf,_0x13bcad){const _0x2eecc2=_0x47633b;return this[_0x2eecc2(0x593)]({'op':_0x2eecc2(0x4a1),'key':_0x4ecfdf,'value':_0x13bcad}),!![];}['clearSync'](){const _0x4c909a=_0x47633b;this[_0x4c909a(0x593)]({'op':_0x4c909a(0x30f)});}[_0x47633b(0x6f8)](){const _0x3721b9=_0x47633b;return this['_write']({'op':_0x3721b9(0x30f)}),Promise[_0x3721b9(0x313)]();}[_0x47633b(0x603)](){const _0x3cb443=_0x47633b;this[_0x3cb443(0x223)]();}[_0x47633b(0x736)](_0x1e5e46,_0x5655f8={}){const _0x583fd9=_0x47633b,_0x58e521=typeof _0x1e5e46===_0x583fd9(0x218)?_0x1e5e46:_0x5655f8,_0x354ee9=typeof _0x1e5e46===_0x583fd9(0x218)?_0x1e5e46[_0x583fd9(0x331)]:_0x1e5e46,_0x507efb=new _0x369b25(this['_env'],_0x354ee9,_0x58e521);return _0x507efb[_0x583fd9(0x593)]({'op':_0x583fd9(0x27e)}),_0x507efb;}[_0x47633b(0x7de)](){}[_0x47633b(0x556)](_0x558d43){const _0x563826=_0x47633b;return this[_0x563826(0x471)](_0x558d43);}async[_0x47633b(0x194)](_0x5636e2){return this['_tx'](_0x5636e2);}[_0x47633b(0x317)](_0x42605e){return this['_tx'](_0x42605e);}[_0x47633b(0x471)](_0x232a3d){const _0x3f8e49=_0x47633b,_0x3f3826=this[_0x3f8e49(0x5ed)];if(_0x3f3826[_0x3f8e49(0x63b)])return _0x232a3d();_0x3f3826[_0x3f8e49(0x63b)]=[];let _0x4324de;try{_0x4324de=_0x232a3d();}catch(_0x1d6248){_0x3f3826[_0x3f8e49(0x63b)]=null;throw _0x1d6248;}const _0x567575=_0x3f3826['_rawTxnBuf'];_0x3f3826['_rawTxnBuf']=null;if(_0x567575[_0x3f8e49(0x306)])_0x3f3826[_0x3f8e49(0x11c)][_0x3f8e49(0x6ad)](_0x3f8e49(0x279),_0x3f3826[_0x3f8e49(0x331)],_0x3f8e49(0x380),[_0x567575],!![]);return _0x4324de;}[_0x47633b(0x330)](){return{'done'(){}};}[_0x47633b(0x65c)](){}}return rawdb={'RawDb':_0x369b25},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x1ce843=_0x30dd4b;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x1e7bf9}=requireRawdb();class _0x5013bc{constructor(_0x307b53){const _0x1fea8c=_0x5df8;this['env']=_0x307b53,this['_n']=(_0x306157,_0x28a8df,_0x4637d7=!![])=>_0x307b53['okdb'][_0x1fea8c(0x6ad)](_0x1fea8c(0x442),_0x307b53[_0x1fea8c(0x331)],_0x306157,_0x28a8df,_0x4637d7);}get[_0x1ce843(0x3ed)](){const _0x21af85=_0x1ce843,_0x47eece=this,_0x39e7c7=this[_0x21af85(0x100)],_0x41417e=_0x58ff6f=>_0x58ff6f?new _0x1e7bf9(_0x39e7c7,_0x58ff6f[_0x21af85(0x331)],{'dupSort':_0x58ff6f[_0x21af85(0x230)]}):undefined,_0x54c1e3=_0x1c5955=>{const _0x3eb947=_0x21af85,_0xe96ebf=_0x47eece['_n'](_0x3eb947(0x744),[_0x1c5955],![]);if(!_0xe96ebf)return undefined;const _0x43826c=_0xe96ebf['compiled'],_0xb3e89b=new Map(Object[_0x3eb947(0x5c7)](_0x43826c['refs'])),_0x14ab44=new Map(Object[_0x3eb947(0x5c7)](_0xe96ebf['refItemsDbs'])[_0x3eb947(0x3e7)](([_0xd5715b,_0x3b584b])=>[_0xd5715b,_0x41417e(_0x3b584b)]));return{'name':_0x1c5955,'compiled':{'T':_0x43826c['T'],'reducers':_0x43826c[_0x3eb947(0x2eb)],'refs':_0xb3e89b,'granId':_0x43826c[_0x3eb947(0x291)],'type':_0x43826c[_0x3eb947(0x705)],'_nidFor':_0x3b9fc0=>_0x47eece['_n'](_0x3eb947(0x7e2),[_0x1c5955,_0x3b9fc0],![])},'viewDb':_0x41417e(_0xe96ebf[_0x3eb947(0x170)][_0x3eb947(0x4e1)]),'metaDb':_0x41417e(_0xe96ebf['dbs']['metaDb']),'itemsDb':_0x41417e(_0xe96ebf[_0x3eb947(0x170)][_0x3eb947(0x498)]),'bucketsDb':_0x41417e(_0xe96ebf[_0x3eb947(0x170)][_0x3eb947(0x12b)]),'sortedDb':_0x41417e(_0xe96ebf[_0x3eb947(0x170)][_0x3eb947(0x262)]),'groupsDb':_0x41417e(_0xe96ebf[_0x3eb947(0x170)]['groupsDb']),'prevDb':_0x41417e(_0xe96ebf[_0x3eb947(0x170)][_0x3eb947(0x2bf)]),'refItemsDbs':_0x14ab44,'refTrackingDbs':new Map(Object['entries'](_0xe96ebf[_0x3eb947(0x406)]||{})[_0x3eb947(0x3e7)](([_0x130bcd,_0x5d6181])=>[_0x130bcd,_0x41417e(_0x5d6181)])),'stopFn':_0xe96ebf[_0x3eb947(0x124)]?async()=>_0x47eece['_n'](_0x3eb947(0x49e),[_0x1c5955]):null,'bootstrapWorker':null};};return{'get':_0x251599=>_0x54c1e3(_0x251599),'has':_0x1b84de=>_0x47eece['_n']('stateNames',[],![])[_0x21af85(0x1d4)](_0x1b84de),'keys':()=>_0x47eece['_n'](_0x21af85(0x2fc),[],![])[Symbol[_0x21af85(0x527)]](),get 'size'(){const _0x23d8a2=_0x21af85;return _0x47eece['_n'](_0x23d8a2(0x2fc),[],![])[_0x23d8a2(0x306)];},[Symbol[_0x21af85(0x527)]]:()=>_0x47eece['_n'](_0x21af85(0x2fc),[],![])[_0x21af85(0x3e7)](_0x873f3a=>[_0x873f3a,_0x54c1e3(_0x873f3a)])[Symbol['iterator']]()};}get[_0x1ce843(0x724)](){const _0x29ebd1=_0x1ce843,_0x183eae=this;return{'has':_0x503d14=>_0x183eae['_n'](_0x29ebd1(0x328),[],![])['includes'](_0x503d14),get 'size'(){const _0x47d6d5=_0x29ebd1;return _0x183eae['_n'](_0x47d6d5(0x328),[],![])['length'];},'keys':()=>_0x183eae['_n']('customReducerNames',[],![])[Symbol['iterator']]()};}async['bootSyncedViewsInline'](){const _0x24eb7f=_0x1ce843;return this['_n'](_0x24eb7f(0x208),[]);}async[_0x1ce843(0x776)](_0x4d7b85={}){const _0xeec465=_0x1ce843;return this['_n'](_0xeec465(0x776),[_0x4d7b85]);}async[_0x1ce843(0x160)](_0x4334ad,_0x2de1fd){const _0x450260=_0x1ce843;return this['_n'](_0x450260(0x160),[_0x4334ad,_0x2de1fd]),{'name':_0x4334ad};}['get'](_0x5c2fdb,_0x33c29b={}){const _0x2bc5ce=_0x1ce843,_0x3a4f5f=this['_n'](_0x2bc5ce(0x759),[_0x5c2fdb,{'preview':_0x33c29b?.['preview']??{}}],![]);if(_0x3a4f5f==null)return null;const _0x3abb46=this['_n'](_0x2bc5ce(0x25b),[_0x5c2fdb],![]);if(!_0x3abb46)return _0x3a4f5f;const _0x559dfd=_0x1ef5a4=>(_0x578871={})=>this['_n'](_0x2bc5ce(0x1cd),[_0x5c2fdb,_0x1ef5a4,_0x578871],![]);if(_0x3abb46['view']){_0x3a4f5f[_0x2bc5ce(0x1cd)]=_0x559dfd({'kind':_0x2bc5ce(0x407)});for(const _0x37f24c of _0x3abb46['reducers']){if(!_0x37f24c['items'])continue;if(_0x37f24c[_0x2bc5ce(0x6cc)]){const _0x1ee55e=_0x3a4f5f[_0x37f24c[_0x2bc5ce(0x331)]];if(_0x1ee55e?.[_0x2bc5ce(0x583)]&&Array[_0x2bc5ce(0x470)](_0x1ee55e['preview'])){for(const _0x436946 of _0x1ee55e[_0x2bc5ce(0x583)])_0x436946[_0x2bc5ce(0x1cd)]=_0x559dfd({'kind':_0x2bc5ce(0x60f),'reducer':_0x37f24c[_0x2bc5ce(0x331)],'key':_0x436946[_0x2bc5ce(0xfb)]});}}else _0x3a4f5f[_0x37f24c[_0x2bc5ce(0x331)]]&&(_0x3a4f5f[_0x37f24c[_0x2bc5ce(0x331)]][_0x2bc5ce(0x1cd)]=_0x559dfd({'kind':_0x2bc5ce(0x400),'reducer':_0x37f24c['name']}));}}for(const _0x410da4 of _0x3abb46[_0x2bc5ce(0x2ab)]){if(!_0x410da4[_0x2bc5ce(0x407)])continue;const _0xc40e34=_0x3a4f5f[_0x410da4[_0x2bc5ce(0x331)]];if(!_0xc40e34||typeof _0xc40e34!=='object')continue;_0xc40e34[_0x2bc5ce(0x1cd)]=_0x559dfd({'kind':_0x2bc5ce(0x407),'ref':_0x410da4[_0x2bc5ce(0x331)]});for(const _0x255498 of _0x410da4['reducers']){if(!_0x255498['items'])continue;if(_0x255498[_0x2bc5ce(0x6cc)]){const _0xc2f4be=_0xc40e34[_0x255498['name']];if(_0xc2f4be?.[_0x2bc5ce(0x583)]&&Array[_0x2bc5ce(0x470)](_0xc2f4be[_0x2bc5ce(0x583)])){for(const _0x63137c of _0xc2f4be[_0x2bc5ce(0x583)])_0x63137c[_0x2bc5ce(0x1cd)]=_0x559dfd({'kind':_0x2bc5ce(0x60f),'ref':_0x410da4[_0x2bc5ce(0x331)],'reducer':_0x255498['name'],'key':_0x63137c[_0x2bc5ce(0xfb)]});}}else _0xc40e34[_0x255498[_0x2bc5ce(0x331)]]&&(_0xc40e34[_0x255498[_0x2bc5ce(0x331)]][_0x2bc5ce(0x1cd)]=_0x559dfd({'kind':_0x2bc5ce(0x400),'ref':_0x410da4[_0x2bc5ce(0x331)],'reducer':_0x255498['name']}));}}return _0x3a4f5f;}[_0x1ce843(0x4e9)](_0x42944d){const _0x54d22f=_0x1ce843;return this['_n'](_0x54d22f(0x4e9),[_0x42944d],![]);}[_0x1ce843(0x798)](_0x43247b,_0x17c758={}){return this['_n']('itemsGroups',[_0x43247b,_0x17c758],![]);}[_0x1ce843(0x348)](_0x36c51a,_0x51e3e2={}){const _0x284d79=_0x1ce843;return this['_n'](_0x284d79(0x348),[_0x36c51a,_0x51e3e2],![]);}[_0x1ce843(0x59b)](_0x3075b4,_0x1933eb={}){const _0x58c24c=_0x1ce843;return this['_n'](_0x58c24c(0x59b),[_0x3075b4,_0x1933eb],![]);}async['list'](){return this['_n']('list',[],![]);}async['getDefinition'](_0x3785c0){return this['_n']('getDefinition',[_0x3785c0],![])??null;}async['remove'](_0x52c8ee,_0x924a96={}){const _0x3542e9=_0x1ce843;return this['_n'](_0x3542e9(0x4a1),[_0x52c8ee,_0x924a96]);}async[_0x1ce843(0x7af)](_0x2e1cc2){const _0x54b301=_0x1ce843;return this['_n'](_0x54b301(0x7af),[_0x2e1cc2]);}async[_0x1ce843(0x6ac)](_0x24e0b4){const _0xe896c8=_0x1ce843;return this['_n'](_0xe896c8(0x6ac),[_0x24e0b4]);}async['rebuild'](_0x5a79fd){return this['_n']('rebuild',[_0x5a79fd]);}async[_0x1ce843(0x18c)](_0x3a1880){return this['_n']('resetView',[_0x3a1880]);}[_0x1ce843(0x3ab)](_0x589bbe,_0x15c7a6={}){const _0x45c635=_0x1ce843;return this['_n'](_0x45c635(0x3ab),[_0x589bbe,{'apply':_0x15c7a6&&_0x15c7a6[_0x45c635(0x323)]}]);}}return views={'OKDBViews':_0x5013bc},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x2513e8=_0x30dd4b;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0xe3d52f}=requireErrors(),_0x1fb5a5=requireBridge();class _0x2f5d34{constructor(_0x546361){const _0x37d09e=_0x5df8;this[_0x37d09e(0x100)]=_0x546361,this[_0x37d09e(0x11c)]=_0x546361[_0x37d09e(0x11c)],this[_0x37d09e(0x4d2)]=_0x546361[_0x37d09e(0x11c)][_0x37d09e(0x4d2)]['child']({'feature':_0x37d09e(0x39f)}),this[_0x37d09e(0x48d)]=new Set();}['_n'](_0x432199,_0x469210,_0x3c2834=!![]){const _0x510c1f=_0x5df8;return this[_0x510c1f(0x11c)][_0x510c1f(0x6ad)]('queue',this[_0x510c1f(0x100)][_0x510c1f(0x331)],_0x432199,_0x469210,_0x3c2834);}['_w'](_0x19a7e2,_0x1f1856){const _0x29a8d3=_0x5df8;return this[_0x29a8d3(0x11c)][_0x29a8d3(0x2f8)](this['_n'](_0x19a7e2,_0x1f1856));}async['_ensure'](){const _0x51eec9=_0x5df8;return this['_n'](_0x51eec9(0x27e),[]);}async[_0x2513e8(0x68a)](_0x9cef9c={}){const _0x592dc1=_0x2513e8;return this['_n'](_0x592dc1(0x68a),[_0x9cef9c],![]);}get[_0x2513e8(0x395)](){const _0x350310=_0x2513e8,{RawDb:_0x5007a2}=requireRawdb();return this[_0x350310(0x495)]||(this[_0x350310(0x495)]=new _0x5007a2(this['env'],_0x350310(0x625)));}async[_0x2513e8(0x675)](){const _0x4f2494=_0x2513e8;return this['_w'](_0x4f2494(0x32c),[]);}async[_0x2513e8(0x2e3)](_0x17a46a,_0x2bf4c1,_0x5af203={}){const _0x3ffc3f=_0x2513e8,{txn:_0x4affdd,..._0x28d8cd}=_0x5af203||{};if(_0x4affdd)return this['_enqueueInTxn'](_0x4affdd,_0x17a46a,_0x2bf4c1,_0x28d8cd);const _0x365fe=this[_0x3ffc3f(0x11c)]['_wb'];if(_0x365fe&&_0x365fe[_0x3ffc3f(0x39f)][_0x3ffc3f(0x306)])_0x365fe[_0x3ffc3f(0x6a6)]();const _0x237630=this['_n'](_0x3ffc3f(0x4e8),[_0x17a46a,_0x2bf4c1,_0x28d8cd],![]);return this[_0x3ffc3f(0x11c)][_0x3ffc3f(0x2f8)](_0x237630['id'])['then'](_0x595f8b=>{const _0x447d0e=_0x3ffc3f;if(_0x237630[_0x447d0e(0x5e4)])this[_0x447d0e(0x2a3)](_0x17a46a);else try{this[_0x447d0e(0x11c)][_0x447d0e(0x2fd)][_0x447d0e(0x7e0)]();}catch{}return _0x595f8b;});}[_0x2513e8(0x2a3)](_0x1ec669){queueMicrotask(()=>{const _0x41acf6=_0x5df8;try{this['_n'](_0x41acf6(0x4f6),[_0x1ec669]);}catch{}});}[_0x2513e8(0x1a4)](_0x5e5489,_0x14f640,_0x11abf8,_0x9f2bfb){const _0x1d0e4d=_0x2513e8,_0x4f471d=_0x5e5489[_0x1d0e4d(0x279)]??_0x5e5489;if(_0x4f471d['_closed'])throw new _0xe3d52f(_0x1d0e4d(0x17e),'TXN_CLOSED');if(_0x4f471d[_0x1d0e4d(0x11c)]&&_0x4f471d['okdb']!==this['env']&&_0x4f471d[_0x1d0e4d(0x11c)][_0x1d0e4d(0x331)]!==this[_0x1d0e4d(0x100)][_0x1d0e4d(0x331)])throw new _0xe3d52f(_0x1d0e4d(0x3ee),_0x1d0e4d(0x3b9),{'txnEnv':_0x4f471d[_0x1d0e4d(0x11c)][_0x1d0e4d(0x331)],'queueEnv':this[_0x1d0e4d(0x100)][_0x1d0e4d(0x331)]});const _0x53fd8f=this['_n'](_0x1d0e4d(0x50d),[_0x14f640,_0x11abf8,_0x9f2bfb],![]);if(_0x53fd8f[_0x1d0e4d(0x28b)])return _0x53fd8f['id'];if(_0x53fd8f['release'])_0x5e5489['update'](_0x1d0e4d(0x399),_0x53fd8f[_0x1d0e4d(0x7dc)][_0x1d0e4d(0xfb)],_0x53fd8f['release'][_0x1d0e4d(0x2e6)],{'ifVersion':_0x53fd8f[_0x1d0e4d(0x7dc)][_0x1d0e4d(0x4b3)]});if(_0x11abf8!==undefined)_0x5e5489[_0x1d0e4d(0x77a)](_0x1d0e4d(0x5c3),_0x53fd8f['id'],_0x11abf8);_0x5e5489['put'](_0x1d0e4d(0x399),_0x53fd8f['id'],_0x53fd8f[_0x1d0e4d(0x5cf)]);if(typeof _0x4f471d[_0x1d0e4d(0x66b)]==='function')_0x4f471d[_0x1d0e4d(0x66b)](()=>{const _0x64013f=_0x1d0e4d;if(this['_n'](_0x64013f(0x149),[_0x53fd8f['id'],_0x14f640,_0x53fd8f[_0x64013f(0x428)],_0x53fd8f[_0x64013f(0x1bf)]]))this[_0x64013f(0x2a3)](_0x14f640);});return _0x53fd8f['id'];}async[_0x2513e8(0x6dd)](_0x326b6c,_0x271027={}){const _0x2c3c60=_0x2513e8;if(typeof _0x326b6c!==_0x2c3c60(0x677)||!_0x326b6c)throw new _0xe3d52f(_0x2c3c60(0x2d7),_0x2c3c60(0x3a9));return this['_w']('claim',[_0x326b6c,_0x271027]);}async[_0x2513e8(0x222)](_0x577c7d,_0x592529,_0x440e26=null){return this['_w']('markJobHeartbeat',[_0x577c7d,_0x592529,_0x440e26]);}async[_0x2513e8(0x1b4)](_0x4211ad,_0x2f596f,_0x2a27a6=null){return this['markJobHeartbeat'](_0x4211ad,_0x2f596f,_0x2a27a6);}async[_0x2513e8(0x7ca)](_0x4ecfb0,_0x516f92,_0x5c65fc){const _0x5a69a1=_0x2513e8;return this['_w'](_0x5a69a1(0x7ca),[_0x4ecfb0,_0x516f92,_0x5c65fc]);}async[_0x2513e8(0x614)](_0x419f9f,_0x3b5754,_0x3b7f0c){const _0x3377e7=_0x2513e8;return this['_w'](_0x3377e7(0x614),[_0x419f9f,_0x3b5754,_0x3b7f0c]);}async[_0x2513e8(0x3d7)](_0x4af70e,_0x4397cd,_0x3423f0){const _0x16196a=_0x2513e8;return this[_0x16196a(0x614)](_0x4af70e,_0x4397cd,_0x3423f0);}async[_0x2513e8(0x242)](_0x2214c9,_0x30ec76,_0x502b6f,_0x502708){const _0x2bbc80=_0x2513e8,_0x5d75b4=_0x502b6f instanceof Error?{'message':_0x502b6f[_0x2bbc80(0x3f9)],'stack':_0x502b6f['stack']}:_0x502b6f;return this['_w']('markJobFail',[_0x2214c9,_0x30ec76,_0x5d75b4,_0x502708]);}async[_0x2513e8(0x618)](_0x3200d6,_0x12e2ba,_0xef944a,_0x5a2f88){const _0x31f3fe=_0x2513e8;return this[_0x31f3fe(0x242)](_0x3200d6,_0x12e2ba,_0xef944a,_0x5a2f88);}async[_0x2513e8(0x68b)](_0x5f216c,_0x50cd84,_0xa31050={}){const _0x292dd3=_0x2513e8;return this['_w'](_0x292dd3(0x68b),[_0x5f216c,_0x50cd84,_0xa31050]);}async[_0x2513e8(0x6c7)](_0x33dc45){const _0x2689be=_0x2513e8;return this['_n'](_0x2689be(0x6c7),[_0x33dc45],![]);}async[_0x2513e8(0x6be)](_0x4b8151,_0x5829f9={},_0x128d70={}){const _0xc8231c=_0x2513e8,_0x2fa865=_0x128d70&&_0x128d70[_0xc8231c(0x343)];if(!_0x2fa865)return this['_w'](_0xc8231c(0x6be),[_0x4b8151,_0x5829f9]);const {next:_0x5d3eb2,version:_0x3461de}=this['_n'](_0xc8231c(0x350),[_0x4b8151,_0x5829f9],![]);_0x2fa865[_0xc8231c(0x5fa)](_0xc8231c(0x399),_0x4b8151,_0x5d3eb2,{'ifVersion':_0x3461de});let _0x511ca2;if(_0xc8231c(0x7aa)in _0x5829f9){if(_0x5829f9[_0xc8231c(0x7aa)]===undefined){if(this['env'][_0xc8231c(0x31c)](_0xc8231c(0x5c3),_0x4b8151))_0x2fa865['remove'](_0xc8231c(0x5c3),_0x4b8151);}else _0x2fa865[_0xc8231c(0x77a)](_0xc8231c(0x5c3),_0x4b8151,_0x5829f9[_0xc8231c(0x7aa)]);_0x511ca2=_0x5829f9[_0xc8231c(0x7aa)];}else _0x511ca2=this[_0xc8231c(0x100)]['get'](_0xc8231c(0x5c3),_0x4b8151);return{..._0x5d3eb2,'payload':_0x511ca2};}async[_0x2513e8(0x344)](_0x2df2ac,_0x56830e={}){const _0x50787a=_0x2513e8,_0x4b78f1=_0x56830e&&_0x56830e[_0x50787a(0x343)];if(!_0x4b78f1)return this['_w'](_0x50787a(0x344),[_0x2df2ac]);if(!_0x2df2ac)throw new _0xe3d52f(_0x50787a(0x20d),_0x50787a(0x3a9));if(!this['env']['getEntry']('~queue_jobs',_0x2df2ac))return![];_0x4b78f1['remove'](_0x50787a(0x399),_0x2df2ac);if(this[_0x50787a(0x100)][_0x50787a(0x31c)](_0x50787a(0x5c3),_0x2df2ac))_0x4b78f1[_0x50787a(0x4a1)]('~queue_payloads',_0x2df2ac);if(typeof _0x4b78f1[_0x50787a(0x66b)]==='function')_0x4b78f1['onDo'](()=>this['_n']('removeJobLogsAfterCommit',[_0x2df2ac]));return!![];}async[_0x2513e8(0x505)](_0x5b8368){const _0x5c2992=_0x2513e8;return this['_w'](_0x5c2992(0x505),[_0x5b8368]);}async[_0x2513e8(0x23e)](_0x4ff236){const _0x100ebb=_0x2513e8;return this['_w'](_0x100ebb(0x23e),[_0x4ff236]);}async['_clearChunked'](_0x5f007f,_0x2921aa,_0x588e85){const _0xe04eab=_0x2513e8,_0xe42c3d=this['_n'](_0xe04eab(0x650),[_0x2921aa??null,_0x588e85??0x0,_0x5f007f]),_0x314e71=0x1f4;for(let _0x2fdf6f=0x0;_0x2fdf6f<_0xe42c3d[_0xe04eab(0x306)];_0x2fdf6f+=_0x314e71){this['_n'](_0xe04eab(0x71c),[_0xe42c3d[_0xe04eab(0x101)](_0x2fdf6f,_0x2fdf6f+_0x314e71),_0x2fdf6f,_0xe42c3d[_0xe04eab(0x306)],_0x2921aa??null]);if(_0x2fdf6f+_0x314e71<_0xe42c3d[_0xe04eab(0x306)])await new Promise(_0x59f1f4=>setImmediate(_0x59f1f4));}return this['_n']('emitClearDone',[_0xe42c3d[_0xe04eab(0x306)],_0x2921aa??null]),await new Promise(_0x53e007=>setImmediate(_0x53e007)),_0xe42c3d[_0xe04eab(0x306)];}async[_0x2513e8(0x5d7)](_0x49a28f,_0x452a1a){const _0x913e81=_0x2513e8;return this[_0x913e81(0x371)]('done',_0x49a28f,_0x452a1a);}async[_0x2513e8(0x546)](_0x292771,_0x25857a){const _0x495429=_0x2513e8;return this[_0x495429(0x371)]('failed',_0x292771,_0x25857a);}async[_0x2513e8(0x61c)](_0x529ca2,_0x4d72b1){const _0x4aea3f=_0x2513e8;return this['_w'](_0x4aea3f(0x61c),[_0x529ca2??null,_0x4d72b1??0x0]);}async['clearStuck'](_0x212485,_0x2b4ba5){return this['_w']('clearStuck',[_0x212485??null,_0x2b4ba5??0x0]);}async['appendJobLog'](_0xc01cee,_0x419f99,_0x468f9f){const _0x450710=_0x2513e8;return this['_w'](_0x450710(0x389),[_0xc01cee,_0x419f99,_0x468f9f]);}async[_0x2513e8(0x517)](_0x5ddd0e,_0x4c08f1={}){const _0x3bdf5f=_0x2513e8;return this['_n'](_0x3bdf5f(0x517),[_0x5ddd0e,_0x4c08f1],![]);}async[_0x2513e8(0x42e)](_0x521689,_0x5015b4={}){const _0x1cbd0b=_0x2513e8,{txn:_0x652b01,..._0x1df9d8}=_0x5015b4||{};if(!_0x652b01)return this['_w'](_0x1cbd0b(0x42e),[_0x521689,_0x1df9d8]);const _0x4ed491=(_0x381735,_0x117240,_0x9b1dd8,_0x2ce22c)=>{const _0x26acd4=_0x1cbd0b,_0x53d537=Math[_0x26acd4(0x35e)](Number(_0x381735));return Number[_0x26acd4(0x1b6)](_0x53d537)?Math['min'](_0x2ce22c,Math[_0x26acd4(0x1fa)](_0x9b1dd8,_0x53d537)):_0x117240;},_0x11d7de=typeof _0x521689===_0x1cbd0b(0x677)?_0x521689['trim']():'';if(!_0x11d7de)throw new Error(_0x1cbd0b(0x5ab));const _0x352ad9=_0x4ed491(_0x1df9d8['capacity'],0x0,0x0,0x3b9aca00);_0x652b01['put']('~queue_buckets',_0x11d7de,{'id':_0x11d7de,'tokens':_0x4ed491(_0x1df9d8[_0x1cbd0b(0x1f1)],_0x352ad9,0x0,_0x352ad9),'capacity':_0x352ad9,'refill_amount':_0x4ed491(_0x1df9d8['refill_amount'],0x0,0x0,0x3b9aca00),'refill_every':_0x4ed491(_0x1df9d8[_0x1cbd0b(0x1f5)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x1cbd0b(0x466)]()});}async['updateBucket'](_0x496709,_0xb6af6f){const _0x447ebc=_0x2513e8;return this['_w'](_0x447ebc(0x5a5),[_0x496709,_0xb6af6f]);}async[_0x2513e8(0x7ac)](_0x37842d){const _0x5a5128=_0x2513e8;return this['_w'](_0x5a5128(0x7ac),[_0x37842d]);}[_0x2513e8(0x267)](_0x55e739){const _0x5527f9=_0x2513e8,_0x18e340=this['_n'](_0x5527f9(0x267),[_0x55e739],![]);return _0x18e340===null&&typeof _0x55e739==='string'&&_0x55e739['trim']()?undefined:_0x18e340;}async[_0x2513e8(0x4ab)](_0x11fb38,_0xcdea){const _0x2a7c82=_0x2513e8;return this['_w'](_0x2a7c82(0x4ab),[_0x11fb38,_0xcdea]);}async[_0x2513e8(0x72a)](_0x2b2d44,_0x2100b6={}){const _0x551d36=_0x2513e8;return this['_w'](_0x551d36(0x72a),[_0x2b2d44,_0x2100b6]);}async[_0x2513e8(0x394)](_0x1f34e4){return this['_n']('getJobType',[_0x1f34e4],![]);}async['listJobTypes'](){return this['_n']('listJobTypes',[],![]);}async[_0x2513e8(0x233)](_0x255c35){const _0x396553=_0x2513e8;return this['_w'](_0x396553(0x233),[_0x255c35]);}[_0x2513e8(0x4c8)](_0x6e337e){const _0x3a2b70=_0x2513e8;return this['_n'](_0x3a2b70(0x4c8),[_0x6e337e]);}[_0x2513e8(0x261)](_0x3f956f){const _0x33c53e=_0x2513e8;return this['_n'](_0x33c53e(0x261),[_0x3f956f]);}[_0x2513e8(0x460)](_0x1f1c9e){return this['_n']('drainJobType',[_0x1f1c9e]);}async[_0x2513e8(0x2dd)](_0x5adc95,_0x3e2239,_0x173813=![]){const _0x13bb7d=_0x2513e8;return this['_w'](_0x13bb7d(0x2dd),[_0x5adc95,_0x3e2239,_0x173813]);}async[_0x2513e8(0x57c)](_0x105a27){const _0x4792be=_0x2513e8;return this['_w'](_0x4792be(0x57c),[_0x105a27]);}async[_0x2513e8(0x756)](_0x5df088,_0x58508b=0x5){const _0x122749=_0x2513e8;return this['_n'](_0x122749(0x756),[_0x5df088,_0x58508b],![]);}async[_0x2513e8(0x13c)](_0x4d2f48){const _0x2a55d5=_0x2513e8;return this['_n'](_0x2a55d5(0x220),[_0x4d2f48]);}async['stopAll'](_0x401662=0x7530){const _0x38fdc5=_0x2513e8;await Promise[_0x38fdc5(0x335)]([...this[_0x38fdc5(0x48d)]][_0x38fdc5(0x3e7)](_0x3a0760=>_0x3a0760[_0x38fdc5(0x7af)](_0x401662)));const _0x2f5d15=this['_n'](_0x38fdc5(0x2d9),[0x0]);return this[_0x38fdc5(0x48d)][_0x38fdc5(0x30f)](),_0x2f5d15;}async[_0x2513e8(0x5bd)](){const _0x221194=_0x2513e8,_0x458264=this['_n'](_0x221194(0x5bd),[]);return this[_0x221194(0x48d)][_0x221194(0x30f)](),_0x458264;}[_0x2513e8(0x4a6)](_0x2fdf71,_0x4ad944,_0x3b6d27){const _0x1194bf=_0x2513e8;let _0x444f42,_0x11d94b;if(Array[_0x1194bf(0x470)](_0x2fdf71)){if(typeof _0x4ad944===_0x1194bf(0x1ea))throw new _0xe3d52f('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.',_0x1194bf(0x3a9));_0x11d94b=_0x4ad944??{};if(_0x11d94b[_0x1194bf(0x2ef)]!=null&&typeof _0x11d94b[_0x1194bf(0x2ef)]!==_0x1194bf(0x1ea))throw new _0xe3d52f('process\x20options.admission\x20must\x20be\x20a\x20function',_0x1194bf(0x3a9));if(_0x2fdf71[_0x1194bf(0x306)]===0x0)throw new _0xe3d52f(_0x1194bf(0x286),_0x1194bf(0x3a9));_0x444f42=_0x2fdf71[_0x1194bf(0x3e7)](_0x3ee2d8=>{const _0x3d55c7=_0x1194bf;if(!_0x3ee2d8||typeof _0x3ee2d8[_0x3d55c7(0x705)]!==_0x3d55c7(0x677)||!_0x3ee2d8['type'])throw new _0xe3d52f('each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`',_0x3d55c7(0x3a9));if(typeof _0x3ee2d8['handler']!==_0x3d55c7(0x1ea))throw new _0xe3d52f(_0x3d55c7(0x1ee)+_0x3ee2d8[_0x3d55c7(0x705)]+_0x3d55c7(0x25c),_0x3d55c7(0x3a9));return{..._0x3ee2d8};});}else{_0x11d94b=_0x3b6d27??{};if(typeof _0x4ad944!==_0x1194bf(0x1ea))throw new _0xe3d52f(_0x1194bf(0x1ee)+_0x2fdf71+'\x22\x20requires\x20a\x20`handler`\x20function',_0x1194bf(0x3a9));_0x444f42=[{'type':_0x2fdf71,'handler':_0x4ad944,..._0x3b6d27??{}}];}const _0x54dee2=this[_0x1194bf(0x11c)];for(const _0x28b5db of _0x444f42){const _0x4493ee=_0x28b5db['handler'];_0x28b5db[_0x1194bf(0x586)]=function(..._0x320f22){const _0x50d39d=_0x1194bf;return _0x54dee2[_0x50d39d(0x6e2)]()[_0x50d39d(0x1c4)](()=>_0x4493ee['apply'](this,_0x320f22));};}const _0x3f71d3=this['_n'](_0x1194bf(0x4a6),[_0x444f42,_0x11d94b]),_0x47447a=this,_0x51c0a7={'id':_0x3f71d3['id'],'type':_0x3f71d3[_0x1194bf(0x705)],get 'running'(){const _0x32832a=_0x1194bf;return _0x47447a['_n'](_0x32832a(0x104),[_0x3f71d3['id']],![])['running'];},'isRunning'(){const _0x56977c=_0x1194bf;return _0x47447a['_n']('workerState',[_0x3f71d3['id']],![])[_0x56977c(0x37a)];},async 'stop'(_0x5404c5=0x7530){const _0x556f01=_0x1194bf;_0x47447a['_n']('stopWorkerBegin',[_0x3f71d3['id']]);const _0xfa8eac=Date['now']()+_0x5404c5;while(_0x47447a['_n'](_0x556f01(0x104),[_0x3f71d3['id']],![])[_0x556f01(0x74c)]>0x0&&Date[_0x556f01(0x466)]()<_0xfa8eac)await new Promise(_0x3c6449=>setTimeout(_0x3c6449,0x2));_0x47447a['_n'](_0x556f01(0x458),[_0x3f71d3['id']]),_0x1fb5a5[_0x556f01(0x790)](),_0x47447a[_0x556f01(0x48d)][_0x556f01(0x5cb)](_0x51c0a7);},async 'kill'(){const _0x18fdd6=_0x1194bf;_0x47447a['_n'](_0x18fdd6(0x401),[_0x3f71d3['id']]),_0x47447a[_0x18fdd6(0x48d)][_0x18fdd6(0x5cb)](_0x51c0a7);}};return this[_0x1194bf(0x48d)][_0x1194bf(0x241)](_0x51c0a7),_0x51c0a7;}[_0x2513e8(0x72c)](_0x4937ca){const _0x59d44b=_0x2513e8;throw new _0xe3d52f(_0x59d44b(0x227)+_0x4937ca+_0x59d44b(0x4cf)+_0x4937ca+_0x59d44b(0x21b),'QUEUE_WORKER_REMOVED');}[_0x2513e8(0x6ab)](_0xf0c018){const _0x4b26a4=_0x2513e8;return this[_0x4b26a4(0x72c)](_0xf0c018);}}return queue={'OKDBQueue':_0x2f5d34},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x265898=_0x30dd4b;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x7ce661}=requireIterable();class _0x8dcf88{constructor(_0x5482d8){const _0x5f35ae=_0x5df8;this[_0x5f35ae(0x100)]=_0x5482d8,this[_0x5f35ae(0x11c)]=_0x5482d8[_0x5f35ae(0x11c)];const _0x202c46=(_0x4a78f3,_0x3f8df2)=>this['_n'](_0x4a78f3,_0x3f8df2,![]);this[_0x5f35ae(0x450)]={'getDiffs':(_0x2b5d20,_0x9775ff,_0xc81b5e)=>_0x202c46(_0x5f35ae(0x6cb),[_0x2b5d20,_0x9775ff,_0xc81b5e||{}]),'hasDiff':(_0x5e6890,_0x41ab82,_0x187355)=>_0x202c46(_0x5f35ae(0x158),[_0x5e6890,_0x41ab82,_0x187355]),'getHead':(_0x2d23d2,_0x205ba2)=>_0x202c46('storeGetHead',[_0x2d23d2,_0x205ba2])??null,'getHeadCount':_0x5cb0de=>_0x202c46(_0x5f35ae(0x35d),[_0x5cb0de]),'getTotalHeadCount':()=>_0x202c46(_0x5f35ae(0x577),[]),'getDiffsInRange':(_0x961882,_0x5b10d1,_0x434be2)=>_0x202c46(_0x5f35ae(0x1be),[_0x961882??null,_0x5b10d1,_0x434be2]),'getConfig':()=>_0x202c46(_0x5f35ae(0x486),[])??null,'getCursor':()=>this['_n']('getLegacyCursor',[],![])??null,get 'db'(){const _0x6abcb3=_0x5f35ae;try{return _0x202c46(_0x6abcb3(0x577),[]),{};}catch{return null;}}};}get[_0x265898(0x7e7)](){const _0x72d60=_0x265898,_0x3107ed=(this[_0x72d60(0x100)][_0x72d60(0x266)]?.[_0x72d60(0x68a)]?.()||[])[_0x72d60(0x3c0)](_0x206e67=>String(_0x206e67[_0x72d60(0x67f)]||'')['startsWith'](_0x72d60(0x5b6)))['length'];return{'size':_0x3107ed};}['_n'](_0xe00164,_0xde4f5,_0x1211ae=!![]){const _0xe976aa=_0x265898;return this[_0xe976aa(0x11c)]['_call']('tm',this[_0xe976aa(0x100)][_0xe976aa(0x331)],_0xe00164,_0xde4f5,_0x1211ae);}async[_0x265898(0x628)](_0x3ff6){const _0x5f126f=_0x265898;return this['_n'](_0x5f126f(0x628),[_0x3ff6??null]);}async[_0x265898(0x141)](_0x59abac){return this['_n']('disable',[_0x59abac??null]);}async['enableAll'](){const _0x154059=_0x265898;return this['_n'](_0x154059(0x154),[]);}async[_0x265898(0x41b)](){const _0x51aa72=_0x265898;return this['_n'](_0x51aa72(0x41b),[]);}async['drop'](_0x23fe8f){return this['_n']('drop',[_0x23fe8f??null]);}async[_0x265898(0x3d6)](){const _0x77b5e5=_0x265898;return this['_n'](_0x77b5e5(0x3d6),[]);}[_0x265898(0x110)](_0x4ab565){const _0x55b4b8=_0x265898;return this['_n'](_0x55b4b8(0x110),[_0x4ab565??null],![]);}[_0x265898(0x68a)](){const _0x4178ae=_0x265898;return this['_n'](_0x4178ae(0x68a),[],![]);}[_0x265898(0x2b6)](_0x20420b){return this['_n']('status',[_0x20420b??null],![]);}[_0x265898(0x731)](_0x5f19a7){const _0x56d964=_0x265898;if(!_0x5f19a7)return this['_n'](_0x56d964(0x3fd),[],![]);return this['_n']('getCursor',[_0x5f19a7],![]);}[_0x265898(0x3fd)](){return this['_n']('getLegacyCursor',[],![]);}[_0x265898(0x366)](_0x2b068b,_0x35bad3,_0x50229a){const _0x23a235=_0x265898;return this['_n'](_0x23a235(0x366),[_0x2b068b,_0x35bad3,_0x50229a],![]);}[_0x265898(0x6f5)](_0x32c54a,_0x289adf,_0x31e053){const _0x545ba3=_0x265898;return this['_n'](_0x545ba3(0x6f5),[_0x32c54a,_0x289adf,_0x31e053||{}],![]);}['getChanges'](_0x1d22f8,_0x2546df,_0x256aac){const _0x41df07=_0x265898;return this['_n'](_0x41df07(0x591),[_0x1d22f8??null,_0x2546df,_0x256aac],![])[Symbol[_0x41df07(0x527)]]();}async[_0x265898(0x554)](_0x9c3025){const _0x5669b8=_0x265898;return this['_n'](_0x5669b8(0x554),[_0x9c3025??null]);}}return timemachine={'OKDBTimeMachine':_0x8dcf88},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x21b715=_0x30dd4b;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x3607d4=require$$0,{OKDBError:_0x25cbaf,optionsArg:_0x383fe4,invalidArgument:_0x459b4e}=requireErrors(),{RawDb:_0x1caac5}=requireRawdb();async function _0x2918a0(_0x567789){const _0x3f2c8e=_0x5df8;if(Buffer[_0x3f2c8e(0x157)](_0x567789))return _0x567789;if(_0x567789 instanceof Uint8Array)return Buffer[_0x3f2c8e(0x320)](_0x567789);if(typeof _0x567789==='string')return Buffer[_0x3f2c8e(0x320)](_0x567789);const _0x264f3f=[];for await(const _0x29ee63 of _0x567789)_0x264f3f[_0x3f2c8e(0x150)](Buffer[_0x3f2c8e(0x157)](_0x29ee63)?_0x29ee63:Buffer[_0x3f2c8e(0x320)](_0x29ee63));return Buffer['concat'](_0x264f3f);}class _0x55bc72{constructor(_0x2c517f){const _0x788c17=_0x5df8;this[_0x788c17(0x100)]=_0x2c517f,this[_0x788c17(0x11c)]=_0x2c517f[_0x788c17(0x11c)];}['_n'](_0x3269a5,_0xbf25d7,_0x558452=!![]){const _0xea9d2e=_0x5df8;return this[_0xea9d2e(0x11c)]['_call'](_0xea9d2e(0x59e),this[_0xea9d2e(0x100)]['name'],_0x3269a5,_0xbf25d7,_0x558452);}[_0x21b715(0x6ac)](){return!![];}[_0x21b715(0x7af)](){}async[_0x21b715(0x32f)](){const _0x3a9f94=_0x21b715;this['_n'](_0x3a9f94(0x27e),[]);}async['_writeBlob'](_0x284f2b,_0x150f23){const _0x25ed40=_0x21b715;return this[_0x25ed40(0x11c)]['_settleWrite'](this['_n'](_0x25ed40(0xf0),[_0x284f2b,await _0x2918a0(_0x150f23)]));}get[_0x21b715(0xe8)](){const _0xa9e858=_0x21b715;return this['__blobStatusDb']||(this['__blobStatusDb']=new _0x1caac5(this[_0xa9e858(0x11c)]['env']('default'),_0xa9e858(0x28d)));}async['_blobStatusTxn'](_0x14a957){const _0x35022c=_0x21b715;return this[_0x35022c(0xe8)][_0x35022c(0x471)](_0x14a957);}async[_0x21b715(0x4d4)](_0x47b5a1){const _0x399eac=_0x21b715,{id:_0x32d9fa,stream:_0x499eb3,mime:mime='application/octet-stream',path:_0xb19a74='',txn:txn=null}=_0x383fe4(_0x47b5a1);if(!_0x32d9fa)throw _0x459b4e('files.upload:\x20id',_0x399eac(0xdc),_0x32d9fa);if(!_0x499eb3)throw _0x459b4e(_0x399eac(0x73c),_0x399eac(0x6a5),_0x499eb3);const _0x2efec9=await _0x2918a0(_0x499eb3);if(txn){const _0x560bd4=this['_n'](_0x399eac(0x4e6),[_0x32d9fa,_0x2efec9,{'mime':mime,'path':_0xb19a74}]);return txn[_0x399eac(0x77a)](_0x399eac(0x304),_0x32d9fa,_0x560bd4[_0x399eac(0x58d)]),txn['onDo'](()=>this['_n'](_0x399eac(0x6bd),[_0x560bd4[_0x399eac(0x656)]])),txn[_0x399eac(0x573)](()=>this['_n']('txnUndone',[_0x560bd4['hook']])),_0x560bd4['record'];}return this[_0x399eac(0x11c)][_0x399eac(0x2f8)](this['_n']('upload',[_0x32d9fa,_0x2efec9,{'mime':mime,'path':_0xb19a74}]));}[_0x21b715(0x759)](_0x5f117e){const _0x45df96=_0x21b715;return this['_n'](_0x45df96(0x759),[_0x5f117e],![])??null;}[_0x21b715(0x482)](_0x17c9cc){const _0x1ee792=_0x21b715,_0x5a9cb0=this[_0x1ee792(0x566)](_0x17c9cc);if(!_0x3607d4['existsSync'](_0x5a9cb0))throw Object[_0x1ee792(0x18d)](new Error(_0x1ee792(0x64a)+_0x17c9cc),{'status':0x194});return _0x3607d4[_0x1ee792(0x189)](_0x5a9cb0);}async[_0x21b715(0x539)](_0x3a3756){const _0x284a67=_0x21b715;return this[_0x284a67(0x11c)]['_settleRead'](this['_n'](_0x284a67(0x539),[_0x3a3756],![]));}async[_0x21b715(0x27f)](_0x2df1e1){const _0x1d2d99=_0x21b715,_0x5dec0c=this[_0x1d2d99(0x759)](_0x2df1e1);if(!_0x5dec0c)throw Object[_0x1d2d99(0x18d)](new Error(_0x1d2d99(0x257)+_0x2df1e1),{'status':0x194});const _0x16ffee=this[_0x1d2d99(0x566)](_0x5dec0c['hash']);if(!_0x3607d4[_0x1d2d99(0x181)](_0x16ffee))throw Object[_0x1d2d99(0x18d)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x2df1e1),{'status':0x194});return{'stream':_0x3607d4[_0x1d2d99(0x189)](_0x16ffee),'record':_0x5dec0c};}async[_0x21b715(0x4a1)](_0x136a04,_0x36b8ed){const _0x5a9e13=_0x21b715,{txn:txn=null}=_0x383fe4(_0x36b8ed);if(txn){const _0x284c73=this['_n'](_0x5a9e13(0x5b0),[_0x136a04]);txn[_0x5a9e13(0x4a1)](_0x5a9e13(0x304),_0x136a04),txn[_0x5a9e13(0x66b)](()=>this['_n'](_0x5a9e13(0x6bd),[_0x284c73[_0x5a9e13(0x656)]])),txn[_0x5a9e13(0x573)](()=>this['_n']('txnUndone',[_0x284c73[_0x5a9e13(0x656)]]));return;}return this[_0x5a9e13(0x11c)]['_settleWrite'](this['_n'](_0x5a9e13(0x4a1),[_0x136a04]));}async[_0x21b715(0x252)](_0xeda9a5,_0x4a6e7b={}){const _0x53d8f0=_0x21b715;return this['_n'](_0x53d8f0(0x252),[_0xeda9a5,_0x4a6e7b],![]);}[_0x21b715(0x565)](_0x135ea2){const _0x32f22b=_0x21b715;return this['_n'](_0x32f22b(0x565),[_0x135ea2],![]);}[_0x21b715(0x229)](){const _0x52bbaa=_0x21b715;return this['_n'](_0x52bbaa(0x229),[],![]);}[_0x21b715(0x63f)](_0x7d5774){const {minAgeMs:_0x1044c0}=_0x383fe4(_0x7d5774);return this['_n']('gcOrphanedBlobs',[_0x1044c0??null]);}[_0x21b715(0x24f)](_0x57cb44,_0x233b54){const _0x2d1c40=_0x21b715;if(typeof _0x233b54!==_0x2d1c40(0x1ea))throw new _0x25cbaf(_0x2d1c40(0x1a9),_0x2d1c40(0x3a9));const _0x310270=this['_n'](_0x2d1c40(0x24f),[_0x57cb44,_0x233b54]);return()=>this['_n']('unregisterExtractor',[_0x310270]);}async[_0x21b715(0xdb)](_0x15275e){const _0x32027a=_0x21b715;return _0x15275e=_0x383fe4(_0x15275e),this['_n'](_0x32027a(0xdb),[_0x15275e]);}async[_0x21b715(0x2aa)](_0x549fbf){const _0x4e1d87=_0x21b715,{peerIds:_0x4fd400}=_0x383fe4(_0x549fbf);return this['_n'](_0x4e1d87(0x2aa),[_0x4fd400??null]);}['_blobPath'](_0x2ce8cf){const _0xff3e6e=_0x21b715;if(typeof _0x2ce8cf!==_0xff3e6e(0x677))return require$$3['join'](this[_0xff3e6e(0x15b)],_0x2ce8cf[_0xff3e6e(0x101)](0x0,0x2),_0x2ce8cf[_0xff3e6e(0x101)](0x2));return this['_n'](_0xff3e6e(0x280),[_0x2ce8cf],![]);}get[_0x21b715(0x15b)](){const _0x275883=_0x21b715;return this['_n'](_0x275883(0x30d),[],![]);}}return files={'OKDBFiles':_0x55bc72},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x409068=_0x30dd4b;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x53e071}=requireErrors(),_0x5c8c51=requireBridge(),_0x55d10b=new Set([_0x409068(0x43f),_0x409068(0x758),_0x409068(0x3aa),_0x409068(0x2ae)]),_0x414566=new Set([_0x409068(0x4e5),'info',_0x409068(0x667)]),_0x3a8e93=[_0x409068(0x25e),_0x409068(0x32a),_0x409068(0x572),'assertStartAllowed',_0x409068(0x238),'stop',_0x409068(0x7c7)],_0x114b03={'embedder':new Set([_0x409068(0x667),_0x409068(0x15e)])},_0x368ba5=new Set([_0x409068(0x53b),_0x409068(0x266),'queue-worker']);class _0xb570b{constructor(_0x349469,_0x16a640,_0x5479d1,_0x491166){const _0x1d2b79=_0x409068;this[_0x1d2b79(0x109)]=_0x349469,this[_0x1d2b79(0xfb)]=_0x16a640,this[_0x1d2b79(0x705)]=_0x5479d1,this[_0x1d2b79(0x331)]=_0x491166,this[_0x1d2b79(0x6fe)]=_0x5479d1;}[_0x409068(0x3b2)](){const _0xf027ee=_0x409068;return this[_0xf027ee(0x109)]['_n']('info',[this['type'],this[_0xf027ee(0x331)]],![]);}get[_0x409068(0x5a2)](){const _0x31e581=_0x409068;return this['_info']()[_0x31e581(0x5a2)];}get[_0x409068(0x450)](){const _0x56664f=_0x409068,_0x3626e6=this[_0x56664f(0x3b2)]()[_0x56664f(0x4df)];return _0x3626e6?this[_0x56664f(0x109)][_0x56664f(0x11c)][_0x56664f(0x2e5)][_0x56664f(0x759)](_0x3626e6):undefined;}get['docEntry'](){const _0x213e76=_0x409068;return this[_0x213e76(0x3b2)]()[_0x213e76(0x605)];}get[_0x409068(0x78d)](){const _0xea21cc=_0x409068;return this[_0xea21cc(0x3b2)]()[_0xea21cc(0x78d)];}get['isRunning'](){const _0x4ad04f=_0x409068;return this['_info']()[_0x4ad04f(0x408)];}get[_0x409068(0x2b6)](){const _0x1b9063=_0x409068;return this[_0x1b9063(0x3b2)]()[_0x1b9063(0x2b6)];}get[_0x409068(0x5d9)](){const _0x6fa844=_0x409068;return this[_0x6fa844(0x3b2)]()['reason'];}get[_0x409068(0x5d0)](){const _0x22f7a2=_0x409068,_0x1b53d0=this[_0x22f7a2(0x3b2)]()[_0x22f7a2(0x5d0)];return _0x1b53d0?Object[_0x22f7a2(0x18d)](new Error(_0x1b53d0['message']),{'code':_0x1b53d0[_0x22f7a2(0x1a8)]}):null;}get[_0x409068(0x7dd)](){const _0x4336cf=_0x409068;return this['_info']()[_0x4336cf(0x7dd)];}get[_0x409068(0x3d0)](){const _0x349bee=_0x409068;return this[_0x349bee(0x109)]['drivers'][_0x349bee(0x759)](this['type'])??null;}get[_0x409068(0x22c)](){const _0x176b06=_0x409068;if(!this['_info']()[_0x176b06(0x575)])return null;const _0x5a2f39=this;return new Proxy({},{'get'(_0x253fe4,_0x39f581){const _0x5ecb2c=_0x176b06;if(typeof _0x39f581===_0x5ecb2c(0x5b5)||_0x39f581===_0x5ecb2c(0x1c4))return undefined;if(_0x114b03[_0x5a2f39[_0x5ecb2c(0x705)]]&&_0x114b03[_0x5a2f39['type']][_0x5ecb2c(0x37b)](_0x39f581))return _0x5a2f39['_facade']['_n'](_0x5ecb2c(0xd8),[_0x5a2f39[_0x5ecb2c(0x705)],_0x5a2f39['name'],_0x39f581,[]],![])[_0x5ecb2c(0x2e6)];if(_0x5a2f39[_0x5ecb2c(0x705)]==='indexer'&&_0x39f581==='flush')return async(_0x36b13c={})=>{const _0x18ba53=_0x5ecb2c,_0x33010f=(_0x1c4d26,..._0x158be6)=>_0x5a2f39[_0x18ba53(0x109)]['_n'](_0x18ba53(0xd8),[_0x5a2f39[_0x18ba53(0x705)],_0x5a2f39[_0x18ba53(0x331)],_0x1c4d26,_0x158be6],!![])[_0x18ba53(0x2e6)],_0x44fa58=_0x33010f(_0x18ba53(0x6f2),_0x36b13c??{}),_0x2da903=Date[_0x18ba53(0x466)]();for(;;){const _0xa98542=await _0x5a2f39[_0x18ba53(0x109)][_0x18ba53(0x11c)]['_macro'](()=>_0x33010f(_0x18ba53(0x4a5)));if(_0xa98542[_0x18ba53(0x5b9)]>=_0xa98542['head'])return;Date[_0x18ba53(0x466)]()-_0x2da903>=_0x44fa58&&_0x33010f(_0x18ba53(0x673),_0x36b13c??{},_0xa98542),await new Promise(_0x23b0d5=>setTimeout(_0x23b0d5,0x3));}};return(..._0x4ded47)=>{const _0x5265e1=_0x5ecb2c,_0x12c330=()=>_0x5a2f39[_0x5265e1(0x109)]['_n'](_0x5265e1(0xd8),[_0x5a2f39[_0x5265e1(0x705)],_0x5a2f39['name'],_0x39f581,_0x4ded47],!![]),_0x4a1e64=_0x28ea95=>{const _0x53747b=_0x5265e1;if(_0x28ea95&&_0x28ea95[_0x53747b(0x76c)])throw new TypeError(_0x53747b(0x53a)+_0x39f581+'\x27');return _0x28ea95[_0x53747b(0x2e6)];};if(_0x55d10b[_0x5265e1(0x37b)](_0x5a2f39[_0x5265e1(0x705)])&&!_0x414566[_0x5265e1(0x37b)](_0x39f581)){const _0x496674=_0x5a2f39['_facade']['okdb'];return _0x496674[_0x5265e1(0x1dc)](()=>_0x496674[_0x5265e1(0x11a)](_0x12c330))[_0x5265e1(0x1c4)](_0x4a1e64);}if(_0x368ba5[_0x5265e1(0x37b)](_0x5a2f39[_0x5265e1(0x705)]))try{return Promise[_0x5265e1(0x313)](_0x4a1e64(_0x12c330()));}catch(_0x115f57){return Promise[_0x5265e1(0x165)](_0x115f57);}return _0x4a1e64(_0x12c330());};}});}async['load'](_0x3b03f1={}){const _0x1dd6e4=_0x409068;return await this[_0x1dd6e4(0x109)][_0x1dd6e4(0x620)](_0x1dd6e4(0x443),[this[_0x1dd6e4(0x705)],this[_0x1dd6e4(0x331)],_0x3b03f1]),this;}async[_0x409068(0x6ac)](){const _0x5c5c00=_0x409068;await this[_0x5c5c00(0x109)]['_nm'](_0x5c5c00(0x7e1),[this[_0x5c5c00(0x705)],this[_0x5c5c00(0x331)]]);}async[_0x409068(0x7af)](_0x15d2aa={}){const _0x227d18=_0x409068;await this[_0x227d18(0x109)][_0x227d18(0x620)]('engineStop',[this['type'],this[_0x227d18(0x331)],_0x15d2aa]);}async[_0x409068(0x7c3)](_0x4f237f={}){const _0x223c3f=_0x409068;return await this['_facade'][_0x223c3f(0x620)](_0x223c3f(0x7c3),[this[_0x223c3f(0x705)],this[_0x223c3f(0x331)],_0x4f237f]),this;}async[_0x409068(0x7c7)](){const _0x5da3a5=_0x409068;await this['_facade'][_0x5da3a5(0x620)](_0x5da3a5(0x587),[this[_0x5da3a5(0x705)],this[_0x5da3a5(0x331)]]);}}class _0x4d0b05{constructor(_0x1f0c8f,_0x40d996=null,_0x1534bc=null){const _0x33a308=_0x409068;this[_0x33a308(0x11c)]=_0x1f0c8f,this[_0x33a308(0x4b0)]=_0x40d996,this[_0x33a308(0x544)]=_0x40d996===null,this['_root']=_0x1534bc||this,this[_0x33a308(0x1f2)]=this[_0x33a308(0x592)]===this?_0x1f3040(this):this[_0x33a308(0x592)][_0x33a308(0x1f2)],this[_0x33a308(0x5f1)]=new Map();}['_n'](_0x288368,_0x591b47,_0x1b770b=!![]){const _0x1890d1=_0x409068;return this[_0x1890d1(0x11c)][_0x1890d1(0x6ad)]('engines',this[_0x1890d1(0x4b0)],_0x288368,_0x591b47,_0x1b770b);}[_0x409068(0x620)](_0x742261,_0x32c566){const _0x26e141=_0x409068;return this[_0x26e141(0x11c)][_0x26e141(0x5cd)](_0x26e141(0x3f4),this[_0x26e141(0x4b0)],_0x742261,_0x32c566,!![]);}get[_0x409068(0x100)](){const _0x1856e8=_0x409068;return this[_0x1856e8(0x4b0)]?this[_0x1856e8(0x11c)][_0x1856e8(0x100)](this[_0x1856e8(0x4b0)]):null;}[_0x409068(0x3e1)](_0x403c5d){const _0x2a6078=_0x409068;if(!_0x403c5d)return null;let _0x274733=this[_0x2a6078(0x5f1)][_0x2a6078(0x759)](_0x403c5d['key']);return!_0x274733&&(_0x274733=new _0xb570b(this,_0x403c5d[_0x2a6078(0xfb)],_0x403c5d[_0x2a6078(0x705)],_0x403c5d[_0x2a6078(0x331)]),this[_0x2a6078(0x5f1)]['set'](_0x403c5d['key'],_0x274733)),_0x274733;}[_0x409068(0x497)](_0x3901e6,_0x1d058a){const _0x289cda=_0x409068;if(!_0x3901e6||typeof _0x3901e6!==_0x289cda(0x677))throw new _0x53e071(_0x289cda(0x118),'ENGINE_INVALID_TYPE',{'type':_0x3901e6});if(!_0x1d058a||typeof _0x1d058a!=='object')throw new _0x53e071(_0x289cda(0x679)+_0x3901e6+_0x289cda(0x26f),'ENGINE_INVALID_DRIVER',{'type':_0x3901e6});if(typeof _0x1d058a[_0x289cda(0x6ac)]!=='function')throw new _0x53e071(_0x289cda(0x679)+_0x3901e6+_0x289cda(0xff),_0x289cda(0x4ec),{'type':_0x3901e6});const _0x4e9609=this[_0x289cda(0x592)];if(_0x4e9609[_0x289cda(0x1f2)][_0x289cda(0x37b)](_0x3901e6))throw new _0x53e071(_0x289cda(0x421)+_0x3901e6+'\x22',_0x289cda(0x720),{'type':_0x3901e6});const _0x41c33d=_0x5c8c51[_0x289cda(0x3c9)](_0x1d058a),_0x3be0e8=_0x3a8e93['filter'](_0x1d2faa=>typeof _0x1d058a[_0x1d2faa]==='function'),_0x8fa562=_0x1d058a[_0x289cda(0x3d3)]&&typeof _0x1d058a[_0x289cda(0x3d3)]===_0x289cda(0x218)?_0x1d058a[_0x289cda(0x3d3)]:{};this[_0x289cda(0x11c)][_0x289cda(0x6ad)](_0x289cda(0x3f4),null,_0x289cda(0x497),[_0x3901e6,{'$id':_0x41c33d,'has':_0x3be0e8,'docs':_0x8fa562}]),_0x4e9609[_0x289cda(0x1f2)][_0x289cda(0x7b2)](_0x3901e6,_0x1d058a);}get[_0x409068(0x355)](){const _0x45a3fd=_0x409068;return this[_0x45a3fd(0x11c)][_0x45a3fd(0x6ad)](_0x45a3fd(0x3f4),null,_0x45a3fd(0x2d3),[],![]);}get['orchestrator'](){const _0x48ac4e=this;return{get '_started'(){const _0x321320=_0x5df8;return _0x48ac4e[_0x321320(0x355)];}};}[_0x409068(0x70f)](_0x497591){const _0x25f053=_0x409068;if(!_0x497591||typeof _0x497591!==_0x25f053(0x218))throw new _0x53e071(_0x25f053(0x5c5),_0x25f053(0x30b));if(!_0x497591['id']||typeof _0x497591['id']!==_0x25f053(0x677))throw new _0x53e071('Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string',_0x25f053(0x30b));if(![_0x25f053(0x103),'pipeline']['includes'](_0x497591[_0x25f053(0x6a7)]))throw new _0x53e071(_0x25f053(0x289)+_0x497591['id'],_0x25f053(0x30b));if(typeof _0x497591[_0x25f053(0x4ef)]!==_0x25f053(0x1ea))throw new _0x53e071(_0x25f053(0xd7)+_0x497591['id'],_0x25f053(0x30b));const _0x14106c=this[_0x25f053(0x11c)],_0x22b16e=typeof _0x497591['inputSchema']===_0x25f053(0x1ea);return this['_n'](_0x25f053(0x70f),[{'id':_0x497591['id'],'kind':_0x497591[_0x25f053(0x6a7)],'family':_0x497591[_0x25f053(0x128)]??null,'engineType':_0x497591['engineType']??null,'pipelineFamily':_0x497591[_0x25f053(0x246)]??null,'recommended':_0x497591[_0x25f053(0x787)]===!![],'summary':_0x497591[_0x25f053(0x796)]??null,'description':_0x497591[_0x25f053(0x2bb)]??null,'inputSchema':_0x22b16e?null:_0x497591['inputSchema']??null,'inputSchemaFn':_0x22b16e?()=>_0x497591[_0x25f053(0x520)](_0x14106c):null,'defaults':_0x497591[_0x25f053(0x247)]??null,'notes':Array[_0x25f053(0x470)](_0x497591[_0x25f053(0x1cb)])?_0x497591[_0x25f053(0x1cb)]:[],'links':Array['isArray'](_0x497591['links'])?_0x497591['links']:[],'build':(_0xf98dd1,_0x401876)=>_0x497591[_0x25f053(0x4ef)](_0xf98dd1??{},{'okdb':_0x14106c,'envName':_0x401876??null})}],![]);}['listTemplates'](_0x4c73d7){const _0x520c3e=_0x409068;return this['_n'](_0x520c3e(0x78c),[_0x4c73d7??null],![]);}[_0x409068(0x3d2)](_0xa579d9){const _0x48a6c1=_0x409068;return this['_n'](_0x48a6c1(0x3d2),[_0xa579d9],![]);}[_0x409068(0x1c9)](_0x12dfba,_0x4b1a61,_0x1ed5fc){const _0x5dcd0d=_0x409068;return this['_n'](_0x5dcd0d(0x1c9),[_0x12dfba,_0x4b1a61,_0x1ed5fc??this[_0x5dcd0d(0x4b0)]],![]);}[_0x409068(0x199)](){const _0x26de6a=_0x409068;return this['_n'](_0x26de6a(0x199),[],![]);}async[_0x409068(0x6ac)](){const _0xbfb3d6=_0x409068;return this[_0xbfb3d6(0x620)](_0xbfb3d6(0x6ac),[]);}async[_0x409068(0x7af)](){const _0x1bb24d=_0x409068;return this[_0x1bb24d(0x620)](_0x1bb24d(0x7af),[]);}async[_0x409068(0x378)](_0x541ebe,_0x201d12,_0x5b6645={},_0x30d9fa={},_0x3a356f={}){const _0x352628=_0x409068;return this[_0x352628(0x3e1)](await this[_0x352628(0x620)](_0x352628(0x378),[_0x541ebe,_0x201d12,_0x5b6645,_0x30d9fa,_0x3a356f]));}async[_0x409068(0x43e)](_0x5a3876,_0x420f31,_0x53aee8={},_0xa031a2={},_0x24f30d={}){const _0x296e61=_0x409068;return this[_0x296e61(0x3e1)](await this[_0x296e61(0x620)](_0x296e61(0x43e),[_0x5a3876,_0x420f31,_0x53aee8,_0xa031a2,_0x24f30d]));}[_0x409068(0xe1)](_0x50d096,_0x112d9e){const _0x27783b=_0x409068;return this[_0x27783b(0x3e1)](this['_n'](_0x27783b(0xe1),[_0x50d096,_0x112d9e],![]));}['getRunningEngine'](_0x55e934,_0x24051e){const _0x5cc350=_0x409068;return this[_0x5cc350(0x3e1)](this['_n'](_0x5cc350(0x62c),[_0x55e934,_0x24051e],![]));}['list'](_0x4d68a5){const _0x2d9892=_0x409068;return this['_n']('list',[_0x4d68a5??null],![])[_0x2d9892(0x3e7)](_0x42df40=>this[_0x2d9892(0x3e1)](_0x42df40));}async[_0x409068(0x15a)](_0x2b05a0,_0x136462){const _0x1483a8=_0x409068;return this['_wrap'](await this[_0x1483a8(0x620)](_0x1483a8(0x15a),[_0x2b05a0,_0x136462]));}async['uninstallEngine'](_0x518d63,_0x3fd607){const _0x225fe5=_0x409068;return this[_0x225fe5(0x5f1)][_0x225fe5(0x5cb)](_0x518d63+':'+_0x3fd607),this[_0x225fe5(0x620)](_0x225fe5(0x23f),[_0x518d63,_0x3fd607]);}async['startNewEnginesFromSync'](_0x4cfbf9){const _0x268cea=_0x409068;return this[_0x268cea(0x620)](_0x268cea(0x680),[_0x4cfbf9]);}async['bootSyncedEngines'](){const _0x1afac2=_0x409068;return this[_0x1afac2(0x620)]('bootSyncedEngines',[]);}}function _0x1f3040(_0x1a3506){const _0x440526=_0x409068,_0x219205=new Map();return{'has':_0x32e57e=>_0x219205[_0x440526(0x37b)](_0x32e57e)||_0x1a3506['okdb'][_0x440526(0x6ad)](_0x440526(0x3f4),null,'hasDriver',[_0x32e57e],![]),'get':_0x1beb89=>_0x219205[_0x440526(0x759)](_0x1beb89),'set':()=>{const _0x2335be=_0x440526;throw new _0x53e071(_0x2335be(0x50a),_0x2335be(0x3a9));},'_set':(_0x19158d,_0x52a166)=>_0x219205[_0x440526(0x5af)](_0x19158d,_0x52a166),'keys':()=>_0x219205[_0x440526(0x2e9)](),'entries':()=>_0x219205[_0x440526(0x5c7)](),'values':()=>_0x219205[_0x440526(0x7d4)](),get 'size'(){return _0x219205['size'];},[Symbol[_0x440526(0x527)]]:()=>_0x219205[Symbol[_0x440526(0x527)]]()};}class _0x3b9914{constructor(_0x43ad4c,_0x100e96=null){const _0x2e9c02=_0x409068;this[_0x2e9c02(0x11c)]=_0x43ad4c,this['envName']=_0x100e96;}['_n'](_0x4c8dd2,_0x4034ea,_0x4034ff=!![]){const _0xb06e1a=_0x409068;return this[_0xb06e1a(0x11c)][_0xb06e1a(0x6ad)](_0xb06e1a(0x74a),this['envName'],_0x4c8dd2,_0x4034ea,_0x4034ff);}['_nm'](_0x23c9ba,_0x11dc9b){const _0x14e418=_0x409068;return this[_0x14e418(0x11c)][_0x14e418(0x5cd)](_0x14e418(0x74a),this['envName'],_0x23c9ba,_0x11dc9b,!![]);}get[_0x409068(0x529)](){const _0x4a0af3=_0x409068;return this[_0x4a0af3(0x4b0)]===null;}async[_0x409068(0x27e)](_0x52df0f){const _0x196790=_0x409068;return this['_n'](_0x196790(0x27e),[_0x52df0f]);}async[_0x409068(0x759)](_0x1f955d,_0x373afe){const _0x84dca=_0x409068;return this['_n'](_0x84dca(0x759),[_0x1f955d,_0x373afe??null],![]);}async[_0x409068(0x48f)](_0x48fe5e,_0x14c704){const _0x5219f6=_0x409068;return this['_n'](_0x5219f6(0x48f),[_0x48fe5e,_0x14c704??null],![]);}async[_0x409068(0x68a)](_0x3f8928){const _0x226874=_0x409068;return this['_n'](_0x226874(0x68a),[_0x3f8928??null],![]);}async['listRecords'](_0x1c2deb={}){const _0x368ad7=_0x409068;return this['_n']('listRecords',[_0x1c2deb?.[_0x368ad7(0x4b0)]??null],![]);}[_0x409068(0x25e)](_0x38a0a8,_0x32f380){return this['_n']('validate',[_0x38a0a8,_0x32f380??null],![]);}async['create'](_0x45db53){const _0x24be24=_0x409068;return this[_0x24be24(0x620)](_0x24be24(0x160),[_0x45db53]);}async[_0x409068(0x5fa)](_0x1d4b97,_0x37a9e4){const _0x4d2242=_0x409068;return this[_0x4d2242(0x620)](_0x4d2242(0x5fa),[_0x1d4b97,_0x37a9e4]);}async[_0x409068(0x7af)](_0xd60fe6){const _0x17dce0=_0x409068;return this['_nm'](_0x17dce0(0x7af),[_0xd60fe6]);}async['_settled'](_0x34e6fc){const _0x237e6b=_0x409068;if(!_0x34e6fc||typeof _0x34e6fc!=='object'||!_0x34e6fc['name']||!_0x34e6fc[_0x237e6b(0x3f4)])return _0x34e6fc;for(let _0x53ad1f=0x0;_0x53ad1f<0x3;_0x53ad1f++)await new Promise(_0x5eb24e=>setImmediate(_0x5eb24e));try{const _0x451297=this[_0x237e6b(0x4b0)]!==null?await this[_0x237e6b(0x759)](_0x34e6fc[_0x237e6b(0x331)]):_0x34e6fc[_0x237e6b(0x100)]?await this[_0x237e6b(0x759)](_0x34e6fc['env'],_0x34e6fc[_0x237e6b(0x331)]):null;return _0x451297||_0x34e6fc;}catch{return _0x34e6fc;}}async['start'](_0x3c88a5){const _0x154f6a=_0x409068;return this[_0x154f6a(0x558)](await this[_0x154f6a(0x620)]('start',[_0x3c88a5]));}async[_0x409068(0x15a)](_0x1e6d1e){const _0x1b9baa=_0x409068;return this['_settled'](await this[_0x1b9baa(0x620)]('restart',[_0x1e6d1e]));}async[_0x409068(0x111)](_0x2b06c6){const _0x414c9e=_0x409068;return this[_0x414c9e(0x620)](_0x414c9e(0x111),[_0x2b06c6]);}async[_0x409068(0x316)](_0x2fac24,_0x48dc2f,_0x35c8f7){return this['_nm']('replaceMember',[_0x2fac24,_0x48dc2f,_0x35c8f7]);}async['remove'](_0xf66eae){const _0x1a37d9=_0x409068;return this[_0x1a37d9(0x620)](_0x1a37d9(0x4a1),[_0xf66eae]);}async['stopAll'](){const _0x1388dd=_0x409068;return this[_0x1388dd(0x620)](_0x1388dd(0x2d9),[]);}async[_0x409068(0xf2)](){const _0x1d4ed9=_0x409068;return this[_0x1d4ed9(0x620)](_0x1d4ed9(0xf2),[]);}[_0x409068(0x509)](_0xf5c591,_0x294cee){const _0x45887f=_0x409068;return this['_n'](_0x45887f(0x509),[_0xf5c591,_0x294cee],![]);}}return engines={'OKDBEngines':_0x4d0b05,'OKDBPipelines':_0x3b9914,'OKDBEngineHandle':_0xb570b},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x319063=_0x30dd4b;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x29a264}=requireErrors();class _0xc13e9{constructor(_0x5bfb1d,_0x4446c5=null){const _0x5d7d3c=_0x5df8;this[_0x5d7d3c(0x11c)]=_0x5bfb1d,this[_0x5d7d3c(0x4b0)]=_0x4446c5??_0x5d7d3c(0x322);}get[_0x319063(0x100)](){const _0x4abd2a=_0x319063;return this[_0x4abd2a(0x11c)]['_envs']['get'](this[_0x4abd2a(0x4b0)])??null;}['_n'](_0x172d3a,_0x4857a5=[],_0x4bcb62=!![]){const _0x2c70e0=_0x319063;try{return this[_0x2c70e0(0x11c)][_0x2c70e0(0x6ad)](_0x2c70e0(0x3f8),this[_0x2c70e0(0x4b0)],_0x172d3a,_0x4857a5,_0x4bcb62);}catch(_0x3a46e8){throw _0x18abb8(_0x3a46e8);}}async[_0x319063(0x620)](_0x4e9a1c,_0x231133=[]){const _0x1edd39=_0x319063;try{return await this[_0x1edd39(0x11c)][_0x1edd39(0x5cd)](_0x1edd39(0x3f8),this['envName'],_0x4e9a1c,_0x231133,!![]);}catch(_0x55f0d2){throw _0x18abb8(_0x55f0d2);}}async[_0x319063(0x68a)](){const _0x1cba55=_0x319063;return this['_n'](_0x1cba55(0x68a),[],![]);}async[_0x319063(0x759)](_0x3d3f87){const _0x50c3ba=_0x319063;return this['_n'](_0x50c3ba(0x759),[_0x3d3f87],![]);}async['create'](_0x478395){return this['_n']('create',[_0x478395]);}async['update'](_0x506c8f,_0x2636b3={}){const _0x12efbf=_0x319063;return this['_n'](_0x12efbf(0x5fa),[_0x506c8f,_0x2636b3]);}async[_0x319063(0x4a1)](_0x510410){const _0x33a15f=_0x319063;return this['_n'](_0x33a15f(0x4a1),[_0x510410]);}async[_0x319063(0x214)](_0x45077a){const _0x24ecda=_0x319063,{functionName:functionName=null}=_0x29a264(_0x45077a);return this['_n'](_0x24ecda(0x214),[{'functionName':functionName}],![]);}async['getRun'](_0x2ed1ef){return this['_n']('getRun',[_0x2ed1ef],![]);}async[_0x319063(0x65e)](_0x3bf9e7){const _0x564bdf=_0x319063;return _0x3bf9e7=_0x29a264(_0x3bf9e7,_0x564bdf(0x446)),this['_n']('recordRun',[_0x3bf9e7]);}async[_0x319063(0x446)](_0x1a8f85,_0x18d436=null,_0x230454={}){const _0xfb9ba6=_0x319063,_0x4b6392={..._0x230454};if(_0x4b6392[_0xfb9ba6(0x46f)])_0x4b6392[_0xfb9ba6(0x1e2)]=!!_0x4b6392[_0xfb9ba6(0x46f)][_0xfb9ba6(0x1e2)];return delete _0x4b6392[_0xfb9ba6(0x46f)],this[_0xfb9ba6(0x620)](_0xfb9ba6(0x446),[_0x1a8f85,_0x18d436,_0x4b6392]);}async[_0x319063(0x583)](_0x2fdf2e={},_0xd0b3c=null,_0x5b44a3={}){const _0x481f1f=_0x319063;return this['_nm'](_0x481f1f(0x583),[_0x2fdf2e,_0xd0b3c,_0x5b44a3]);}async[_0x319063(0x7af)](){}}function _0x18abb8(_0x4f4b68){const _0xec3a20=_0x319063;if(_0x4f4b68&&_0x4f4b68[_0xec3a20(0x77d)]&&_0x4f4b68[_0xec3a20(0x77d)]['runRecord'])_0x4f4b68[_0xec3a20(0x285)]=_0x4f4b68[_0xec3a20(0x77d)]['runRecord'];return _0x4f4b68;}return functions={'OKDBFunctions':_0xc13e9},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x3b0364=_0x30dd4b;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x624e39}=requireErrors();class _0x3ca445{constructor(_0x3d1f2e,_0x3f9c90){const _0x4f9cb7=_0x5df8;this[_0x4f9cb7(0x1d5)]=_0x3d1f2e,this[_0x4f9cb7(0x1d2)]=_0x3f9c90;}['_n'](_0x206ef1,_0x298f4a=[]){const _0x11b348=_0x5df8;return this[_0x11b348(0x1d5)]['_n'](_0x206ef1,[this['_id'],..._0x298f4a]);}[_0x3b0364(0x5b1)](){const _0x213300=_0x3b0364;return this['_n'](_0x213300(0x5b1));}get[_0x3b0364(0x321)](){const _0x17e807=_0x3b0364;return this['_n'](_0x17e807(0x321));}['holder'](){const _0x8209e9=_0x3b0364;return this['_n'](_0x8209e9(0x638));}[_0x3b0364(0x6d9)](_0x199284){const _0x5da122=_0x3b0364;return this['_n'](_0x5da122(0x6d9),[_0x199284]);}async[_0x3b0364(0x7dc)](){return this['_n']('release');}}class _0x4c49f6{constructor(_0x42257c,_0x3b0679,_0x37911e,_0x42fe70){const _0x39d6c7=_0x3b0364,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x624e39(_0x42fe70);this[_0x39d6c7(0x11c)]=_0x42257c,this[_0x39d6c7(0x1ce)]=_0x37911e,this[_0x39d6c7(0x1d2)]=_0x42257c[_0x39d6c7(0x6ad)](_0x39d6c7(0x664),_0x3b0679,'open',[_0x37911e,ttlMs,heartbeatMs],![]),this[_0x39d6c7(0x5ed)]=_0x3b0679;}['_n'](_0x2eb61b,_0x11609d=[]){const _0x170cf2=_0x3b0364;return this[_0x170cf2(0x11c)]['_call'](_0x170cf2(0x664),this['_env'],_0x2eb61b,_0x11609d,![]);}['_key'](_0x52ef05){const _0x1c41b2=_0x3b0364;return this['_n'](_0x1c41b2(0xfb),[this[_0x1c41b2(0x1d2)],_0x52ef05]);}async[_0x3b0364(0x384)](_0x340d12,_0x307fef={},_0x25c125={}){const _0x3c9dfb=_0x3b0364,_0x47074d=this['_n'](_0x3c9dfb(0x384),[this[_0x3c9dfb(0x1d2)],_0x340d12,_0x307fef,_0x25c125]);return{'acquired':_0x47074d[_0x3c9dfb(0x7eb)],'handle':_0x47074d[_0x3c9dfb(0x3fc)]==null?null:new _0x3ca445(this,_0x47074d[_0x3c9dfb(0x3fc)]),'current':_0x47074d[_0x3c9dfb(0x337)]};}[_0x3b0364(0x445)](_0x4c3a5f){const _0x4fdadc=_0x3b0364;return this['_n'](_0x4fdadc(0x445),[this['_id'],_0x4c3a5f]);}[_0x3b0364(0x68a)](){const _0x61faac=_0x3b0364;return this['_n'](_0x61faac(0x68a),[this[_0x61faac(0x1d2)]]);}['signalWant'](_0x34410f){const _0x1049f7=_0x3b0364;return this['_n'](_0x1049f7(0x284),[this[_0x1049f7(0x1d2)],_0x34410f]);}[_0x3b0364(0x62a)](_0x8ec1d8,_0x4853e6=0x3e8){const _0x4ef8d4=_0x3b0364;return this['_n'](_0x4ef8d4(0x62a),[this[_0x4ef8d4(0x1d2)],_0x8ec1d8,_0x4853e6]);}}return lock={'NativeLock':_0x4c49f6,'NativeLockHandle':_0x3ca445},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x2bda14=_0x30dd4b;if(hasRequiredProcessor)return processor[_0x2bda14(0x296)];hasRequiredProcessor=0x1;const _0x4be090=requireBridge(),{RawDb:_0x48efdf}=requireRawdb(),{NativeLock:_0x4bb55a}=requireLock();function _0x554006(_0x90b5d2){}class _0x3bbeca{constructor(_0x124f1a){const _0x45be39=_0x2bda14;this[_0x45be39(0x100)]=_0x124f1a,this[_0x45be39(0x11c)]=_0x124f1a;try{this['_n'](_0x45be39(0x3ea),[(_0x5b9798,_0x315964)=>{const _0x348705=_0x45be39,_0xbf74ba=this[_0x348705(0x11c)][_0x348705(0x4d2)],_0x697e6e=_0xbf74ba?.[_0x5b9798]??_0xbf74ba?.[_0x348705(0x2d0)];if(typeof _0x697e6e===_0x348705(0x1ea))_0x697e6e[_0x348705(0x39c)](_0xbf74ba,_0x315964);}],![]);}catch{}}['_n'](_0x2a6f9a,_0x541de9,_0x5155f7=!![]){const _0x267e9c=_0x2bda14;return this[_0x267e9c(0x100)][_0x267e9c(0x11c)][_0x267e9c(0x6ad)]('proc',this[_0x267e9c(0x100)][_0x267e9c(0x331)],_0x2a6f9a,_0x541de9,_0x5155f7);}[_0x2bda14(0x683)](_0x4f1e97,_0x3711b8={}){const _0x1f9bdd=_0x2bda14,_0x3a3edf={..._0x3711b8};if(typeof _0x3a3edf[_0x1f9bdd(0x586)]===_0x1f9bdd(0x1ea)&&_0x3a3edf[_0x1f9bdd(0x3a1)]!=null)throw new Error(_0x1f9bdd(0x24a)+_0x1f9bdd(0x5ca));if(typeof _0x3a3edf[_0x1f9bdd(0x586)]===_0x1f9bdd(0x677)&&_0x3a3edf['module']!=null)throw new Error(_0x1f9bdd(0x22a));if(_0x3a3edf[_0x1f9bdd(0x3a1)]!=null){if(!_0x3a3edf['module'][_0x1f9bdd(0x72f)])throw new Error(_0x1f9bdd(0xe7));const _0x366336=_0x3a3edf[_0x1f9bdd(0x3a1)]['export']??_0x3a3edf['module'][_0x1f9bdd(0xd6)]??_0x1f9bdd(0x4a6),_0x3048c8=require[_0x1f9bdd(0x313)](_0x3a3edf[_0x1f9bdd(0x3a1)]['path']),_0x40aa64=require(_0x3048c8),_0x2ef95b=_0x40aa64[_0x366336]??_0x40aa64[_0x1f9bdd(0x1e3)]??_0x40aa64;if(typeof _0x2ef95b!==_0x1f9bdd(0x1ea))throw new Error(_0x1f9bdd(0x761)+_0x3a3edf[_0x1f9bdd(0x3a1)][_0x1f9bdd(0x72f)]+_0x1f9bdd(0x5bb)+_0x366336+_0x1f9bdd(0x44a));this[_0x1f9bdd(0x100)]['okdb']['_staticCall'](_0x1f9bdd(0x1f4),'registerModule',[_0x3048c8,_0x366336,_0x2ef95b]),_0x3a3edf['module']={'path':_0x3048c8,'export':_0x366336};}if(_0x3a3edf['quantum']!=null){if(typeof _0x3a3edf[_0x1f9bdd(0x481)]['module']!==_0x1f9bdd(0x677))throw new Error(_0x1f9bdd(0x5bf));const _0xe2f8f=require[_0x1f9bdd(0x313)](_0x3a3edf[_0x1f9bdd(0x481)]['module']),_0x1dddf0=require(_0xe2f8f),_0x196cfd=_0x3a3edf['quantum']['exportName'],_0x3871d2=_0x196cfd?_0x1dddf0[_0x196cfd]:_0x1dddf0[_0x1f9bdd(0x1e3)]??_0x1dddf0;if(typeof _0x3871d2===_0x1f9bdd(0x1ea)){const _0x14c349=_0x196cfd?_0x3a3edf[_0x1f9bdd(0x481)][_0x1f9bdd(0x3a1)]+'#'+_0x196cfd:_0x3a3edf['quantum']['module'];this[_0x1f9bdd(0x100)][_0x1f9bdd(0x11c)][_0x1f9bdd(0x689)](_0x1f9bdd(0x1f4),'registerQuantum',[_0x14c349,_0x3871d2]);}_0x3a3edf[_0x1f9bdd(0x481)]={..._0x3a3edf[_0x1f9bdd(0x481)]};}_0x3a3edf[_0x1f9bdd(0x7aa)]!=null&&typeof _0x3a3edf['payload']===_0x1f9bdd(0x218)&&(_0x3a3edf['payload']={'$payload':_0x4be090['storePayload'](_0x3a3edf[_0x1f9bdd(0x7aa)],this[_0x1f9bdd(0x100)]['okdb'])});if(_0x3a3edf[_0x1f9bdd(0x111)]!=null&&typeof _0x3a3edf[_0x1f9bdd(0x111)]!==_0x1f9bdd(0x1ea))throw new Error('processor:\x20rebuild\x20must\x20be\x20a\x20function');const _0x296943=this['_n'](_0x1f9bdd(0x683),[_0x4f1e97??null,_0x3a3edf]);return this['_stopFor'](_0x296943['id'],_0x296943['cursorKey']);}['_stopFor'](_0x3bc983,_0x228ac8){const _0x361ca0=_0x2bda14,_0x4deaf8=this,_0x56bb08=async()=>{const _0x1a7f89=_0x5df8;_0x4deaf8['_n'](_0x1a7f89(0x70e),[_0x3bc983]);};return _0x56bb08['id']=_0x3bc983,_0x56bb08['cursorKey']=_0x228ac8,_0x56bb08[_0x361ca0(0x2cc)]=()=>_0x228ac8?_0x4deaf8['_n'](_0x361ca0(0x1f8),[_0x3bc983],![]):0x0,_0x56bb08['status']=()=>_0x4deaf8['get'](_0x3bc983),_0x56bb08[_0x361ca0(0x43d)]=_0x56bb08[_0x361ca0(0x2b6)],_0x56bb08[_0x361ca0(0x602)]=()=>_0x4deaf8[_0x361ca0(0x602)](_0x3bc983),_0x56bb08['resume']=()=>_0x4deaf8[_0x361ca0(0x5d3)](_0x3bc983),_0x56bb08[_0x361ca0(0x5e0)]=()=>_0x4deaf8['kick'](_0x3bc983),_0x56bb08[_0x361ca0(0x159)]=()=>_0x4deaf8['retry'](_0x3bc983),_0x56bb08[_0x361ca0(0x34f)]=_0x534d64=>_0x4deaf8['awaitIdle'](_0x3bc983,_0x534d64),_0x56bb08;}get['_stops'](){const _0x1af51a=_0x2bda14;try{return this['_n'](_0x1af51a(0x68a),[],![])[_0x1af51a(0x3e7)](_0x458620=>({'id':_0x458620['id']}));}catch{return[];}}async['pauseAllAndDrain'](_0x319055){const _0x36167e=_0x2bda14;return new Set(this['_n'](_0x36167e(0x60e),[]));}[_0x2bda14(0x411)](_0x1425b3){const _0x2b089f=_0x2bda14;return this['_n'](_0x2b089f(0x411),[[..._0x1425b3??[]]]);}get[_0x2bda14(0x39a)](){const _0x542b6a=_0x2bda14;return new Set(this['_n'](_0x542b6a(0x68a),[],![])[_0x542b6a(0x3c0)](_0x36e837=>_0x36e837[_0x542b6a(0x705)]==null)[_0x542b6a(0x3e7)](_0x2ca04d=>_0x2ca04d['id']));}[_0x2bda14(0x473)](){}get[_0x2bda14(0x1d5)](){const _0x18c1f9=_0x2bda14;if(!this['__lock']){const _0x2d6f50=new _0x4bb55a(this[_0x18c1f9(0x100)]['okdb'],this[_0x18c1f9(0x100)][_0x18c1f9(0x331)],'proc'),_0x5c6c13=this['env'];_0x2d6f50[_0x18c1f9(0x4bf)]=()=>new _0x48efdf(_0x5c6c13,'~lock'),this[_0x18c1f9(0x3be)]=_0x2d6f50;}return this[_0x18c1f9(0x3be)];}[_0x2bda14(0x54c)](_0x9185e2,_0x3ffa52){const _0x32779e=_0x2bda14;return this['_n']('fail',[typeof _0x9185e2===_0x32779e(0x677)?_0x9185e2:_0x9185e2['id'],_0x3ffa52?.[_0x32779e(0x3f9)]??String(_0x3ffa52??'')]);}get[_0x2bda14(0x19c)](){const _0x132bdf=_0x2bda14;return this[_0x132bdf(0x6d8)]||(this[_0x132bdf(0x6d8)]=new _0x48efdf(this[_0x132bdf(0x100)],_0x132bdf(0x785)));}get['_registrations'](){const _0x20617e=_0x2bda14,_0x5e25ac=this,_0x1b2259=_0x4fd72d=>{const _0x1534ee=_0x5df8,_0x415375=()=>_0x5e25ac['_n'](_0x1534ee(0x334),[_0x4fd72d],![]);if(!_0x415375())return undefined;const _0xf49e7=_0x40b0f8=>()=>_0x415375()?.[_0x40b0f8],_0x30dbf2={'id':_0x4fd72d},_0x26852f=(_0x1646fd,_0x266fb6,_0x1a5ec5)=>Object[_0x1534ee(0x522)](_0x30dbf2,_0x1646fd,{'get':_0x266fb6,'set':_0x1a5ec5,'enumerable':!![],'configurable':!![]});return _0x26852f(_0x1534ee(0x70c),_0xf49e7(_0x1534ee(0x70c))),_0x26852f('mode',_0xf49e7(_0x1534ee(0x21e))),_0x26852f(_0x1534ee(0x1ec),_0xf49e7(_0x1534ee(0x1ec))),_0x26852f(_0x1534ee(0xde),_0xf49e7(_0x1534ee(0xde)),_0xd93a28=>_0x5e25ac['_n'](_0x1534ee(0x3a3),[_0x4fd72d,_0xd93a28])),_0x26852f(_0x1534ee(0x67f),_0xf49e7(_0x1534ee(0x67f))),_0x26852f(_0x1534ee(0x339),_0xf49e7('claimGated'),_0x521e49=>_0x5e25ac['_n'](_0x1534ee(0x571),[_0x4fd72d,!!_0x521e49])),_0x26852f(_0x1534ee(0x432),_0xf49e7(_0x1534ee(0x775))),_0x26852f(_0x1534ee(0x2e2),_0xf49e7(_0x1534ee(0x2e2))),_0x26852f(_0x1534ee(0x6ce),_0xf49e7('drainDeadlineMs')),_0x26852f(_0x1534ee(0x7cc),_0xf49e7('modeApplied'),_0x37d7e3=>_0x5e25ac['_n'](_0x1534ee(0x4c4),[_0x4fd72d,_0x37d7e3])),_0x26852f('meta',()=>_0x5e25ac[_0x1534ee(0x759)](_0x4fd72d)?.['meta']),_0x26852f('_lockHandle',()=>_0x415375()?.[_0x1534ee(0x397)]?{'isHeld':()=>!!_0x415375()?.[_0x1534ee(0x397)]}:null),_0x26852f(_0x1534ee(0x15c),()=>_0x415375()?.[_0x1534ee(0x1d7)]?()=>{}:null),_0x26852f('_flushIntervalTimer',()=>_0x415375()?.['intervalTimer']?{}:null),_0x26852f(_0x1534ee(0x717),()=>_0x415375()?.[_0x1534ee(0x489)]?{}:null),_0x30dbf2;},_0x510708=()=>_0x5e25ac['_n'](_0x20617e(0x68a),[],![])['map'](_0x4086b9=>_0x4086b9['id']);return{'get':_0x30f855=>_0x1b2259(_0x30f855),'has':_0x7b28e5=>_0x510708()['includes'](_0x7b28e5),get 'size'(){const _0x212a7d=_0x20617e;return _0x510708()[_0x212a7d(0x306)];},'keys':()=>_0x510708()[Symbol['iterator']](),'values':()=>_0x510708()[_0x20617e(0x3e7)](_0x1b2259)[Symbol[_0x20617e(0x527)]](),'entries':()=>_0x510708()[_0x20617e(0x3e7)](_0x446230=>[_0x446230,_0x1b2259(_0x446230)])[Symbol[_0x20617e(0x527)]](),[Symbol['iterator']]:()=>_0x510708()[_0x20617e(0x3e7)](_0x594dbe=>[_0x594dbe,_0x1b2259(_0x594dbe)])[Symbol[_0x20617e(0x527)]](),'forEach':_0x4b03d4=>_0x510708()[_0x20617e(0x131)](_0x4c28af=>_0x4b03d4(_0x1b2259(_0x4c28af),_0x4c28af))};}async['stopAll'](){const _0x4a9e17=_0x2bda14;return this['_n'](_0x4a9e17(0x2d9),[]);}[_0x2bda14(0x68a)](){const _0x1acef5=_0x2bda14,_0x1355f3=this['_n']('list',[],![]);if(!this[_0x1acef5(0x100)][_0x1acef5(0x331)]['startsWith']('~'))try{const _0x21b8ec=this[_0x1acef5(0x100)]['okdb'][_0x1acef5(0x22f)];for(const _0x266494 of _0x21b8ec[_0x1acef5(0x5bc)](this['env']['name'])){for(const _0x1d0c91 of _0x21b8ec[_0x1acef5(0x3c7)](_0x266494,this[_0x1acef5(0x100)][_0x1acef5(0x331)])){const _0x2f4ef3=_0x1acef5(0x210)+_0x266494+':'+_0x1d0c91;_0x1355f3['push']({'id':_0x2f4ef3,'type':_0x266494,'mode':_0x1acef5(0x56e),'state':_0x1acef5(0x5dc),'paused':![],'lag':0x0,'cursorKey':_0x2f4ef3,'meta':{'name':_0x2f4ef3}});}}}catch{}return _0x1355f3;}[_0x2bda14(0x290)](){const _0x165cce=_0x2bda14;return this['_n'](_0x165cce(0x290),[],![]);}[_0x2bda14(0x7df)](){const _0x5361a7=_0x2bda14;return this['_n'](_0x5361a7(0x7df),[],![]);}[_0x2bda14(0x295)](){return this['_n']('durableCursorFloor',[],![]);}[_0x2bda14(0x759)](_0x128537){const _0x4b33e3=_0x2bda14;return this['_n'](_0x4b33e3(0x759),[_0x128537],![]);}[_0x2bda14(0x1c2)](_0x1689f9){const _0x4ed0c1=_0x2bda14;return this[_0x4ed0c1(0x759)](typeof _0x1689f9===_0x4ed0c1(0x677)?_0x1689f9:_0x1689f9['id']);}[_0x2bda14(0x731)](_0x25afcf){const _0x30bd47=_0x2bda14;return this['_n'](_0x30bd47(0x731),[_0x25afcf],![]);}[_0x2bda14(0x106)](_0x5f0a4f){const _0x51747e=_0x2bda14;return this['_n'](_0x51747e(0x106),[_0x5f0a4f]);}[_0x2bda14(0x7cd)](_0x39ba60){const _0x595f87=_0x2bda14;return this['_n'](_0x595f87(0x7cd),[_0x39ba60]);}['isSnapshotComplete'](_0x56b8e2){const _0x828191=_0x2bda14;return this['_n'](_0x828191(0x6e4),[_0x56b8e2],![]);}['setCursor'](_0x4348f5,_0x568716){const _0x55d52d=_0x2bda14;return this['_n'](_0x55d52d(0x3a7),[_0x4348f5,_0x568716]);}async[_0x2bda14(0x34f)](_0x1da6b6,_0x59904d){const _0xdd90da=_0x2bda14;return this['_n'](_0xdd90da(0x34f),[_0x1da6b6,_0x59904d??0x7530]);}[_0x2bda14(0x602)](_0x2a1c12){const _0x129ef2=_0x2bda14;return this['_n'](_0x129ef2(0x602),[_0x2a1c12]);}[_0x2bda14(0x5d3)](_0x283275){return this['_n']('resume',[_0x283275]);}async[_0x2bda14(0x33c)](_0x29cf59){const _0x27dcb2=_0x2bda14;return this['_n'](_0x27dcb2(0x33c),[_0x29cf59]);}['kick'](_0x815f3c){return this['_n']('kick',[_0x815f3c]);}['retry'](_0x27c76d){return this['_n']('retry',[_0x27c76d]);}[_0x2bda14(0x15a)](_0x41c296,_0x5d4dec={}){return this['_n']('restart',[_0x41c296,_0x5d4dec]);}async[_0x2bda14(0x125)](_0x16e78e,_0xa77803,_0x572fa7){const _0x3ff387=_0x2bda14,[_0x2fcb9b,_0x31419c]=this['_n'](_0x3ff387(0x125),[_0x16e78e,_0xa77803,_0x572fa7]);return{'version':_0x2fcb9b,'flipClock':_0x31419c};}async[_0x2bda14(0x393)](_0x37ab93,_0x4826ca,_0x2e18c9={}){const _0x84ca33=_0x2bda14;return this['_n'](_0x84ca33(0x393),[_0x37ab93,_0x4826ca,_0x2e18c9]);}}_0x3bbeca['registerHandler']=function _0xcc9871(_0x2d807b,_0x4c1f7c){const _0x170528=_0x2bda14;if(typeof _0x2d807b!==_0x170528(0x677)||!_0x2d807b)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x4c1f7c!=='function')throw new Error(_0x170528(0x77b));_0x338fd7('proc',_0x170528(0x1f9),[_0x2d807b,_0x4c1f7c]);},_0x3bbeca[_0x2bda14(0x4f0)]=function _0x2ddba7(_0x48ca13,_0x33a884){const _0x5cbb3e=_0x2bda14;if(typeof _0x48ca13!==_0x5cbb3e(0x677)||!_0x48ca13)throw new Error(_0x5cbb3e(0x73a));if(typeof _0x33a884!==_0x5cbb3e(0x1ea))throw new Error(_0x5cbb3e(0x698));let _0x17549b=null;_0x338fd7(_0x5cbb3e(0x1f4),_0x5cbb3e(0x4f0),[_0x48ca13,(_0xe7ceb1,_0x2eb6ff)=>{if(!_0x17549b)_0x17549b=_0x33a884();return _0x17549b(_0xe7ceb1,_0x2eb6ff);}]);},_0x3bbeca['_isClosedEnvError']=_0xfc7c1c=>/closed|not open|released/i[_0x2bda14(0x12f)](String(_0xfc7c1c)),_0x3bbeca[_0x2bda14(0x4e3)]=![];function _0x338fd7(_0x2cc052,_0x60d977,_0x532926){const {staticCall:_0x52945d}=requireLib();return _0x52945d(_0x2cc052,_0x60d977,_0x532926);}return processor[_0x2bda14(0x296)]=_0x3bbeca,processor['exports'][_0x2bda14(0x139)]=_0x3bbeca,processor[_0x2bda14(0x296)][_0x2bda14(0x3b1)]=_0x554006,processor[_0x2bda14(0x296)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x432593=_0x30dd4b;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x2c6cb2={'PUT':_0x432593(0x77a),'REMOVE':_0x432593(0x4a1),'INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x432593(0x7f1),'INDEX_RESET':_0x432593(0x217),'TYPE_REGISTER':_0x432593(0x5c1),'TYPE_DROP':_0x432593(0x20a),'FTS_REGISTER':_0x432593(0xf7),'FTS_DROP':_0x432593(0x1ab),'FTS_RESET':_0x432593(0x1fe),'SCHEMA_SET':_0x432593(0x7a6),'SCHEMA_DROP':_0x432593(0x409),'TTL_SET':_0x432593(0x318),'TTL_CLEAR':_0x432593(0x174)},_0xc47a0a={'SYSTEM_READY':_0x432593(0x26a),'FIELD_RESOLVER_REGISTERED':_0x432593(0x61e),'SYSTEM_STOPPED':_0x432593(0x2c9),'SYSTEM_CLOCK_CHANGE':_0x432593(0x793),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x432593(0x538),'SYSTEM_TYPE_DROP':_0x432593(0x43a),'SYSTEM_PROC':_0x432593(0x574),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':'item:create','ITEM_UPDATE':_0x432593(0x5fe),'ITEM_REMOVE':_0x432593(0x204),'ITEM_PENDING':_0x432593(0x60c),'INDEX_RESET':_0x432593(0x368),'INDEX_READY':_0x432593(0x115),'INDEX_PROGRESS':_0x432593(0x29a),'VIEW_PROGRESS':_0x432593(0x441),'INDEX_DROP':_0x432593(0x6db),'INDEX_REGISTERED':_0x432593(0x737),'FTS_REGISTERED':_0x432593(0x795),'FTS_DROP':_0x432593(0x35a),'FTS_RESET':_0x432593(0x629),'SCHEMA_SET':_0x432593(0x17a),'SCHEMA_DROP':_0x432593(0x5d6),'UNIQUE_VIOLATION':_0x432593(0x2ed),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x432593(0x2ad),'REF_VIOLATION_RESOLVED':_0x432593(0x462),'SYNC_APPLY':'sync:apply','TXN_START':_0x432593(0x3c8),'TXN_END':'txn:end','TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x432593(0x2f7),'TYPE_DROP':_0x432593(0x325),'ENV_OPENED':_0x432593(0x4c0),'ENV_REMOVED':_0x432593(0x54e),'SYSTEM_ENV_RELEASE':_0x432593(0x13a),'TTL_EXPIRED':_0x432593(0x3ec),'TTL_SET':_0x432593(0x173),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':_0x432593(0x56d),'LICENSE_ADDED':_0x432593(0x20c),'LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':'license:removed'},_0x52c351={'CREATING':_0x432593(0x3e2),'RESETTING':_0x432593(0x690),'READY':_0x432593(0x35f),'DROPPING':_0x432593(0x5b7),'WAITING':'waiting','ERROR':_0x432593(0x561)},_0x52e084={'CREATED':_0x432593(0x469),'STARTING':_0x432593(0x64b),'STARTED':_0x432593(0x632),'STOPPING':'stopping','STOPPED':'stopped'},_0x202114={'CREATING':_0x432593(0x3e2),'READY':_0x432593(0x35f),'HALTED':'halted','STOPPED':_0x432593(0x40f),'RESETTING':'resetting'},_0x4143e5=Object['freeze']({'POKE':_0x432593(0x6d2),'DRAIN':_0x432593(0x613),'TYPE_DROP':_0x432593(0x25f),'PROC':_0x432593(0x4c9),'ENV_RELEASE':_0x432593(0x1b9)});return okdbEnums={'BUS_EVENTS':_0x4143e5,'CHANGE_ACTIONS':_0x2c6cb2,'EVENTS':_0xc47a0a,'INDEX_STATE':_0x52c351,'OKDB_STATE':_0x52e084,'VIEW_STATE':_0x202114},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x59e95f=_0x30dd4b;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x580d9d={'SKIP':Symbol[_0x59e95f(0x7d2)](_0x59e95f(0x4c3))},{OKDBError:_0x4c9258}=requireOkdbError(),_0x4ac0ee={'value':null,'done':!![]};class _0x2dcb79{constructor(_0x3e558d){this['_makeIterator']=_0x3e558d;}get[_0x59e95f(0x52e)](){return _0x4ac0ee;}[Symbol['iterator']](){const _0x4509d9=_0x59e95f;return this[_0x4509d9(0x41f)]();}[_0x59e95f(0x3e7)](_0x33045b){const _0x3a7239=this;return new _0x2dcb79(()=>{const _0x41e2cf=_0x5df8,_0x269bd0=_0x3a7239[Symbol[_0x41e2cf(0x527)]]();return{'next'(){const _0x411035=_0x41e2cf;for(;;){const _0x2957e9=_0x269bd0[_0x411035(0x659)]();if(_0x2957e9[_0x411035(0x11f)])return{'done':!![],'value':undefined};const _0x2e2c78=_0x33045b(_0x2957e9['value']);if(_0x2e2c78===_0x580d9d[_0x411035(0x4ed)])continue;if(_0x2e2c78===_0x4ac0ee)return _0x269bd0['return']?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x2e2c78};}},'return'(){return _0x269bd0['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x41e2cf(0x527)]](){return this;}};});}['filter'](_0x5af818){const _0x537f43=_0x59e95f;return this[_0x537f43(0x3e7)](_0x2f87f8=>_0x5af818(_0x2f87f8)?_0x2f87f8:_0x580d9d[_0x537f43(0x4ed)]);}[_0x59e95f(0x131)](_0x133921){for(const _0x19e8bf of this)_0x133921(_0x19e8bf);}[_0x59e95f(0x101)](_0x55194e=0x0,_0x2f4592=Infinity){const _0x1dad01=this;return new _0x2dcb79(()=>{const _0x2ad0f7=_0x5df8,_0x29fa38=_0x1dad01[Symbol['iterator']]();let _0x4697fa=0x0;return{'next'(){const _0x5d8b40=_0x5df8;for(;;){const _0x5c6ba4=_0x29fa38[_0x5d8b40(0x659)]();if(_0x5c6ba4[_0x5d8b40(0x11f)])return{'done':!![],'value':undefined};const _0x48a874=_0x4697fa++;if(_0x48a874<_0x55194e)continue;if(_0x48a874>=_0x2f4592)return _0x29fa38[_0x5d8b40(0x235)]?.(),{'done':!![],'value':undefined};return _0x5c6ba4;}},'return'(){const _0x8de0bc=_0x5df8;return _0x29fa38[_0x8de0bc(0x235)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x2ad0f7(0x527)]](){return this;}};});}['at'](_0x4a11ea){let _0x22e084=0x0;for(const _0x4b27ea of this)if(_0x22e084++===_0x4a11ea)return _0x4b27ea;return undefined;}[_0x59e95f(0x77f)](_0x3961f9){const _0x4a2666=this;return new _0x2dcb79(()=>{const _0x5c50f1=_0x5df8,_0x5843a3=_0x4a2666[Symbol[_0x5c50f1(0x527)]]();let _0x512451=[];return{'next'(){const _0x511444=_0x5c50f1;for(;;){if(_0x512451[_0x511444(0x306)])return{'done':![],'value':_0x512451['shift']()};const _0x1d7e96=_0x5843a3[_0x511444(0x659)]();if(_0x1d7e96[_0x511444(0x11f)])return{'done':!![],'value':undefined};const _0x23968a=_0x3961f9(_0x1d7e96['value']);if(Array[_0x511444(0x470)](_0x23968a))_0x512451=_0x512451[_0x511444(0x4d6)](_0x23968a);else{if(_0x23968a!=null&&(_0x23968a instanceof _0x2dcb79||typeof _0x23968a[Symbol[_0x511444(0x527)]]===_0x511444(0x1ea)&&_0x511444(0x403)in _0x23968a))_0x512451=_0x512451[_0x511444(0x4d6)](Array[_0x511444(0x320)](_0x23968a));else{if(_0x23968a!==_0x580d9d['SKIP'])return{'done':![],'value':_0x23968a};}}}},'return'(){return _0x5843a3['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x5c50f1(0x527)]](){return this;}};});}['concat'](_0x22571b){const _0x2865d9=this;return new _0x2dcb79(()=>{const _0x69ff88=_0x5df8;let _0x3acb2c=_0x2865d9[Symbol[_0x69ff88(0x527)]](),_0x4e3f23=![];return{'next'(){const _0x16e9e1=_0x69ff88;for(;;){const _0x2c0021=_0x3acb2c[_0x16e9e1(0x659)]();if(!_0x2c0021['done'])return _0x2c0021;if(_0x4e3f23)return{'done':!![],'value':undefined};_0x4e3f23=!![],_0x3acb2c=_0x22571b[Symbol['iterator']]();}},'return'(){const _0x1a295e=_0x69ff88;return _0x3acb2c[_0x1a295e(0x235)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x69ff88(0x527)]](){return this;}};});}[_0x59e95f(0x585)](_0x1b631c){const _0x26b476=this;return new _0x2dcb79(()=>{const _0x451484=_0x5df8,_0x133798=_0x26b476[Symbol['iterator']]();return{'next'(){const _0x1c74cc=_0x5df8;for(;;){try{return _0x133798[_0x1c74cc(0x659)]();}catch(_0x24da70){const _0x268571=_0x1b631c(_0x24da70);if(_0x268571===_0x580d9d[_0x1c74cc(0x4ed)]||_0x268571===undefined)continue;return{'done':![],'value':_0x268571};}}},'return'(){const _0x4685ae=_0x5df8;return _0x133798[_0x4685ae(0x235)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x451484(0x527)]](){return this;}};});}[_0x59e95f(0x38a)](){return Array['from'](this);}get[_0x59e95f(0x403)](){return Array['from'](this);}}const _0x354d54={'total':0x0,'byLabel':{},'last':null};function _0x229601(_0xd0d649){const _0x4e40c6=_0x59e95f;_0x354d54[_0x4e40c6(0xf9)]++;if(_0xd0d649)_0x354d54[_0x4e40c6(0x4cb)][_0xd0d649]=(_0x354d54[_0x4e40c6(0x4cb)][_0xd0d649]??0x0)+0x1;_0x354d54['last']={'label':_0xd0d649??null,'at':Date[_0x4e40c6(0x466)]()};}function _0xc7747c(){const _0x9599bf=_0x59e95f;return{'total':_0x354d54[_0x9599bf(0xf9)],'byLabel':{..._0x354d54[_0x9599bf(0x4cb)]},'last':_0x354d54['last']};}function _0x5d756b(_0x41e932,_0x2b36f0={}){const {getTxnId:_0x34379d,resume:_0x109186,label:_0x5b88a6,baseline:_0x28d179}=_0x2b36f0;return new _0x2dcb79(()=>{const _0x103d09=_0x5df8;let _0x3a56b1=null,_0x100910=![],_0x12efb5=![],_0x50609f=![],_0x18670f,_0x2b6228=0x0,_0x32b1b1;return{'next'(){const _0x2bac93=_0x5df8;if(_0x50609f)return{'done':!![],'value':undefined};if(_0x12efb5){let _0xd53646=![];if(_0x109186&&_0x34379d)try{_0xd53646=_0x34379d()===_0x32b1b1;}catch{}if(!_0xd53646){_0x50609f=!![],_0x229601(_0x5b88a6);throw new _0x4c9258(_0x109186?_0x2bac93(0x6a2)+_0x2bac93(0x74b)+_0x2bac93(0x513):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+_0x2bac93(0x7c2)+_0x2bac93(0x27d),_0x2bac93(0xec));}_0x3a56b1=_0x109186(_0x18670f,_0x2b6228)[Symbol['iterator']](),_0x12efb5=![];}if(!_0x3a56b1){if(_0x28d179!==undefined)_0x32b1b1=_0x28d179;else try{_0x32b1b1=_0x34379d?_0x34379d():undefined;}catch{_0x32b1b1=undefined;}try{_0x3a56b1=_0x41e932()[Symbol[_0x2bac93(0x527)]]();}catch(_0x49f3a2){_0x50609f=!![];throw _0x49f3a2;}}!_0x100910&&(_0x100910=!![],queueMicrotask(()=>{const _0x41821d=_0x2bac93;_0x100910=![];if(_0x50609f||_0x12efb5)return;try{_0x3a56b1?.[_0x41821d(0x235)]?.();}catch{}_0x3a56b1=null,_0x12efb5=!![];}));const _0x242814=_0x3a56b1[_0x2bac93(0x659)]();if(_0x242814['done'])return _0x50609f=!![],{'done':!![],'value':undefined};return _0x18670f=_0x242814[_0x2bac93(0x2e6)],_0x2b6228++,_0x242814;},'return'(){const _0x102f77=_0x5df8;_0x50609f=!![];try{_0x3a56b1?.[_0x102f77(0x235)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x103d09(0x527)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x5d756b,'OKDBGuardedRange':_0x2dcb79,'recordGuardTrip':_0x229601,'getGuardTripStats':_0xc7747c},okdbGuardedRange;}function _0x5df8(_0x34dd19,_0x4f2e6a){_0x34dd19=_0x34dd19-0xd6;const _0x40a895=_0x40a8();let _0x5df881=_0x40a895[_0x34dd19];return _0x5df881;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x448029=_0x30dd4b;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x3bda26,performance:_0x1bf180}=require$$0$1,_0xd6a409=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x17a30b=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x2ce6a1=process.env.OKDB_LOOP_LAG_ALL==='1',_0x531932=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x187407{constructor(){const _0x27854c=_0x5df8;this['enabled']=_0xd6a409,this['_buckets']=new Map(),this['_h']=null,this[_0x27854c(0x708)]=null,this['_started']=![],this[_0x27854c(0x4b6)]=(_0x236f00,_0x43c318)=>process[_0x27854c(0x345)][_0x27854c(0x438)](_0x236f00+(_0x43c318?'\x20'+JSON['stringify'](_0x43c318):'')+'\x0a');}[_0x448029(0x466)](){const _0x1f5d66=_0x448029;return _0x1bf180[_0x1f5d66(0x466)]();}['setLogger'](_0xbaa6b9){const _0x5569cf=_0x448029;if(typeof _0xbaa6b9===_0x5569cf(0x1ea))this['_log']=_0xbaa6b9;}[_0x448029(0x60d)](_0x4c841e,_0x9b8989,_0x2679c0){const _0x4b012f=_0x448029;if(!this[_0x4b012f(0x78d)])return;let _0x2c21af=this[_0x4b012f(0x480)]['get'](_0x4c841e);!_0x2c21af&&(_0x2c21af={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x4b012f(0x480)][_0x4b012f(0x5af)](_0x4c841e,_0x2c21af)),_0x2c21af['ms']+=_0x9b8989,_0x2c21af[_0x4b012f(0x4e5)]+=0x1,_0x9b8989>_0x2c21af[_0x4b012f(0x2ea)]&&(_0x2c21af[_0x4b012f(0x2ea)]=_0x9b8989,_0x2c21af[_0x4b012f(0x4a9)]=_0x2679c0||'');}[_0x448029(0x6ac)](_0x221527){const _0x34f251=_0x448029;if(!this[_0x34f251(0x78d)]||this[_0x34f251(0x355)])return;this[_0x34f251(0x355)]=!![];if(_0x221527)this[_0x34f251(0x4b6)]=_0x221527;this['_h']=_0x3bda26({'resolution':0xa}),this['_h'][_0x34f251(0x628)](),this[_0x34f251(0x708)]=setInterval(()=>this[_0x34f251(0x6e0)](),_0x17a30b);if(this[_0x34f251(0x708)]['unref'])this[_0x34f251(0x708)][_0x34f251(0x4ff)]();}[_0x448029(0x521)](_0x4fd475){const _0x14bed5=_0x448029;if(!this[_0x14bed5(0x610)])this[_0x14bed5(0x610)]=new Set();this[_0x14bed5(0x610)][_0x14bed5(0x241)](_0x4fd475);if(!this[_0x14bed5(0x355)])this[_0x14bed5(0x54a)]();}[_0x448029(0x17c)](_0x3ee542){const _0x482904=_0x448029;this[_0x482904(0x610)]?.[_0x482904(0x5cb)](_0x3ee542);}[_0x448029(0x54a)](){const _0x121996=_0x448029;if(this[_0x121996(0x357)])return;this[_0x121996(0x357)]=!![];!this['_h']&&(this['_h']=_0x3bda26({'resolution':0xa}),this['_h'][_0x121996(0x628)]());const _0x23fe8b=_0x17a30b;this[_0x121996(0x746)]=setInterval(()=>{const _0x7edf4=_0x121996,_0x2b4890=this['_h'];if(!_0x2b4890)return;const _0x16a5a2=_0x2b4890['percentile'](0x63)/0xf4240,_0x5422dc=_0x2b4890['max']/0xf4240,_0x2b9a65=_0x2b4890[_0x7edf4(0x7da)]/0xf4240;_0x2b4890[_0x7edf4(0x3c4)]();if(this[_0x7edf4(0x610)])for(const _0x6d0749 of this[_0x7edf4(0x610)]){try{_0x6d0749({'p99Ms':_0x16a5a2,'maxMs':_0x5422dc,'meanMs':_0x2b9a65,'reportMs':_0x23fe8b});}catch{}}},_0x23fe8b);if(this[_0x121996(0x746)][_0x121996(0x4ff)])this[_0x121996(0x746)][_0x121996(0x4ff)]();}[_0x448029(0x6e0)](){const _0x18dc64=_0x448029,_0x4cbabc=this['_h'],_0x1e4e24=_0x4cbabc[_0x18dc64(0x1fa)]/0xf4240,_0x46da26=_0x4cbabc[_0x18dc64(0x6d5)](0x63)/0xf4240,_0x18bfd6=_0x4cbabc[_0x18dc64(0x7da)]/0xf4240;_0x4cbabc[_0x18dc64(0x3c4)]();const _0x2b6426=[...this[_0x18dc64(0x480)][_0x18dc64(0x5c7)]()][_0x18dc64(0x3e7)](([_0xf1ec59,_0x1b37c3])=>({'label':_0xf1ec59,..._0x1b37c3}))[_0x18dc64(0x518)]((_0x3454ea,_0x506726)=>_0x506726['ms']-_0x3454ea['ms'])[_0x18dc64(0x101)](0x0,0x8);this['_buckets'][_0x18dc64(0x30f)]();const _0x39aa1e=_0x2b6426[_0x18dc64(0x56a)]((_0x5b18f4,_0x23a7cc)=>_0x5b18f4+_0x23a7cc['ms'],0x0),_0x25d7cc=_0x2b6426[_0x18dc64(0x3e7)](_0x254c0c=>_0x254c0c[_0x18dc64(0x44b)]+'='+_0x254c0c['ms'][_0x18dc64(0x6d1)](0x0)+_0x18dc64(0x723)+_0x254c0c[_0x18dc64(0x4e5)]+(_0x254c0c['maxMs']>0x5?_0x18dc64(0x387)+_0x254c0c[_0x18dc64(0x2ea)][_0x18dc64(0x6d1)](0x0)+'ms'+(_0x254c0c['maxExtra']?'\x20'+_0x254c0c['maxExtra']:'')+')':''));(_0x2ce6a1||_0x1e4e24>=_0x531932)&&this[_0x18dc64(0x4b6)](_0x18dc64(0x329)+_0x17a30b+'ms\x20max='+_0x1e4e24[_0x18dc64(0x6d1)](0x0)+_0x18dc64(0x14d)+_0x46da26[_0x18dc64(0x6d1)](0x0)+'ms\x20mean='+_0x18bfd6['toFixed'](0x0)+'ms\x20busy='+_0x39aa1e[_0x18dc64(0x6d1)](0x0)+'ms'+(_0x25d7cc[_0x18dc64(0x306)]?'\x20│\x20'+_0x25d7cc[_0x18dc64(0x78e)]('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x18dc64(0x610)])for(const _0x478ef8 of this['_windowCbs']){try{_0x478ef8({'p99Ms':_0x46da26,'maxMs':_0x1e4e24,'meanMs':_0x18bfd6,'reportMs':_0x17a30b});}catch{}}}[_0x448029(0x7af)](){const _0x77878=_0x448029;if(this[_0x77878(0x708)])clearInterval(this[_0x77878(0x708)]);if(this['_h'])this['_h'][_0x77878(0x141)]();this[_0x77878(0x708)]=null,this['_h']=null,this[_0x77878(0x355)]=![];}}const _0x42d4d5=new _0x187407();if(_0x42d4d5[_0x448029(0x78d)])_0x42d4d5[_0x448029(0x6ac)]();return okdbLoopMonitor={'LOOP':_0x42d4d5},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x33dd36=_0x30dd4b;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x468fda={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0xfb831c}=requireOkdbEnums(),{OKDBError:_0x3fba73}=requireOkdbError(),{recordGuardTrip:_0xdeb665,guardSnapshotIterable:_0x23266b}=requireOkdbGuardedRange(),{LOOP:_0x4a609e}=requireOkdbLoopMonitor();function _0x27c53c(_0x5d47c2){return _0x5d47c2['map'](_0x34c6ca=>{const _0x13796e=_0x5df8,[_0x1fa6c3,_0x3e06f9]=_0x34c6ca[_0x13796e(0x725)]||[];return{'action':_0x34c6ca[_0x13796e(0x36b)],'type':_0x1fa6c3,'key':_0x3e06f9};});}class _0x489954{[_0x33dd36(0x11c)];[_0x33dd36(0x4ca)]=[];['_doHooks']=[];['_undoHooks']=[];constructor(_0x480561,_0x4a0870={'useReadTransaction':![]}){const _0x2517d0=_0x33dd36;this[_0x2517d0(0x11c)]=_0x480561,this['options']=_0x4a0870,this['id']=_0x468fda['v4']();if(this[_0x2517d0(0x3d8)][_0x2517d0(0x330)])try{this[_0x2517d0(0x612)]=this[_0x2517d0(0x11c)]['db'][_0x2517d0(0x465)]()[_0x2517d0(0x271)];}catch{this[_0x2517d0(0x612)]=undefined;}this[_0x2517d0(0x1f0)]=this['options'][_0x2517d0(0x330)]?this[_0x2517d0(0x11c)]['db'][_0x2517d0(0x330)]():null,this[_0x2517d0(0x1a3)]=![],this[_0x2517d0(0x10a)]=![],this[_0x2517d0(0x1f0)]&&queueMicrotask(()=>{const _0xc43f8e=_0x2517d0;this[_0xc43f8e(0x1f0)]&&(this[_0xc43f8e(0x1d3)](),this[_0xc43f8e(0x10a)]=!![]);});}[_0x33dd36(0x66b)](_0x37a0ad){const _0xb5450c=_0x33dd36;this[_0xb5450c(0x30a)][_0xb5450c(0x150)](_0x37a0ad);}[_0x33dd36(0x573)](_0x3df36b){const _0x55e408=_0x33dd36;this['_undoHooks'][_0x55e408(0x150)](_0x3df36b);}['_closeReadTransaction'](){const _0x3e7ce3=_0x33dd36;if(!this[_0x3e7ce3(0x1f0)])return;try{this[_0x3e7ce3(0x1f0)][_0x3e7ce3(0x11f)]();}catch(_0x347761){}this[_0x3e7ce3(0x1f0)]=null;}[_0x33dd36(0x68c)](){const _0x5024d5=_0x33dd36;if(this[_0x5024d5(0x1a3)])throw new _0x3fba73(_0x5024d5(0x17e),_0x5024d5(0x5f0));if(this[_0x5024d5(0x10a)]){let _0x1b4057=![];if(this[_0x5024d5(0x3d8)][_0x5024d5(0x330)]===_0x5024d5(0x30e)&&this[_0x5024d5(0x612)]!==undefined)try{_0x1b4057=this[_0x5024d5(0x11c)]['db'][_0x5024d5(0x465)]()[_0x5024d5(0x271)]===this[_0x5024d5(0x612)];}catch{}if(!_0x1b4057){_0xdeb665((this[_0x5024d5(0x11c)]?.[_0x5024d5(0x331)]??'?')+_0x5024d5(0x7e4));throw new _0x3fba73(_0x5024d5(0x692)+_0x5024d5(0x26c)+_0x5024d5(0x763)+_0x5024d5(0x50b),_0x5024d5(0xec));}}}[_0x33dd36(0x759)](_0xb22bc8,_0x43f275){const _0x440af4=_0x33dd36;return this['_assertOpen'](),this['okdb'][_0x440af4(0x759)](_0xb22bc8,_0x43f275,{'transaction':this[_0x440af4(0x1f0)]});}[_0x33dd36(0x31c)](_0x13de2f,_0xfa4a6e){const _0x1d7d59=_0x33dd36;return this['_assertOpen'](),this['okdb'][_0x1d7d59(0x31c)](_0x13de2f,_0xfa4a6e,{'transaction':this[_0x1d7d59(0x1f0)]});}[_0x33dd36(0x47e)](_0x354491,_0xbd136b){const _0x4fd50c=_0x33dd36;return this[_0x4fd50c(0x68c)](),this[_0x4fd50c(0x11c)][_0x4fd50c(0x47e)](_0x354491,_0xbd136b,{'transaction':this[_0x4fd50c(0x1f0)]});}[_0x33dd36(0x767)](_0x5e7f44){const _0x10f4f0=_0x33dd36;if(!this[_0x10f4f0(0x3d8)][_0x10f4f0(0x330)])return _0x5e7f44;if(_0x5e7f44&&typeof _0x5e7f44['then']==='function')return _0x5e7f44;if(Array[_0x10f4f0(0x470)](_0x5e7f44))return _0x5e7f44;const _0x172493=this,_0x2dd7fc=_0x172493['options']['useReadTransaction']===_0x10f4f0(0x30e),_0x9acb11=()=>{const _0xf3c622=_0x10f4f0;if(!_0x172493[_0xf3c622(0x10a)])return![];if(!_0x2dd7fc)return!![];if(_0x172493[_0xf3c622(0x612)]===undefined)return!![];try{return _0x172493[_0xf3c622(0x11c)]['db'][_0xf3c622(0x465)]()[_0xf3c622(0x271)]!==_0x172493[_0xf3c622(0x612)];}catch{return!![];}};return _0x23266b(()=>{const _0x48067b=_0x10f4f0;if(_0x172493[_0x48067b(0x1a3)])throw new _0x3fba73(_0x48067b(0x17e),_0x48067b(0x5f0));if(_0x9acb11()){_0xdeb665((_0x172493[_0x48067b(0x11c)]?.[_0x48067b(0x331)]??'?')+_0x48067b(0x700));throw new _0x3fba73(_0x48067b(0x7ba)+_0x48067b(0x356)+_0x48067b(0x38f),_0x48067b(0xec));}return _0x5e7f44;},{'label':(_0x172493[_0x10f4f0(0x11c)]?.['name']??'?')+_0x10f4f0(0x700),..._0x2dd7fc?{'baseline':_0x172493[_0x10f4f0(0x612)],'getTxnId':()=>_0x172493['okdb']['db'][_0x10f4f0(0x465)]()[_0x10f4f0(0x271)],'resume':(_0x2fd01d,_0x4f86d0)=>_0x5e7f44[_0x10f4f0(0x101)](_0x4f86d0)}:{}});}[_0x33dd36(0x501)](_0x593179,_0x5b5bd1={}){const _0x5b74eb=_0x33dd36;return this[_0x5b74eb(0x68c)](),this['_range'](this['okdb'][_0x5b74eb(0x501)](_0x593179,{'transaction':this[_0x5b74eb(0x1f0)],..._0x5b5bd1}));}[_0x33dd36(0x3c6)](_0xd717b1,_0x31bc51={}){const _0x26e953=_0x33dd36;return this[_0x26e953(0x68c)](),this[_0x26e953(0x767)](this['okdb'][_0x26e953(0x3c6)](_0xd717b1,{'transaction':this['readTransaction'],..._0x31bc51}));}[_0x33dd36(0x253)](_0x5834ae,_0x33df18={}){const _0x519a5e=_0x33dd36;return this[_0x519a5e(0x68c)](),this[_0x519a5e(0x767)](this[_0x519a5e(0x11c)][_0x519a5e(0x253)](_0x5834ae,{'transaction':this[_0x519a5e(0x1f0)],..._0x33df18}));}['byIndex'](_0xd5dc33,_0x6f955a,_0x45c55a={}){const _0x2f8bf7=_0x33dd36;return this[_0x2f8bf7(0x68c)](),this[_0x2f8bf7(0x767)](this[_0x2f8bf7(0x11c)]['byIndex'](_0xd5dc33,_0x6f955a,{'transaction':this[_0x2f8bf7(0x1f0)],..._0x45c55a}));}[_0x33dd36(0x187)](_0x5e89a5,_0x59d6e1,_0x49de1a={}){const _0x1b3276=_0x33dd36;return this[_0x1b3276(0x68c)](),this['_range'](this[_0x1b3276(0x11c)][_0x1b3276(0x187)](_0x5e89a5,_0x59d6e1,{'transaction':this[_0x1b3276(0x1f0)],..._0x49de1a}));}['getClock'](_0x5b000e=null){const _0x517057=_0x33dd36;return this[_0x517057(0x68c)](),this[_0x517057(0x11c)][_0x517057(0x4c5)](_0x5b000e,{'transaction':this[_0x517057(0x1f0)]});}[_0x33dd36(0x429)](_0xe83053){const _0xe88733=_0x33dd36;return this['_assertOpen'](),this[_0xe88733(0x11c)][_0xe88733(0x429)](_0xe83053,{'transaction':this[_0xe88733(0x1f0)]});}[_0x33dd36(0x77a)](_0x593fce,_0x2dbf0e,_0x1853c3,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x21b3c6=_0x33dd36;this['actions'][_0x21b3c6(0x150)]({'action':'put','args':[_0x593fce,_0x2dbf0e,_0x1853c3,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x33dd36(0x5fa)](_0x241063,_0x26d796,_0x2cf111,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x33dd36(0x466)](),origin:origin=null,ttl:ttl=null}={}){const _0x163a9c=_0x33dd36;this[_0x163a9c(0x4ca)][_0x163a9c(0x150)]({'action':_0x163a9c(0x5fa),'args':[_0x241063,_0x26d796,_0x2cf111,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x33dd36(0x3bd)](_0x5164cb,_0x58b1f1,_0x43e4a4,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x33dd36(0x466)](),origin:origin=null,ttl:ttl=null}={}){const _0x8eae85=_0x33dd36;this[_0x8eae85(0x4ca)][_0x8eae85(0x150)]({'action':_0x8eae85(0x3bd),'args':[_0x5164cb,_0x58b1f1,_0x43e4a4,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x33dd36(0x160)](_0x2f57ce,_0x226985,_0x1ee2c4,{version:version=null,timestamp:timestamp=Date[_0x33dd36(0x466)](),origin:origin=null,ttl:ttl=null}={}){const _0x4844fb=_0x33dd36;this[_0x4844fb(0x4ca)][_0x4844fb(0x150)]({'action':_0x4844fb(0x160),'args':[_0x2f57ce,_0x226985,_0x1ee2c4,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x33dd36(0x4a1)](_0x3ce421,_0x5be79d,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x33dd36(0x466)](),origin:origin=null}={}){const _0x233961=_0x33dd36;this[_0x233961(0x4ca)]['push']({'action':_0x233961(0x4a1),'args':[_0x3ce421,_0x5be79d,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x33dd36(0x468)](_0xfabf44,_0x967268,_0x3e820c){const _0x366aa6=_0x33dd36;this[_0x366aa6(0x4ca)]['push']({'action':_0x366aa6(0x468),'args':[_0xfabf44,_0x967268,_0x3e820c]});}[_0x33dd36(0x6cf)](_0x3c9b17,_0x3bd6b2){const _0x3359ec=_0x33dd36;this[_0x3359ec(0x4ca)][_0x3359ec(0x150)]({'action':_0x3359ec(0x6cf),'args':[_0x3c9b17,_0x3bd6b2]});}['rollback'](){const _0x21787f=_0x33dd36;if(this[_0x21787f(0x1a3)])return;for(const _0x2a817a of this[_0x21787f(0x4fe)]){try{_0x2a817a();}catch{}}this['okdb'][_0x21787f(0x3a0)]['emit'](_0xfb831c[_0x21787f(0x1e4)],{'id':this['id']}),this['actions']=[],this[_0x21787f(0x1d3)](),this[_0x21787f(0x1a3)]=!![];}async[_0x33dd36(0x6a6)](){const _0x229b66=_0x33dd36;if(this[_0x229b66(0x1a3)])throw new Error(_0x229b66(0x17e));const _0x5935cc={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x229b66(0x4ca)]};this[_0x229b66(0x11c)][_0x229b66(0x3a0)][_0x229b66(0x663)](_0xfb831c[_0x229b66(0x53c)],_0x5935cc);try{const _0x11ef3f=_0x4a609e[_0x229b66(0x78d)]?_0x4a609e[_0x229b66(0x466)]():0x0;await this['okdb'][_0x229b66(0x1b1)][_0x229b66(0x194)](()=>{const _0x312abf=_0x229b66;for(const _0x87a708 of this[_0x312abf(0x4ca)]){const _0x4899a0=this['okdb']['_'+_0x87a708[_0x312abf(0x36b)]];if(typeof _0x4899a0!=='function')throw new Error(_0x312abf(0x2b5)+_0x87a708[_0x312abf(0x36b)]);_0x4899a0[_0x312abf(0x39c)](this[_0x312abf(0x11c)],this,..._0x87a708['args']);}}),_0x4a609e[_0x229b66(0x78d)]&&_0x4a609e[_0x229b66(0x60d)]('txn-commit',_0x4a609e[_0x229b66(0x466)]()-_0x11ef3f,(this[_0x229b66(0x11c)][_0x229b66(0x331)]??'?')+_0x229b66(0x643)+this[_0x229b66(0x4ca)][_0x229b66(0x306)]);}catch(_0x583044){for(const _0x1cce70 of this[_0x229b66(0x4fe)]){try{_0x1cce70();}catch{}}this[_0x229b66(0x1d3)](),this['_closed']=!![];if(_0x583044 instanceof _0x3fba73)throw _0x583044;const _0x5e1a18={'cause':_0x583044,'env':this[_0x229b66(0x11c)]?.[_0x229b66(0x331)],'envPath':this['okdb']?.[_0x229b66(0x72f)],'pid':process[_0x229b66(0x298)],'txnId':this['id'],'actionCount':this[_0x229b66(0x4ca)][_0x229b66(0x306)],'actions':_0x27c53c(this[_0x229b66(0x4ca)]),'nativeCode':_0x583044?.[_0x229b66(0x1a8)],'nativeName':_0x583044?.[_0x229b66(0x331)]};try{this[_0x229b66(0x11c)]?.[_0x229b66(0x4d2)]?.[_0x229b66(0x561)]?.(_0x229b66(0x293),{'env':_0x5e1a18[_0x229b66(0x100)],'envPath':_0x5e1a18[_0x229b66(0x5c2)],'pid':_0x5e1a18[_0x229b66(0x298)],'txnId':_0x5e1a18['txnId'],'actionCount':_0x5e1a18[_0x229b66(0x198)],'actions':_0x5e1a18['actions'],'nativeCode':_0x5e1a18['nativeCode'],'error':_0x583044?.['message'],'stack':_0x583044?.[_0x229b66(0x5e6)]});}catch{}throw new _0x3fba73(_0x583044?.['message']||_0x229b66(0x555),_0x229b66(0xfd),_0x5e1a18);}this['okdb']['events'][_0x229b66(0x663)](_0xfb831c[_0x229b66(0x716)],_0x5935cc);for(const _0x30b1dd of this[_0x229b66(0x30a)]){try{await _0x30b1dd();}catch{}}this['actions']=[],this[_0x229b66(0x1d3)](),this[_0x229b66(0x1a3)]=!![];}static['createWriteFacade'](_0x3f766d){const _0x48f4e4=_0x33dd36;return Object[_0x48f4e4(0x2f3)]({'id':_0x3f766d['id'],'put':_0x3f766d['put'][_0x48f4e4(0x5c9)](_0x3f766d),'update':_0x3f766d[_0x48f4e4(0x5fa)][_0x48f4e4(0x5c9)](_0x3f766d),'patch':_0x3f766d[_0x48f4e4(0x3bd)][_0x48f4e4(0x5c9)](_0x3f766d),'create':_0x3f766d[_0x48f4e4(0x160)][_0x48f4e4(0x5c9)](_0x3f766d),'remove':_0x3f766d[_0x48f4e4(0x4a1)]['bind'](_0x3f766d),'setTTL':_0x3f766d[_0x48f4e4(0x468)][_0x48f4e4(0x5c9)](_0x3f766d),'clearTTL':_0x3f766d['clearTTL'][_0x48f4e4(0x5c9)](_0x3f766d),'commit':_0x3f766d[_0x48f4e4(0x6a6)][_0x48f4e4(0x5c9)](_0x3f766d),'rollback':_0x3f766d[_0x48f4e4(0xe6)][_0x48f4e4(0x5c9)](_0x3f766d),'get':_0x3f766d[_0x48f4e4(0x759)][_0x48f4e4(0x5c9)](_0x3f766d),'getEntry':_0x3f766d[_0x48f4e4(0x31c)][_0x48f4e4(0x5c9)](_0x3f766d),'getMany':_0x3f766d[_0x48f4e4(0x47e)][_0x48f4e4(0x5c9)](_0x3f766d),'getRange':_0x3f766d[_0x48f4e4(0x501)][_0x48f4e4(0x5c9)](_0x3f766d),'getValues':_0x3f766d['getValues'][_0x48f4e4(0x5c9)](_0x3f766d),'getKeys':_0x3f766d[_0x48f4e4(0x253)]['bind'](_0x3f766d),'byIndex':_0x3f766d['byIndex'][_0x48f4e4(0x5c9)](_0x3f766d),'query':_0x3f766d[_0x48f4e4(0x187)]['bind'](_0x3f766d),'getClock':_0x3f766d['getClock'][_0x48f4e4(0x5c9)](_0x3f766d),'getCount':_0x3f766d[_0x48f4e4(0x429)][_0x48f4e4(0x5c9)](_0x3f766d),'read':_0x3f766d,'raw':_0x3f766d});}static[_0x33dd36(0x6fb)](_0x8006c0,_0x42803b=[]){const _0x59520d=_0x33dd36;if(!Array[_0x59520d(0x470)](_0x42803b))throw new _0x3fba73('txn\x20ops\x20must\x20be\x20an\x20array',_0x59520d(0x5ae));for(const _0x3191c5 of _0x42803b){if(Array[_0x59520d(0x470)](_0x3191c5)){const [_0x49a52e,..._0x59f123]=_0x3191c5;if(typeof _0x8006c0[_0x49a52e]!==_0x59520d(0x1ea))throw new _0x3fba73(_0x59520d(0x2b5)+_0x49a52e,_0x59520d(0x68d),{'action':_0x49a52e});_0x8006c0[_0x49a52e](..._0x59f123);continue;}if(!_0x3191c5||typeof _0x3191c5!==_0x59520d(0x218))throw new _0x3fba73('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x59520d(0x4fd));const {action:_0x566725}=_0x3191c5;if(typeof _0x566725!==_0x59520d(0x677)||typeof _0x8006c0[_0x566725]!==_0x59520d(0x1ea))throw new _0x3fba73('Unknown\x20transaction\x20action:\x20'+_0x566725,'TXN_INVALID_ACTION',{'action':_0x566725});switch(_0x566725){case'put':case _0x59520d(0x5fa):case'create':_0x8006c0[_0x566725](_0x3191c5[_0x59520d(0x705)],_0x3191c5['key'],_0x3191c5['value'],{..._0x3191c5[_0x59520d(0x3d8)],'ttl':_0x3191c5[_0x59520d(0x6c1)]??_0x3191c5[_0x59520d(0x3d8)]?.[_0x59520d(0x6c1)]??null});break;case _0x59520d(0x3bd):_0x8006c0['patch'](_0x3191c5[_0x59520d(0x705)],_0x3191c5[_0x59520d(0xfb)],_0x3191c5['patch'],{..._0x3191c5[_0x59520d(0x3d8)],'ttl':_0x3191c5[_0x59520d(0x6c1)]??_0x3191c5[_0x59520d(0x3d8)]?.['ttl']??null});break;case _0x59520d(0x4a1):_0x8006c0[_0x59520d(0x4a1)](_0x3191c5[_0x59520d(0x705)],_0x3191c5[_0x59520d(0xfb)],_0x3191c5[_0x59520d(0x3d8)]||{});break;case _0x59520d(0x468):_0x8006c0[_0x59520d(0x468)](_0x3191c5[_0x59520d(0x705)],_0x3191c5[_0x59520d(0xfb)],_0x3191c5[_0x59520d(0x6c1)]);break;case _0x59520d(0x6cf):_0x8006c0[_0x59520d(0x6cf)](_0x3191c5[_0x59520d(0x705)],_0x3191c5['key']);break;default:throw new _0x3fba73('Unsupported\x20transaction\x20action:\x20'+_0x566725,_0x59520d(0x68d),{'action':_0x566725});}}}static async[_0x33dd36(0x446)](_0x221b2f,_0x46842f,_0x46f827={}){const _0x428cd6=_0x33dd36,_0x325cd0=new _0x489954(_0x221b2f,_0x46f827),_0x3d2a63=_0x489954['createWriteFacade'](_0x325cd0);try{typeof _0x46842f==='function'?await _0x46842f(_0x3d2a63):_0x489954[_0x428cd6(0x6fb)](_0x325cd0,_0x46842f||[]);const _0xc479b5=_0x325cd0[_0x428cd6(0x4ca)]['length'];return await _0x325cd0[_0x428cd6(0x6a6)](),{'id':_0x325cd0['id'],'actions':_0xc479b5};}catch(_0x206963){try{_0x325cd0[_0x428cd6(0xe6)]();}catch(_0xade6eb){}throw _0x206963;}}}return okdbTransaction=_0x489954,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x337282=_0x30dd4b;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x337282(0x522)](dist,_0x337282(0x3d4),{'value':!![]});const _0x375b61=new Float64Array(0x2),_0x25b4b6=new Int32Array(_0x375b61['buffer'],0x0,0x4),{lowIdx:_0x4fa886,highIdx:_0x40bf1f}=((()=>{const _0x5e553b=_0x337282;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x5e553b(0x45f)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x1beae5=![],_0x400224;try{_0x400224=new TextEncoder();}catch(_0x2a5a0c){}function _0x673995(_0x413444,_0x61db7a,_0x12eefb,_0x2660b2){const _0x161ed2=_0x337282;let _0x4a07b3=_0x61db7a[_0x161ed2(0xfa)];if(!_0x4a07b3)_0x4a07b3=_0x61db7a[_0x161ed2(0xfa)]=new DataView(_0x61db7a[_0x161ed2(0x45f)],_0x61db7a[_0x161ed2(0x5ee)],_0x61db7a[_0x161ed2(0x3f5)]+0x3>>0x2<<0x2);switch(typeof _0x413444){case'string':let _0x41d1f7=_0x413444[_0x161ed2(0x306)],_0xd566b0=_0x413444[_0x161ed2(0x607)](0x0);if(!(_0xd566b0>=0x1c))_0x61db7a[_0x12eefb++]=0x1b;if(_0x41d1f7<0x40){let _0x4e6aa7,_0x130092;for(_0x4e6aa7=0x0;_0x4e6aa7<_0x41d1f7;_0x4e6aa7++){_0xd566b0=_0x413444[_0x161ed2(0x607)](_0x4e6aa7);if(_0xd566b0<=0x4)_0x61db7a[_0x12eefb++]=0x4,_0x61db7a[_0x12eefb++]=_0xd566b0;else{if(_0xd566b0<0x80)_0x61db7a[_0x12eefb++]=_0xd566b0;else{if(_0xd566b0<0x800)_0x61db7a[_0x12eefb++]=_0xd566b0>>0x6|0xc0,_0x61db7a[_0x12eefb++]=_0xd566b0&0x3f|0x80;else(_0xd566b0&0xfc00)===0xd800&&((_0x130092=_0x413444['charCodeAt'](_0x4e6aa7+0x1))&0xfc00)===0xdc00?(_0xd566b0=0x10000+((_0xd566b0&0x3ff)<<0xa)+(_0x130092&0x3ff),_0x4e6aa7++,_0x61db7a[_0x12eefb++]=_0xd566b0>>0x12|0xf0,_0x61db7a[_0x12eefb++]=_0xd566b0>>0xc&0x3f|0x80,_0x61db7a[_0x12eefb++]=_0xd566b0>>0x6&0x3f|0x80,_0x61db7a[_0x12eefb++]=_0xd566b0&0x3f|0x80):(_0x61db7a[_0x12eefb++]=_0xd566b0>>0xc|0xe0,_0x61db7a[_0x12eefb++]=_0xd566b0>>0x6&0x3f|0x80,_0x61db7a[_0x12eefb++]=_0xd566b0&0x3f|0x80);}}}}else{if(_0x61db7a['utf8Write'])_0x12eefb+=_0x61db7a[_0x161ed2(0x7a4)](_0x413444,_0x12eefb,_0x61db7a[_0x161ed2(0x3f5)]-_0x12eefb);else _0x12eefb+=_0x400224[_0x161ed2(0x3e0)](_0x413444,_0x61db7a['subarray'](_0x12eefb))['written'];if(_0x12eefb>_0x61db7a['length']-0x4)throw new RangeError(_0x161ed2(0x49c));}break;case _0x161ed2(0x682):_0x375b61[0x0]=_0x413444;let _0x1539bd=_0x25b4b6[_0x4fa886],_0x434fb1=_0x25b4b6[_0x40bf1f],_0x93c4a0;if(_0x413444<0x0)return _0x4a07b3[_0x161ed2(0x669)](_0x12eefb+0x4,~(_0x1539bd>>>0x4|_0x434fb1<<0x1c)),_0x4a07b3[_0x161ed2(0x669)](_0x12eefb+0x0,(_0x434fb1^0x7fffffff)>>>0x4),_0x4a07b3[_0x161ed2(0x669)](_0x12eefb+0x8,(_0x1539bd&0xf^0xf)<<0x4,!![]),_0x12eefb+0x9;else{if(_0x1539bd&0xf||_0x2660b2)_0x93c4a0=0x9;else{if(_0x1539bd&0xfffff)_0x93c4a0=0x8;else{if(_0x1539bd||_0x434fb1&0xf)_0x93c4a0=0x6;else _0x93c4a0=0x4;}}}_0x4a07b3[_0x161ed2(0x669)](_0x12eefb+0x0,_0x434fb1>>>0x4|0x10000000),_0x4a07b3['setInt32'](_0x12eefb+0x4,_0x1539bd>>>0x4|_0x434fb1<<0x1c),_0x4a07b3['setInt32'](_0x12eefb+0x8,(_0x1539bd&0xf)<<0x4,!![]);return _0x12eefb+_0x93c4a0;case _0x161ed2(0x218):if(_0x413444){if(Array[_0x161ed2(0x470)](_0x413444)){for(let _0x9b765c=0x0,_0x59a282=_0x413444[_0x161ed2(0x306)];_0x9b765c<_0x59a282;_0x9b765c++){if(_0x9b765c>0x0)_0x61db7a[_0x12eefb++]=0x0;_0x12eefb=_0x673995(_0x413444[_0x9b765c],_0x61db7a,_0x12eefb,!![]);}break;}else{if(_0x413444 instanceof Uint8Array){_0x61db7a['set'](_0x413444,_0x12eefb),_0x12eefb+=_0x413444[_0x161ed2(0x306)];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x161ed2(0x34b)](_0x413444));}}else _0x61db7a[_0x12eefb++]=0x0;break;case _0x161ed2(0x6b3):_0x4a07b3[_0x161ed2(0x762)](_0x12eefb++,_0x413444?0x7:0x6,!![]);return _0x12eefb;case _0x161ed2(0x3b6):let _0x59fcb7=Number(_0x413444);if(BigInt(_0x59fcb7)>_0x413444){_0x375b61[0x0]=_0x59fcb7;if(_0x59fcb7>0x0){if(_0x25b4b6[_0x4fa886])_0x25b4b6[_0x4fa886]--;else _0x25b4b6[_0x40bf1f]--,_0x25b4b6[_0x4fa886]=0xffffffff;}else{if(_0x25b4b6[_0x4fa886]<0xffffffff)_0x25b4b6[_0x4fa886]++;else _0x25b4b6[_0x40bf1f]++,_0x25b4b6[_0x4fa886]=0x0;}_0x59fcb7=_0x375b61[0x0];}let _0x276e93=_0x413444-BigInt(_0x59fcb7);if(_0x276e93===0x0n)return _0x673995(_0x59fcb7,_0x61db7a,_0x12eefb,_0x2660b2);_0x673995(_0x59fcb7,_0x61db7a,_0x12eefb,_0x2660b2),_0x12eefb+=0x9;let _0x3e3756=BigInt((_0x25b4b6[_0x40bf1f]>>0x14&0x7ff)-0x437),_0x37a755=_0x276e93>>_0x3e3756;_0x61db7a[_0x12eefb-0x1]|=Number(_0x37a755),_0x276e93-=_0x37a755<<_0x3e3756;let _0x1a3ff=!![];while(_0x276e93||_0x1a3ff){_0x1a3ff=![],_0x3e3756-=0x7n;let _0x15560f=_0x276e93>>_0x3e3756;_0x61db7a[_0x12eefb++]=Number(_0x15560f)|0x80,_0x276e93-=_0x15560f<<_0x3e3756;}return _0x12eefb;case'undefined':return _0x12eefb;case _0x161ed2(0x5b5):_0x61db7a[_0x12eefb++]=0x2;return _0x673995(_0x413444['description'],_0x61db7a,_0x12eefb,_0x2660b2);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0x413444);}if(_0x1beae5&&!_0x2660b2)_0x4a07b3[_0x161ed2(0x762)](_0x12eefb,0x0);return _0x12eefb;}let _0x1118ed;function _0x42a405(_0x72ee4a,_0x13591f,_0x5ba642,_0x591094){const _0x107228=_0x337282;_0x1118ed=_0x13591f;let _0x232249=_0x72ee4a[_0x1118ed],_0x2815ad;if(_0x232249<0x18){if(_0x232249<0x8){_0x1118ed++;if(_0x232249==0x6)_0x2815ad=![];else{if(_0x232249==0x7)_0x2815ad=!![];else{if(_0x232249==0x0)_0x2815ad=null;else{if(_0x232249==0x2)_0x2815ad=Symbol[_0x107228(0x7d2)](_0x31c67b(_0x72ee4a,_0x5ba642));else return Uint8Array[_0x107228(0x4d3)]['slice'][_0x107228(0x39c)](_0x72ee4a,_0x13591f,_0x5ba642);}}}}else{let _0x16e784;try{_0x16e784=_0x72ee4a[_0x107228(0xfa)]||(_0x72ee4a['dataView']=new DataView(_0x72ee4a[_0x107228(0x45f)],_0x72ee4a[_0x107228(0x5ee)],_0x72ee4a[_0x107228(0x3f5)]+0x3>>0x2<<0x2));}catch(_0x23902e){_0x16e784=_0x72ee4a[_0x107228(0xfa)]||(_0x72ee4a['dataView']=new DataView(_0x72ee4a[_0x107228(0x45f)],_0x72ee4a['byteOffset'],_0x72ee4a['buffer']['byteLength']-_0x72ee4a[_0x107228(0x5ee)]));}let _0x98c6be=_0x16e784[_0x107228(0x581)](_0x1118ed)<<0x4,_0xd135f9=_0x5ba642-_0x1118ed,_0x5c8762;if(_0xd135f9>0x4)_0x5c8762=_0x1118ed+0x8<=_0x72ee4a[_0x107228(0x306)]?_0x16e784[_0x107228(0x581)](_0x1118ed+0x4):_0x72ee4a[_0x1118ed+0x4]<<0x18|_0x72ee4a[_0x1118ed+0x5]<<0x10|_0x72ee4a[_0x1118ed+0x6]<<0x8|_0x72ee4a[_0x1118ed+0x7],_0x98c6be|=_0x5c8762>>>0x1c,_0xd135f9<=0x6&&(_0x5c8762&=-0x10000),_0x5c8762=_0x5c8762<<0x4,_0xd135f9>0x8&&(_0x5c8762=_0x5c8762|_0x72ee4a[_0x1118ed+0x8]>>0x4);else _0x5c8762=0x0;_0x232249<0x10&&(_0x98c6be=_0x98c6be^0x7fffffff,_0x5c8762=~_0x5c8762);_0x25b4b6[_0x40bf1f]=_0x98c6be,_0x25b4b6[_0x4fa886]=_0x5c8762,_0x2815ad=_0x375b61[0x0],_0x1118ed+=0x9;if(_0xd135f9>0x9&&_0x72ee4a[_0x1118ed]>0x0){_0x2815ad=BigInt(_0x2815ad);let _0x3ed50=_0x98c6be>>0x14&0x7ff,_0x14bc4e=_0x72ee4a[_0x1118ed-0x1]&0xf;_0x2815ad+=BigInt(_0x14bc4e)<<BigInt(_0x3ed50-0x437);while((_0x14bc4e=_0x72ee4a[_0x1118ed])>0x0&&_0x1118ed++<_0x5ba642){_0x2815ad+=BigInt(_0x14bc4e&0x7f)<<BigInt((_0x13591f-_0x1118ed)*0x7+_0x3ed50-0x3f8);}}}}else{_0x232249==0x1b&&_0x1118ed++;_0x2815ad=_0x31c67b(_0x72ee4a,_0x5ba642);if(_0x1118ed<_0x5ba642)_0x1118ed--;}while(_0x1118ed<_0x5ba642){if(_0x72ee4a[_0x1118ed]===0x0)_0x1118ed++;if(_0x591094)return _0x2cbfbd['position']=_0x1118ed,_0x2815ad;let _0x597ee3=_0x42a405(_0x72ee4a,_0x1118ed,_0x5ba642,!![]);if(_0x2815ad instanceof Array)_0x2815ad['push'](_0x597ee3);else _0x2815ad=[_0x2815ad,_0x597ee3];}return _0x2815ad;}const _0x1f5da3=()=>_0x1beae5=!![],_0x2cbfbd={'writeKey':_0x673995,'readKey':_0x42a405,'enableNullTermination':_0x1f5da3};let _0x57007f=[],_0x5efdf1=0x0;const _0x500c04=typeof Buffer!==_0x337282(0x184),_0x339ca2=_0x500c04?Buffer['allocUnsafeSlow']:Uint8Array,_0x12835d=_0x8305f6=>{const _0x112b86=_0x337282;let _0x50a162;_0x5efdf1+0x64>_0x57007f[_0x112b86(0x306)]&&(_0x57007f=new _0x339ca2(0x2000),_0x5efdf1=0x0,_0x50a162=!![]);try{let _0x590d3a=_0x57007f[_0x112b86(0x101)](_0x5efdf1,_0x5efdf1=_0x673995(_0x8305f6,_0x57007f,_0x5efdf1));if(_0x5efdf1>_0x57007f[_0x112b86(0x306)]){if(_0x50a162)throw new Error('Key\x20is\x20too\x20large');return _0x12835d(_0x8305f6);}return _0x590d3a;}catch(_0x100422){if(_0x50a162)throw _0x100422;return _0x5efdf1=_0x57007f[_0x112b86(0x306)],_0x12835d(_0x8305f6);}},_0x46903d=_0x10240a=>{const _0x2947ba=_0x337282;return _0x42a405(_0x10240a,0x0,_0x10240a[_0x2947ba(0x306)]);},_0x2f517c=String[_0x337282(0x3dc)];function _0x1de785(){const _0x4f6877=_0x337282;let _0x1f233d=_0x4f6877(0x7b8),_0x76da36=[];for(let _0xefd0f8=0x0;_0xefd0f8<0x30;_0xefd0f8++){let _0x296e9f=_0x2f517c((_0xefd0f8&0xf)+0x61)+_0x2f517c((_0xefd0f8>>0x4)+0x61);_0x1f233d+=_0x4f6877(0x44d)+_0x296e9f+_0x4f6877(0x58c)+_0x296e9f+_0x4f6877(0x75f)+_0x296e9f+_0x4f6877(0x281)+_0x296e9f+_0x4f6877(0x7d1)+_0x296e9f+',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20('+_0x296e9f+_0x4f6877(0x147)+_0x296e9f+_0x4f6877(0x58e)+_0x76da36+_0x4f6877(0x424),_0x76da36['push'](_0x296e9f);}return _0x1f233d+=_0x4f6877(0x34a)+_0x76da36+_0x4f6877(0x54b),_0x1f233d;}const _0x481d18=typeof process!==_0x337282(0x184)&&process[_0x337282(0x500)]?function(_0x9f2a36){let {setPosition:_0x4a61ce,getPosition:_0x54773b,readString:_0x40c7c3}=_0x9f2a36;return _0x35420d=>{_0x4a61ce(_0x1118ed);let _0xb0e16c=_0x40c7c3(_0x35420d);return _0x1118ed=_0x54773b(),_0xb0e16c;};}(new Function('fromCharCode',_0x337282(0x251)+_0x1de785()+_0x337282(0x4ba)+_0x337282(0x4e4)+_0x337282(0x5c4)+_0x337282(0x13b))(_0x2f517c)):eval(_0x1de785());function _0x31c67b(_0x535eb7,_0x3912ad){if(_0x535eb7[_0x3912ad]>0x0){let _0x128921=_0x535eb7[_0x3912ad];try{return _0x535eb7[_0x3912ad]=0x0,_0x481d18(_0x535eb7);}finally{_0x535eb7[_0x3912ad]=_0x128921;}}else return _0x481d18(_0x535eb7);}function _0x3e2bce(_0x515f21,_0x5dfcd8){const _0x277013=_0x337282;if(typeof _0x515f21==_0x277013(0x218)){if(!_0x515f21)return _0x5dfcd8==null?0x0:-0x1;if(_0x515f21[_0x277013(0x778)]){if(_0x5dfcd8==null)return 0x1;else return _0x5dfcd8[_0x277013(0x778)]?_0x515f21[_0x277013(0x778)](_0x5dfcd8):-0x1;}let _0x4649ff;if(_0x5dfcd8 instanceof Array){let _0x3fdc41=0x0;while((_0x4649ff=_0x3e2bce(_0x515f21[_0x3fdc41],_0x5dfcd8[_0x3fdc41]))==0x0&&_0x3fdc41<=_0x515f21[_0x277013(0x306)]){_0x3fdc41++;}return _0x4649ff;}_0x4649ff=_0x3e2bce(_0x515f21[0x0],_0x5dfcd8);if(_0x4649ff==0x0&&_0x515f21[_0x277013(0x306)]>0x1)return 0x1;return _0x4649ff;}else{if(typeof _0x515f21==typeof _0x5dfcd8)return typeof _0x515f21===_0x277013(0x5b5)&&(_0x515f21=Symbol['keyFor'](_0x515f21),_0x5dfcd8=Symbol[_0x277013(0x676)](_0x5dfcd8)),_0x515f21<_0x5dfcd8?-0x1:_0x515f21===_0x5dfcd8?0x0:0x1;else{if(typeof _0x5dfcd8==_0x277013(0x218)){if(_0x5dfcd8 instanceof Array)return-_0x3e2bce(_0x5dfcd8,_0x515f21);return 0x1;}else return _0x3bcf72[typeof _0x515f21]<_0x3bcf72[typeof _0x5dfcd8]?-0x1:0x1;}}}const _0x3bcf72={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x315df3=null,_0x49a484=new Uint8Array([0xff]);return dist[_0x337282(0x5f3)]=_0x49a484,dist[_0x337282(0x6b1)]=_0x315df3,dist[_0x337282(0x6f7)]=_0x3e2bce,dist[_0x337282(0x373)]=_0x1f5da3,dist[_0x337282(0x681)]=_0x2cbfbd,dist[_0x337282(0x67d)]=_0x46903d,dist[_0x337282(0x688)]=_0x42a405,dist[_0x337282(0x3f3)]=_0x12835d,dist['writeKey']=_0x673995,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x1e4721=_0x30dd4b;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x30cb29}=requireDist(),_0x5d86ec=0x7ba,_0x4c9e4d=0x1000;function _0x136777(_0x5ab1a4,_0x4121ce){const _0x16dcae=_0x5df8;switch(typeof _0x5ab1a4){case _0x16dcae(0x677):return _0x5ab1a4[_0x16dcae(0x306)]<=_0x5d86ec&&_0x5ab1a4[_0x16dcae(0x338)]();case'number':case _0x16dcae(0x6b3):return!![];case _0x16dcae(0x218):if(_0x5ab1a4===null)return!![];if(Array[_0x16dcae(0x470)](_0x5ab1a4)){if(_0x4121ce>0x8||_0x5ab1a4['length']>_0x5d86ec)return![];for(let _0x5709f0=0x0;_0x5709f0<_0x5ab1a4[_0x16dcae(0x306)];_0x5709f0++)if(!_0x136777(_0x5ab1a4[_0x5709f0],_0x4121ce+0x1))return![];return!![];}return Buffer[_0x16dcae(0x157)](_0x5ab1a4)&&_0x5ab1a4[_0x16dcae(0x306)]<=_0x5d86ec;default:return![];}}function _0x2788be(_0x59d4d1,_0x1c2db8){const _0x5dc305=_0x5df8,_0x540c72=typeof _0x59d4d1;if(_0x540c72===_0x5dc305(0x677)){if(_0x59d4d1[_0x5dc305(0x306)]>=0x40||!_0x59d4d1[_0x5dc305(0x338)]()){if(!_0x136777(_0x59d4d1,0x0))return-0x1;}}else{if(_0x540c72!=='number'){if(Array['isArray'](_0x59d4d1)?_0x59d4d1[_0x5dc305(0x306)]===0x0||!_0x136777(_0x59d4d1,0x0):!_0x136777(_0x59d4d1,0x0))return-0x1;}}let _0x5b8435;try{_0x5b8435=_0x30cb29(_0x59d4d1,_0x1c2db8,0x0);}catch{return-0x1;}return _0x5b8435>0x0&&_0x5b8435<=_0x5d86ec?_0x5b8435:-0x1;}return keyenc={'encodeKey':_0x2788be,'KEY_BUF_SIZE':_0x4c9e4d,'NO_FAST':Symbol(_0x1e4721(0x40a))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x5948db=_0x30dd4b;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x32c883=0x400,_0x28d483=_0x32c883-0x1,_0x3576d1=0xea60;function _0x4d1bef(_0x3360ee,_0x110fa1){const _0x15350a=_0x5df8;return _0x3360ee*_0x32c883+Math[_0x15350a(0x1fa)](0x0,Math['min'](_0x110fa1,_0x28d483));}function _0x3695e4(_0x54730b){const _0x365c2f=_0x5df8,_0x2812fc=Math[_0x365c2f(0x1fa)](0x0,Number(_0x54730b)||0x0),_0x342ab5=_0x2812fc%_0x32c883,_0x558c23=(_0x2812fc-_0x342ab5)/_0x32c883;return{'pt':_0x558c23,'l':_0x342ab5};}function _0x1aef87(_0x451101,_0x1733ab=Date[_0x5948db(0x466)]()){const _0x59aeb9=_0x5948db,{pt:_0xc5efcc,l:_0x1c0db6}=_0x3695e4(_0x451101),_0x1f5dbd=Math[_0x59aeb9(0x1fa)](_0xc5efcc,_0x1733ab),_0x55c404=_0x1f5dbd===_0xc5efcc?Math[_0x59aeb9(0x6fa)](_0x1c0db6+0x1,_0x28d483):0x0;return _0x4d1bef(_0x1f5dbd,_0x55c404);}function _0x2a330c(_0x356ff8,_0x188b31,_0x47a23b=Date['now']()){const _0x2796a4=_0x5948db,{pt:_0x4bd4a7,l:_0xd9baf6}=_0x3695e4(_0x356ff8),{pt:_0x742de8,l:_0x3bbc98}=_0x3695e4(_0x188b31),_0x39f69a=Math[_0x2796a4(0x1fa)](_0x4bd4a7,_0x742de8,_0x47a23b);let _0x299da4;if(_0x39f69a===_0x4bd4a7&&_0x39f69a===_0x742de8)_0x299da4=Math[_0x2796a4(0x6fa)](Math[_0x2796a4(0x1fa)](_0xd9baf6,_0x3bbc98)+0x1,_0x28d483);else{if(_0x39f69a===_0x4bd4a7)_0x299da4=Math[_0x2796a4(0x6fa)](_0xd9baf6+0x1,_0x28d483);else _0x39f69a===_0x742de8?_0x299da4=Math[_0x2796a4(0x6fa)](_0x3bbc98+0x1,_0x28d483):_0x299da4=0x0;}return _0x4d1bef(_0x39f69a,_0x299da4);}function _0x2c12c2(_0x18af80,_0x2966e0){const _0x3b9e06=Number(_0x18af80)||0x0,_0x338baa=Number(_0x2966e0)||0x0;if(_0x3b9e06<_0x338baa)return-0x1;if(_0x3b9e06>_0x338baa)return 0x1;return 0x0;}function _0x111dc5(_0x3374fd){return _0x3695e4(_0x3374fd)['pt'];}return okdbHlc={'send':_0x1aef87,'recv':_0x2a330c,'compare':_0x2c12c2,'toMs':_0x111dc5,'encode':_0x4d1bef,'decode':_0x3695e4,'SCALE':_0x32c883,'L_MAX':_0x28d483,'DRIFT_MAX':_0x3576d1},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x3bab2b=_0x30dd4b;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x34ba8c,chunkedRange:_0x4b3269,pinnedChunks:_0x2fed43,claimPrefetch:_0x307801}=requireIterable(),{reclass:_0x1300b9,NotImplementedNative:_0x44a2c6,OKDBError:_0x2bfd73,optionsArg:_0x5ec000}=requireErrors(),{OKDBViews:_0x20d4a4}=requireViews(),{OKDBQueue:_0x2d3748}=requireQueue(),{OKDBTimeMachine:_0x9abff7}=requireTimemachine(),_0x1b6c1a=_0x421bc4=>{const _0x4c06b6=_0x5df8;try{return!_0x421bc4[_0x4c06b6(0x20f)]||_0x421bc4[_0x4c06b6(0x20f)]['isFeatureEnabled']('timeMachine');}catch{return!![];}},{OKDBFiles:_0xb0640}=requireFiles(),{OKDBEngines:_0x5e47c0,OKDBPipelines:_0x448ee7}=requireEngines(),{OKDBFunctions:_0x52e4c5}=requireFunctions(),_0x44b261=requireProcessor(),{RawDb:_0x44d261}=requireRawdb(),_0x310207=requireBridge();let _0x3cce9d=null;const _0x141ab1=()=>_0x3cce9d||=requireOkdbTransaction(),_0x1d39a6=(..._0x457b89)=>requireOkdbGuardedRange()[_0x3bab2b(0x5fc)](..._0x457b89),_0x1da4cb=Buffer[_0x3bab2b(0x320)]([0xff]),_0xd86774=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x5c1412=_0xd86774&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x876ada}=requireKeyenc(),_0x594398=new Set(_0xd86774?[_0x3bab2b(0x501),_0x3bab2b(0x1ae),_0x3bab2b(0x187),_0x3bab2b(0x591),_0x3bab2b(0x253)]:[]),_0x295f78=new Set([_0x3bab2b(0x759),_0x3bab2b(0x31c),'getMany',_0x3bab2b(0x501),_0x3bab2b(0x253),_0x3bab2b(0x3c6),_0x3bab2b(0x429),_0x3bab2b(0x4cc),_0x3bab2b(0x49f),_0x3bab2b(0x1ae),'countByIndex',_0x3bab2b(0x187),'geoQuery','getClock','getChanges','count',_0x3bab2b(0x466),_0x3bab2b(0x4db),_0x3bab2b(0x5bc),_0x3bab2b(0x207),'getIndexStatus',_0x3bab2b(0x32e),_0x3bab2b(0x64d),_0x3bab2b(0x1e7),_0x3bab2b(0x507),_0x3bab2b(0x3ca),_0x3bab2b(0x79f),'getSchema',_0x3bab2b(0xe4),_0x3bab2b(0x436),_0x3bab2b(0x639),_0x3bab2b(0x2f6),_0x3bab2b(0x6a9),_0x3bab2b(0x299),_0x3bab2b(0x703),'getDefaultTTL',_0x3bab2b(0x331),'path','id',_0x3bab2b(0x271),_0x3bab2b(0x543),_0x3bab2b(0x5a0),'readField','readFieldMany']),_0x1a6d40=new Set([_0x3bab2b(0x6ac),_0x3bab2b(0x729),'reverse',_0x3bab2b(0x376),_0x3bab2b(0x7e6),_0x3bab2b(0x6d4),_0x3bab2b(0x144),'versions',_0x3bab2b(0x7d4),_0x3bab2b(0x57a),_0x3bab2b(0x194),_0x3bab2b(0xfb),_0x3bab2b(0x1cf),'prefix']);function _0x473307(_0x494702,_0x2bb18d,_0x4260aa){const _0x3de9f9=new Map();return(_0x1739ec,_0x131dd4)=>{const _0x43e4d6=_0x5df8,_0x425a78=JSON[_0x43e4d6(0x34b)](_0x131dd4),_0xce2bda=_0x3de9f9['get'](_0x425a78);if(_0xce2bda){if(_0xce2bda[_0x43e4d6(0x70c)]===_0x43e4d6(0x1b8))throw _0x44aab0();_0x3de9f9[_0x43e4d6(0x5cb)](_0x425a78);if(_0xce2bda[_0x43e4d6(0x70c)]==='err')throw _0xce2bda['value'];return _0xce2bda[_0x43e4d6(0x2e6)];}const _0x4d66ac=_0x1739ec(..._0x131dd4);if(!_0x4d66ac||typeof _0x4d66ac[_0x43e4d6(0x1c4)]!==_0x43e4d6(0x1ea))return _0x4d66ac;const _0x5d732a={'state':'pending','value':undefined},_0x533900=(_0x13dce9,_0x401839)=>{const _0x2de6ed=_0x43e4d6;_0x5d732a['state']=_0x13dce9,_0x5d732a[_0x2de6ed(0x2e6)]=_0x401839;if(_0x3de9f9[_0x2de6ed(0x759)](_0x425a78)!==_0x5d732a)return;setTimeout(()=>_0x3de9f9[_0x2de6ed(0x759)](_0x425a78)===_0x5d732a&&_0x3de9f9[_0x2de6ed(0x5cb)](_0x425a78),0x7530)[_0x2de6ed(0x4ff)]();try{_0x494702['okdb'][_0x2de6ed(0x6ad)](_0x2de6ed(0x3a0),null,_0x2de6ed(0x663),['field:resolver_registered',{'env':_0x494702[_0x2de6ed(0x331)],'type':_0x2bb18d,'field':_0x4260aa}],!![]);}catch{}};_0x4d66ac['then'](_0x17e96c=>_0x533900('ok',_0x17e96c),_0x12e1b4=>_0x533900('err',_0x12e1b4));for(let _0xb9283e=0x0;_0xb9283e<0x64&&_0x5d732a[_0x43e4d6(0x70c)]===_0x43e4d6(0x1b8);_0xb9283e++)process[_0x43e4d6(0x200)]();if(_0x5d732a[_0x43e4d6(0x70c)]==='ok')return _0x5d732a[_0x43e4d6(0x2e6)];if(_0x5d732a[_0x43e4d6(0x70c)]===_0x43e4d6(0x2c0))throw _0x5d732a[_0x43e4d6(0x2e6)];_0x3de9f9[_0x43e4d6(0x5af)](_0x425a78,_0x5d732a);throw _0x44aab0();};}function _0x44aab0(){const _0x59f5cf=_0x3bab2b;return Object[_0x59f5cf(0x18d)](new Error(_0x59f5cf(0x6e1)),{'code':_0x59f5cf(0x516)});}class _0x122324{constructor(_0x5ee4db,_0x560301){const _0x645212=_0x3bab2b;this[_0x645212(0x11c)]=_0x5ee4db,this[_0x645212(0x331)]=_0x560301,this['events']=_0x5ee4db['events'],this['log']=_0x5ee4db['log'],this['_isOpen']=!![],this['_txnBuf']=null,this[_0x645212(0x442)]=new _0x20d4a4(this),this['processor']=new _0x44b261(this);if(!_0x560301[_0x645212(0x67b)]('~')||_0x560301[_0x645212(0x1d4)](':emb:'))this[_0x645212(0x39f)]=new _0x2d3748(this);if(!_0x560301[_0x645212(0x67b)]('~'))this[_0x645212(0x59e)]=new _0xb0640(this);this[_0x645212(0x3f8)]=new _0x52e4c5(_0x5ee4db,_0x560301),this[_0x645212(0x3f4)]=new _0x5e47c0(_0x5ee4db,_0x560301,_0x5ee4db[_0x645212(0x3f4)]),this[_0x645212(0x74a)]=new _0x448ee7(_0x5ee4db,_0x560301);if(!_0x560301[_0x645212(0x67b)]('~')&&_0x5ee4db[_0x645212(0x3d8)][_0x645212(0x464)]&&_0x1b6c1a(_0x5ee4db))this[_0x645212(0x464)]=new _0x9abff7(this);_0x310207[_0x645212(0x3e6)](this[_0x645212(0x72f)],this);const _0x36555c=this;this[_0x645212(0x1b1)]={async 'transaction'(_0x1f4cfc){const _0xd557d0=_0x645212,_0x660df2=[];_0x36555c['_txnBuf']=_0x660df2;try{_0x1f4cfc();}finally{_0x36555c[_0xd557d0(0x292)]=null;}return _0x36555c['okdb'][_0xd557d0(0x53f)][_0xd557d0(0x2e3)](_0xd557d0(0x100),_0x36555c[_0xd557d0(0x331)],_0xd557d0(0x6a6),[_0x660df2]);},'drain'(){const _0x5d751b=_0x645212;return _0x36555c[_0x5d751b(0x11c)][_0x5d751b(0x53f)][_0x5d751b(0x6bb)]();},'flushLmdb'(){const _0x3b7d94=_0x645212;return _0x36555c['okdb']['_wb'][_0x3b7d94(0x6bb)]();},'markClosed'(){}};const _0x5df98f=new _0x44d261(this,'');_0x5df98f['getStats']=()=>({'lastTxnId':this['_n'](_0x645212(0x271),[])}),Object[_0x645212(0x522)](_0x5df98f,'committed',{'get':()=>this[_0x645212(0x11c)][_0x645212(0x53f)]['drain'](),'configurable':!![]}),Object[_0x645212(0x522)](_0x5df98f,_0x645212(0x6c2),{'get':()=>this['okdb'][_0x645212(0x53f)][_0x645212(0x6bb)](),'configurable':!![]});const _0x11bf97=_0x5df98f['get'][_0x645212(0x5c9)](_0x5df98f);_0x5df98f[_0x645212(0x759)]=_0x7fc444=>_0x7fc444===_0x645212(0x685)?this['_n']('getClock',[null]):_0x11bf97(_0x7fc444),this['db']=_0x5df98f;}async[_0x3bab2b(0x7de)](){this['_closedHandle']=!![];}get[_0x3bab2b(0x6dc)](){const _0x5adba5=_0x3bab2b;return new Map(this['okdb'][_0x5adba5(0x6ad)]('db',null,_0x5adba5(0x580),[this[_0x5adba5(0x331)]],![]));}get['typesDb'](){const _0xaf15f0=_0x3bab2b;return this['_typesDb']||(this[_0xaf15f0(0x5d4)]=new _0x44d261(this,_0xaf15f0(0x46d)));}['_getType'](_0x4f8b9f){const _0x1580f2=_0x3bab2b,_0x807153=this[_0x1580f2(0x45d)][_0x1580f2(0x759)](_0x4f8b9f);if(_0x807153===undefined||String(_0x4f8b9f)['startsWith'](_0x1580f2(0x597))||String(_0x4f8b9f)[_0x1580f2(0x67b)]('__fts:')){const {OKDBError:_0x25a277}=requireErrors();throw new _0x25a277(_0x1580f2(0x726)+_0x4f8b9f+'\x22\x20is\x20not\x20registered','TYPE_NOT_REGISTERED',{'type':_0x4f8b9f});}const _0x456304=this,_0x1ac5df=new _0x44d261(_0x456304,_0x1580f2(0x383)+_0x4f8b9f+_0x1580f2(0x31b)),_0x4409b9=new Map();for(const _0x4fdc1d of _0x1ac5df[_0x1580f2(0x253)]()){const _0x40938e=_0x1ac5df[_0x1580f2(0x759)](_0x4fdc1d)||{},_0x4850c2={'parts':_0x4fdc1d[_0x1580f2(0x1b2)]('~'),'db':new _0x44d261(_0x456304,_0x1580f2(0x383)+_0x4f8b9f+':index:'+_0x4fdc1d,{'dupSort':!![]})};if(_0x40938e[_0x1580f2(0x6f3)])_0x4850c2[_0x1580f2(0x6f3)]=_0x40938e[_0x1580f2(0x6f3)];if(_0x40938e['unique'])_0x4850c2[_0x1580f2(0x621)]=!![];if(_0x40938e[_0x1580f2(0x3f1)])_0x4850c2[_0x1580f2(0x3f1)]=_0x40938e[_0x1580f2(0x3f1)];_0x4850c2[_0x1580f2(0x532)]=new Set((_0x40938e[_0x1580f2(0x532)]??[])[_0x1580f2(0x3e7)](_0x2b27f6=>_0x2b27f6[_0x1580f2(0x6a7)]+':'+_0x2b27f6[_0x1580f2(0x331)])),_0x4409b9[_0x1580f2(0x5af)](_0x4fdc1d,_0x4850c2);}return{'root':new _0x44d261(_0x456304,_0x1580f2(0x383)+_0x4f8b9f),'data':new _0x44d261(_0x456304,_0x1580f2(0x383)+_0x4f8b9f+_0x1580f2(0x2ee),{'useVersions':!![]}),'indexes':_0x1ac5df,'clockToChange':new _0x44d261(_0x456304,_0x1580f2(0x383)+_0x4f8b9f+':clockToChange'),'keyToChange':new _0x44d261(_0x456304,_0x1580f2(0x383)+_0x4f8b9f+':keyToChange'),'fieldSchema':new Map(Object['entries'](_0x807153[_0x1580f2(0x102)]||{})[_0x1580f2(0x3e7)](([_0x2e29cc,_0x329dbf])=>[_0x2e29cc,new Set(Array[_0x1580f2(0x470)](_0x329dbf)?_0x329dbf:[_0x329dbf])])),'indexToDb':_0x4409b9,'ftsToDb':null,'schema':_0x807153['schema']||null,'defaultTTL':_0x807153['defaultTTL']||null};}get['typeSubDbs'](){const _0x1f6bc6=_0x3bab2b,_0x56d6c2=this,_0x585b4b=()=>_0x56d6c2['listTypes']();return{'get':_0xe36395=>{const _0x416006=_0x5df8;try{return _0x56d6c2[_0x416006(0xfc)](_0xe36395);}catch{return undefined;}},'has':_0x5d4fda=>_0x585b4b()[_0x1f6bc6(0x1d4)](_0x5d4fda),'keys':()=>_0x585b4b()[Symbol[_0x1f6bc6(0x527)]](),get 'size'(){const _0x4be7eb=_0x1f6bc6;return _0x585b4b()[_0x4be7eb(0x306)];}};}[_0x3bab2b(0x4fc)](){return this['listTypes']();}get[_0x3bab2b(0x728)](){const _0x132cd5=_0x3bab2b;return this[_0x132cd5(0x735)]||(this[_0x132cd5(0x735)]=new _0x44d261(this,'changes'));}get[_0x3bab2b(0x232)](){const _0x311ac7=_0x3bab2b;return this['_clockToChangeDb']||(this[_0x311ac7(0x63d)]=new _0x44d261(this,'clocks'));}[_0x3bab2b(0x4c2)](_0x4de538){const _0x4ad26e=_0x3bab2b;return this['_n'](_0x4ad26e(0x134),[_0x4de538]);}get['_noChangelog'](){const _0x337be7=_0x3bab2b;return!this['_n'](_0x337be7(0x5a8),[],![]);}get[_0x3bab2b(0x72e)](){const _0x2fe0ec=_0x3bab2b;return this[_0x2fe0ec(0x444)]!==undefined?this[_0x2fe0ec(0x444)]:this['_n']('hasChangelog',[],![]);}set[_0x3bab2b(0x72e)](_0x1b1bad){this['__syncOverride']=_0x1b1bad;}get['compactLock'](){const _0xbd09cc=_0x3bab2b;return this[_0xbd09cc(0x3bf)]||(this['_compactLock']=new(requireLock())['NativeLock'](this[_0xbd09cc(0x11c)],_0xbd09cc(0x322),_0xbd09cc(0x678),{'ttlMs':0xea60}));}get[_0x3bab2b(0x72f)](){const _0x245dfc=_0x3bab2b;return this['_path']??(this[_0x245dfc(0x6b0)]=this['_n']('path',[]));}get['id'](){return this['_n']('id',[]);}get['role'](){const _0x1eb2bb=_0x3bab2b;return this[_0x1eb2bb(0x11c)][_0x1eb2bb(0x5f6)];}['_n'](_0x3a37d1,_0x480aa3){const _0x2192e5=_0x3bab2b;return this[_0x2192e5(0x11c)][_0x2192e5(0x6ad)](_0x2192e5(0x100),this[_0x2192e5(0x331)],_0x3a37d1,_0x480aa3,!_0x295f78[_0x2192e5(0x37b)](_0x3a37d1));}[_0x3bab2b(0x151)](_0x5724dc){return this['okdb']['_settleWrite'](_0x5724dc);}[_0x3bab2b(0x26d)](_0x2432bc,_0x34d455){const _0x226259=_0x3bab2b;if(_0x594398[_0x226259(0x37b)](_0x2432bc===_0x226259(0x64d)?_0x34d455[0x1]:_0x2432bc))return this[_0x226259(0x11c)][_0x226259(0x653)](this[_0x226259(0x331)],_0x2432bc,_0x34d455);return this['okdb'][_0x226259(0x28e)](_0x226259(0x100),this[_0x226259(0x331)],_0x2432bc,_0x34d455);}[_0x3bab2b(0x194)](_0x29cbc6={'useReadTransaction':![]}){return new(_0x141ab1())(this,_0x29cbc6);}async[_0x3bab2b(0x343)](_0x2b3120,_0x4a0b0d){const _0x72d9fc=_0x3bab2b;return _0x141ab1()[_0x72d9fc(0x446)](this,_0x2b3120,_0x4a0b0d);}[_0x3bab2b(0x364)](_0x4fb42f,_0x530f50){const _0x732153=_0x3bab2b;if(this[_0x732153(0x292)])this[_0x732153(0x292)][_0x732153(0x150)]({'action':_0x4fb42f,'args':_0x530f50});else this['_n'](_0x4fb42f,_0x530f50);}[_0x3bab2b(0x112)](_0x2c3283,_0xb453fa,_0x54c9ec,_0x25deea,_0x17ae38){const _0x59ee0b=_0x3bab2b;this[_0x59ee0b(0x364)](_0x59ee0b(0x77a),[_0xb453fa,_0x54c9ec,_0x25deea,_0x17ae38]);}[_0x3bab2b(0x654)](_0x3544f1,_0x23e027,_0x30e122,_0x112c50,_0x4d9065){const _0x5241d=_0x3bab2b;this['_low'](_0x5241d(0x5fa),[_0x23e027,_0x30e122,_0x112c50,_0x4d9065]);}[_0x3bab2b(0x123)](_0x2103a7,_0x1aae00,_0x2f4a4f,_0x268079,_0x29b2bb){const _0x464c2c=_0x3bab2b;this[_0x464c2c(0x364)](_0x464c2c(0x3bd),[_0x1aae00,_0x2f4a4f,_0x268079,_0x29b2bb]);}[_0x3bab2b(0x3b4)](_0x5aa488,_0x590275,_0x49b5e2,_0x18c9f4,_0x336cbc){const _0x386f71=_0x3bab2b;this[_0x386f71(0x364)](_0x386f71(0x160),[_0x590275,_0x49b5e2,_0x18c9f4,_0x336cbc]);}[_0x3bab2b(0x6ec)](_0x5d962e,_0x51a09d,_0x43c0e5,_0x3b26db){const _0x3e838b=_0x3bab2b;this[_0x3e838b(0x364)]('remove',[_0x51a09d,_0x43c0e5,_0x3b26db]);}['_setTTL'](_0x22aa40,_0x36bb8b,_0x319583,_0x246642){const _0x37ebac=_0x3bab2b;this['_low'](_0x37ebac(0x468),[_0x36bb8b,_0x319583,_0x246642]);}['_clearTTL'](_0x51f38f,_0x5cbf5b,_0x46cc9e){const _0x3c67ec=_0x3bab2b;this[_0x3c67ec(0x364)](_0x3c67ec(0x6cf),[_0x5cbf5b,_0x46cc9e]);}['_w'](_0x3d49df,_0x2adb09){const _0xf8894a=_0x3bab2b;return this[_0xf8894a(0x11c)][_0xf8894a(0x53f)][_0xf8894a(0x2e3)]('env',this['name'],_0x3d49df,_0x2adb09);}[_0x3bab2b(0x77a)](_0x14e430,_0x3a458f,_0x4928bf,_0x1852e4={}){const _0x213ce4=_0x3bab2b;return this['_w'](_0x213ce4(0x77a),[_0x14e430,_0x3a458f,_0x4928bf,_0x1852e4]);}[_0x3bab2b(0x5fa)](_0xa07659,_0x52cf9d,_0x3b7dee,_0x11f893={}){return this['_w']('update',[_0xa07659,_0x52cf9d,_0x3b7dee,_0x11f893]);}['patch'](_0x47e640,_0x4effbb,_0x2924a9,_0x25d5aa={}){const _0x55aed9=_0x3bab2b;return this['_w'](_0x55aed9(0x3bd),[_0x47e640,_0x4effbb,_0x2924a9,_0x25d5aa]);}[_0x3bab2b(0x160)](_0x3e7e9f,_0x162f99,_0x55b32a,_0x3e4e38={}){return this['_w']('create',[_0x3e7e9f,_0x162f99,_0x55b32a,_0x3e4e38]);}['remove'](_0x19df7f,_0x22df2d,_0x383a9e={}){const _0x406bed=_0x3bab2b;return this['_w'](_0x406bed(0x4a1),[_0x19df7f,_0x22df2d,_0x383a9e]);}['get'](_0x42c637,_0x5d2d45,_0x529aec){const _0x126e2e=_0x3bab2b;if(_0x5c1412&&typeof _0x42c637===_0x126e2e(0x677)){const _0x294467=this[_0x126e2e(0x11c)]['_getFast'](this['name'],_0x42c637,_0x5d2d45);if(_0x294467!==_0x876ada)return _0x294467===null?this['_n'](_0x126e2e(0x759),[_0x42c637,_0x5d2d45]):_0x294467;}if(_0xd86774&&(typeof _0x5d2d45===_0x126e2e(0x677)||typeof _0x5d2d45===_0x126e2e(0x682))){const _0x241765=this[_0x126e2e(0x11c)][_0x126e2e(0x4a2)](this[_0x126e2e(0x331)],_0x42c637,_0x5d2d45);if(_0x241765!==null)return _0x241765;}return this['_n'](_0x126e2e(0x759),[_0x42c637,typeof _0x5d2d45===_0x126e2e(0x5b5)?null:_0x5d2d45]);}[_0x3bab2b(0x47e)](_0x3f369,_0x5c23b4,_0x1369ec){const _0x508a1f=_0x3bab2b,_0x50e968=[_0x3f369,Array[_0x508a1f(0x470)](_0x5c23b4)&&_0x5c23b4['some'](_0x5f374c=>typeof _0x5f374c===_0x508a1f(0x5b5))?_0x5c23b4[_0x508a1f(0x3e7)](_0x1c9d5e=>typeof _0x1c9d5e==='symbol'?null:_0x1c9d5e):_0x5c23b4];return _0xd86774?this[_0x508a1f(0x11c)]['_callRows'](this[_0x508a1f(0x331)],'getMany',_0x50e968):this['_n'](_0x508a1f(0x47e),_0x50e968);}['getEntry'](_0x623186,_0x79e740,_0x589ef1){const _0x5e0c85=_0x3bab2b;return this['_n'](_0x5e0c85(0x31c),[_0x623186,typeof _0x79e740===_0x5e0c85(0x5b5)?null:_0x79e740]);}['getCount'](_0x304f05,_0x1d15df){const _0x3cb355=_0x3bab2b;return this[_0x3cb355(0x62d)](_0x3cb355(0x429),_0x1d15df),this['_n'](_0x3cb355(0x429),[_0x304f05,_0x1484ec(_0x1d15df)]);}[_0x3bab2b(0x62d)](_0x1f99fc,_0x25b6d7,_0x156251=[]){const _0x218943=_0x3bab2b;if(!_0x25b6d7||typeof _0x25b6d7!=='object')return;for(const _0x4fb3f4 of Object[_0x218943(0x2e9)](_0x25b6d7)){if(!_0x1a6d40['has'](_0x4fb3f4)&&!_0x156251[_0x218943(0x1d4)](_0x4fb3f4))throw new _0x2bfd73(_0x1f99fc+_0x218943(0x2bc)+_0x4fb3f4+'\x27',_0x218943(0x301),{'option':_0x4fb3f4});}}['_range'](_0x175e4c,_0x40c20d,_0x2122ec,_0x53a64a,_0x4e4c74,_0x3b9680){const _0x177d5f=_0x3bab2b;this[_0x177d5f(0x62d)](_0x175e4c,_0x53a64a);const _0x2be3e4=_0x53a64a?.[_0x177d5f(0x57a)],_0x2ed671=_0x1484ec(_0x53a64a);if(_0x2be3e4===!![]||_0x2be3e4===_0x177d5f(0x30e)){const _0x394df6=this['_lazyPinned'](_0x175e4c,_0x40c20d,_0x3835a1=>[_0x2122ec,{..._0x2ed671,..._0x3835a1}],_0x53a64a);return _0x3b9680?_0x394df6['map'](_0x3b9680):_0x394df6;}const _0x52ac2d=_0x4b3269(_0x3f259c=>this[_0x177d5f(0x26d)](_0x40c20d,[_0x2122ec,_0x3f259c]),_0x2ed671,_0x4e4c74,{'rows':_0x40c20d===_0x177d5f(0x501)});return _0x3b9680?_0x52ac2d[_0x177d5f(0x3e7)](_0x3b9680):_0x52ac2d;}[_0x3bab2b(0x5dd)](_0x2380a8,_0x160756,_0xa865b,_0x50d251,_0x58c460,_0x18b1f1=![]){const _0x163204=_0x3bab2b,{source:_0x5d8825,prefetch:_0x1afa52}=_0x2fed43((_0x56ab9b,_0x4b1c7a)=>_0x56ab9b===_0x163204(0x1e7)?this['_n'](_0x56ab9b,_0x4b1c7a):this[_0x163204(0x26d)](_0x56ab9b,_0x4b1c7a),_0x160756,_0xa865b,_0x50d251||{},_0x58c460),_0x35d908=_0x1afa52(),_0x13b765=!_0x18b1f1&&_0x50d251&&_0x50d251[_0x163204(0x57a)]===_0x163204(0x30e);let _0x2f4c51=null;return _0x1d39a6(()=>({[Symbol['iterator']]:()=>_0x2f4c51=_0x5d8825(0x0,_0x307801(_0x35d908))}),{'label':this[_0x163204(0x331)]+':'+_0x2380a8,..._0x13b765?{'getTxnId':()=>this['db'][_0x163204(0x465)]()[_0x163204(0x271)],'resume':()=>({[Symbol[_0x163204(0x527)]]:()=>_0x2f4c51=_0x2f4c51[_0x163204(0x1df)]()})}:{}});}['getRange'](_0x5e775e,_0x5c6070){const _0x5cb84b=_0x3bab2b;return this[_0x5cb84b(0x767)](_0x5cb84b(0x501),'getRange',_0x5e775e,_0x5c6070,_0x55667=>_0x55667[_0x5cb84b(0xfb)]);}[_0x3bab2b(0x253)](_0x58c447,_0x109744){const _0xdffb07=_0x3bab2b;return this['_range'](_0xdffb07(0x253),_0xdffb07(0x253),_0x58c447,_0x109744,_0x413e56=>_0x413e56);}[_0x3bab2b(0x3c6)](_0x4efb87,_0x2d819f){const _0x41279f=_0x3bab2b;return this[_0x41279f(0x767)]('getValues',_0x41279f(0x501),_0x4efb87,_0x2d819f,_0x5f57ab=>_0x5f57ab['key'],_0x486d83=>_0x486d83[_0x41279f(0x2e6)]);}[_0x3bab2b(0x4cc)](_0x2f581a,_0x1ca595,_0x56098a={}){const _0x1a12d4=_0x3bab2b;return this[_0x1a12d4(0x501)](_0x2f581a,{'start':_0x1ca595,'end':_0x1ca595+'￿',..._0x56098a});}[_0x3bab2b(0x49f)](_0x4e6528,_0x190e10,_0x46d31e={}){const _0x366386=_0x3bab2b;this[_0x366386(0x62d)](_0x366386(0x49f),_0x46d31e,[_0x366386(0x4f2)]);const _0x31abdc=_0x1484ec(_0x46d31e);if(_0x46d31e&&_0x46d31e['transaction'])return _0x34ba8c(this['_n'](_0x366386(0x49f),[_0x4e6528,_0x190e10,_0x31abdc]));return this[_0x366386(0x5dd)](_0x366386(0x49f),_0x366386(0x49f),_0x56fac4=>[_0x4e6528,_0x190e10,{..._0x31abdc,..._0x56fac4}],_0x46d31e,undefined,!![]);}[_0x3bab2b(0x1ae)](_0x49640a,_0x4e3ff9,_0x2c571d){const _0x246394=_0x3bab2b;this[_0x246394(0x62d)](_0x246394(0x1ae),_0x2c571d,['prefix',_0x246394(0x312)]);const _0x5e22d9=_0x1484ec(_0x2c571d);if(_0x2c571d&&_0x2c571d[_0x246394(0x194)])return _0x34ba8c(this['_n'](_0x246394(0x1ae),[_0x49640a,_0x4e3ff9,_0x5e22d9]));return this[_0x246394(0x5dd)](_0x246394(0x1ae),_0x246394(0x1ae),_0x92c0b3=>[_0x49640a,_0x4e3ff9,{..._0x5e22d9,..._0x92c0b3}],_0x2c571d,undefined,!![]);}[_0x3bab2b(0x78f)](_0x4107c2,_0x1b3355,_0x4a022e={}){const _0x26cad4=_0x3bab2b;return this['_n'](_0x26cad4(0x78f),[_0x4107c2,_0x1b3355,_0x1484ec(_0x4a022e)]);}[_0x3bab2b(0x187)](_0x2b040d,_0x119461={},_0x4212d6={}){const _0x320fbc=_0x3bab2b;if(_0x4212d6[_0x320fbc(0x248)]||_0x4212d6[_0x320fbc(0x73e)])return this['_hybridQuery'](_0x2b040d,_0x119461,_0x4212d6);const _0x5c62b2=_0x34495d(_0x4212d6),_0xb46c2c=typeof _0x4212d6[_0x320fbc(0x4c7)]==='function'?_0x4212d6[_0x320fbc(0x4c7)]:null;if(_0x4212d6[_0x320fbc(0x47f)]||_0x44c32e(_0x119461)||_0x4212d6['transaction']!==undefined){let _0x54641a=this['_n']('query',[_0x2b040d,_0x119461,_0x5c62b2]);if(_0xb46c2c)_0x54641a=_0x54641a['map'](_0xb46c2c);if(_0x4212d6['near']||_0x44c32e(_0x119461))return _0x54641a;return _0x34ba8c(_0x54641a);}const _0x4cdde4=_0x237986=>typeof _0x237986===_0x320fbc(0x682)&&Number[_0x320fbc(0x1a5)](_0x237986)?Math[_0x320fbc(0x1fa)](0x0,_0x237986):Infinity;let _0x189d43;if(_0x4212d6[_0x320fbc(0x760)]){const _0x455aaa=_0x3c7f1e=>typeof _0x3c7f1e===_0x320fbc(0x682)&&_0x3c7f1e>0x0?Math[_0x320fbc(0x4f9)](_0x3c7f1e):0x0;_0x189d43=this[_0x320fbc(0x5dd)](_0x320fbc(0x187),'query',_0x530a0d=>[_0x2b040d,_0x119461,{..._0x5c62b2,..._0x530a0d}],null,{'limitOf':()=>_0x4cdde4(_0x5c62b2[_0x320fbc(0x376)]),'offsetOf':()=>_0x455aaa(_0x5c62b2[_0x320fbc(0x7e6)])});}else _0x189d43=_0x4b3269(_0x49b6a3=>{const {__after:_0x31c4c6,..._0x2f31f8}=_0x49b6a3;return this['_np']('query',_0x31c4c6===undefined?[_0x2b040d,_0x119461,_0x2f31f8]:[_0x2b040d,_0x119461,_0x2f31f8,_0x31c4c6]);},_0x5c62b2,_0x2b6f95=>_0x2b6f95[_0x320fbc(0xfb)],{'limitOf':_0x4cdde4,'rows':!![],'prefetch':!![],'resumeOpts':(_0x539a27,_0x33b61e)=>{const _0x1a6a74=_0x320fbc;_0x539a27[_0x1a6a74(0x7e6)]=0x0,_0x539a27[_0x1a6a74(0x779)]=_0x33b61e;}});return _0xb46c2c?_0x189d43[_0x320fbc(0x3e7)](_0xb46c2c):_0x189d43;}async[_0x3bab2b(0x626)](_0xf41ed1,_0x4da5a0,_0x261ff9){const _0x22ed5b=_0x3bab2b,{select:_0x3701dc,..._0x5c7692}=_0x34495d(_0x261ff9);let _0x44e9a3={..._0x5c7692};const _0x5a2946=_0x44e9a3[_0x22ed5b(0x760)];if(_0x5a2946&&!Array[_0x22ed5b(0x470)](_0x5a2946)&&typeof _0x5a2946===_0x22ed5b(0x218)&&_0x5a2946[_0x22ed5b(0x102)]){const {fields:_0x2dacac,prefix:_0x3e428c,start:_0x171534,end:_0x8fcb7}=_0x5a2946;_0x44e9a3={..._0x44e9a3,'index':_0x2dacac,'prefix':_0x3e428c??_0x44e9a3[_0x22ed5b(0x4f2)],'startIndex':_0x171534??_0x44e9a3[_0x22ed5b(0x18f)],'endIndex':_0x8fcb7??_0x44e9a3[_0x22ed5b(0x135)]};}const _0x38de5c=await this[_0x22ed5b(0x11c)][_0x22ed5b(0x5cd)](_0x22ed5b(0x652),null,_0x22ed5b(0x1ac),[this['name'],_0xf41ed1,_0x4da5a0,_0x44e9a3],![]),_0x1b67dc=typeof _0x261ff9['select']===_0x22ed5b(0x1ea)?_0x261ff9[_0x22ed5b(0x4c7)]:null;if(!_0x1b67dc)return _0x38de5c;return _0x38de5c['map'](_0x5e82f8=>{const {score:_0x5901d3,ftsScore:_0x3f31d4,numTerms:_0x4dac10,maxScore:_0x5d6d40,vectorScore:_0x436357,chunkHash:_0x1695c1,chunk:_0x14dee7,..._0x5da118}=_0x5e82f8,_0xed3f06=_0x1b67dc(_0x5da118);for(const [_0x25265f,_0x31c3c1]of Object['entries']({'score':_0x5901d3,'ftsScore':_0x3f31d4,'numTerms':_0x4dac10,'maxScore':_0x5d6d40,'vectorScore':_0x436357,'chunkHash':_0x1695c1,'chunk':_0x14dee7}))if(_0x31c3c1!==undefined)_0xed3f06[_0x25265f]=_0x31c3c1;return _0xed3f06;});}[_0x3bab2b(0x789)](_0x1121f5,_0x52d75b,_0x54ab56={}){const _0x4bd7a4=_0x3bab2b;let _0x14f2c9=this['_n'](_0x4bd7a4(0x789),[_0x1121f5,_0x52d75b,_0x34495d(_0x54ab56)]);if(typeof _0x54ab56[_0x4bd7a4(0x4c7)]===_0x4bd7a4(0x1ea))_0x14f2c9=_0x14f2c9[_0x4bd7a4(0x3e7)](_0x54ab56[_0x4bd7a4(0x4c7)]);return _0x14f2c9;}['getClock'](_0x1d2f5e=null,_0x5ef6b5={}){const _0x10c9a0=_0x3bab2b;return this['_n'](_0x10c9a0(0x4c5),[_0x1d2f5e]);}['getChanges'](_0x2fcc15=null,_0xb3f580=0x0,_0x3bd223=Number[_0x3bab2b(0x5a9)],_0x40da6a={}){const _0x4d84ac=_0x3bab2b,_0x1765e8=_0x1484ec(_0x40da6a);if(_0x40da6a&&_0x40da6a[_0x4d84ac(0x194)])return _0x34ba8c(this['_n'](_0x4d84ac(0x591),[_0x2fcc15,_0xb3f580,_0x3bd223,_0x1765e8]));return this[_0x4d84ac(0x5dd)]('getChanges',_0x4d84ac(0x591),_0x454329=>[_0x2fcc15,_0xb3f580,_0x3bd223,{..._0x1765e8,..._0x454329}],_0x40da6a);}[_0x3bab2b(0x4e5)](_0x5ef3e3){const _0x442825=_0x3bab2b;if(Array[_0x442825(0x470)](_0x5ef3e3))return _0x5ef3e3['length'];let _0x4c91a9=0x0;for(const _0x392cd4 of _0x5ef3e3)_0x4c91a9++;return _0x4c91a9;}*[_0x3bab2b(0x348)](_0x5cf073){yield*_0x5cf073;}['now'](){const _0x1aeed7=_0x3bab2b;return requireOkdbHlc()[_0x1aeed7(0x5c6)](this[_0x1aeed7(0x5df)]);}get[_0x3bab2b(0x27a)](){const _0x3ecaa7=_0x3bab2b,_0x189d36=this[_0x3ecaa7(0x11c)][_0x3ecaa7(0x34c)]?this[_0x3ecaa7(0x11c)]['_call']('db',null,_0x3ecaa7(0x2d5),[this['name']],![]):null;if(!_0x189d36)return null;if(this[_0x3ecaa7(0x7b4)]===_0x189d36['gen'])return null;this[_0x3ecaa7(0x549)]=this[_0x3ecaa7(0x549)]||new Map();let _0x2a18d9=this['_timerObjs']['get'](_0x189d36['gen']);if(!_0x2a18d9){const _0x29a18a=this;_0x2a18d9={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x189d36[_0x3ecaa7(0x3b5)],'at':_0x189d36['at'],'target':_0x189d36[_0x3ecaa7(0x1c6)],get '_destroyed'(){const _0x306c77=_0x3ecaa7,_0x8869c7=_0x29a18a[_0x306c77(0x11c)][_0x306c77(0x34c)]?_0x29a18a[_0x306c77(0x11c)][_0x306c77(0x6ad)]('db',null,_0x306c77(0x2d5),[_0x29a18a[_0x306c77(0x331)]],![]):null;return!_0x8869c7||_0x8869c7[_0x306c77(0x3b5)]!==this['gen']||_0x29a18a['__ttlCancelledGen']===this[_0x306c77(0x3b5)];}},this[_0x3ecaa7(0x549)][_0x3ecaa7(0x5af)](_0x189d36['gen'],_0x2a18d9);}return _0x2a18d9;}['_cancelTTLTimeout'](){const _0x2ea252=_0x3bab2b,_0x50ee2f=this['okdb'][_0x2ea252(0x6ad)]('db',null,_0x2ea252(0x2d5),[this[_0x2ea252(0x331)]],![]);if(_0x50ee2f)this[_0x2ea252(0x7b4)]=_0x50ee2f[_0x2ea252(0x3b5)];}get['_ttlTimerAt'](){const _0x33abde=_0x3bab2b,_0x327eb3=this[_0x33abde(0x11c)][_0x33abde(0x6ad)]('db',null,_0x33abde(0x2d5),[this[_0x33abde(0x331)]],![]);return _0x327eb3?_0x327eb3['target']:null;}get[_0x3bab2b(0x61b)](){const _0xfc1ee2=_0x3bab2b;return this[_0xfc1ee2(0x11c)]['_call']('db',null,_0xfc1ee2(0x457),[this['name']],![])?{'ref'(){},'unref'(){}}:null;}[_0x3bab2b(0x11e)](){const _0x579c36=_0x3bab2b;this[_0x579c36(0x11c)][_0x579c36(0x6ad)]('db',null,_0x579c36(0x1b5),[this[_0x579c36(0x331)]],![]);}['_stopAutoCompactCheck'](){const _0xd90279=_0x3bab2b;this[_0xd90279(0x11c)]['_call']('db',null,'stopAutoCompactCheck',[this['name']],![]);}get['_autoCompact'](){const _0x4daa49=_0x3bab2b,_0x502055=(_0x4078ed,_0x13158e)=>this[_0x4daa49(0x11c)][_0x4daa49(0x6ad)]('db',null,_0x4078ed,[this[_0x4daa49(0x331)],..._0x13158e],![]),_0x1520b7=Object[_0x4daa49(0x2e9)](_0x502055(_0x4daa49(0x155),[])||{}),_0x5d92a5={};for(const _0x523916 of _0x1520b7)Object[_0x4daa49(0x522)](_0x5d92a5,_0x523916,{'enumerable':!![],'get':()=>_0x502055(_0x4daa49(0x155),[])?.[_0x523916],'set':_0x25d24d=>{const _0x3aa742=_0x4daa49;_0x502055(_0x3aa742(0x568),[_0x523916,_0x25d24d]);}});return _0x5d92a5;}get[_0x3bab2b(0x5df)](){const _0x3d51ca=_0x3bab2b;return this['_n'](_0x3d51ca(0x543),[]);}[_0x3bab2b(0x553)](_0x1b1dc0,_0x8e8c77){return require$$16['isDeepStrictEqual'](_0x1b1dc0,_0x8e8c77);}async[_0x3bab2b(0x5c1)](_0x7e5d4f,_0x433585){const _0x1a5cc2=_0x3bab2b;return this[_0x1a5cc2(0x151)](this['_n'](_0x1a5cc2(0x5c1),[_0x7e5d4f]));}['hasType'](_0x2b34f7){const _0x476cb4=_0x3bab2b;return this['_n'](_0x476cb4(0x4db),[_0x2b34f7]);}['listTypes'](){const _0x5a4bcc=_0x3bab2b;return this['_n'](_0x5a4bcc(0x5bc),[]);}async['dropType'](_0x4d9cd6,_0x557e19){const _0x63b1ce=_0x3bab2b;return this[_0x63b1ce(0x151)](this['_n'](_0x63b1ce(0x20a),[_0x4d9cd6]));}async[_0x3bab2b(0x2e7)](_0x126267,_0x149339){const _0x29b457=_0x3bab2b,{timestamp:_0x2ef8a7,indexes:indexes=[]}=_0x5ec000(_0x149339);return this[_0x29b457(0x151)](this['_n'](_0x29b457(0x2e7),[_0x126267,{'indexes':indexes}]));}async[_0x3bab2b(0x27e)](_0x2a6c35){const _0x1a70ee=_0x3bab2b,{type:_0x1344b1,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x5ec000(_0x2a6c35,_0x1a70ee(0x485));if(!_0x1344b1)throw new Error(_0x1a70ee(0x609));await this['ensureType'](_0x1344b1,{'indexes':indexes});for(const _0x501a3f of fts){const {name:_0xe20b8e,fields:_0x421f93,..._0x1a0355}=_0x501a3f;if(!_0xe20b8e||!_0x421f93)throw new Error(_0x1a70ee(0x172));await this[_0x1a70ee(0x11c)][_0x1a70ee(0x248)][_0x1a70ee(0x27e)](_0x1344b1,_0xe20b8e,{'fields':_0x421f93,..._0x1a0355},this);}for(const _0x2ef1ac of views){const {name:_0x3fa29e,definition:_0x4e6b4c}=_0x2ef1ac;if(!_0x3fa29e||!_0x4e6b4c)throw new Error(_0x1a70ee(0x425));if(!await this[_0x1a70ee(0x442)][_0x1a70ee(0x4a7)](_0x3fa29e))await this['views'][_0x1a70ee(0x160)](_0x3fa29e,_0x4e6b4c);}if(schema)await this['setSchema'](_0x1344b1,schema);}async[_0x3bab2b(0x7f1)](_0x18e590,_0x3cb726,_0x50a223){const _0x2e63fc=_0x3bab2b,_0x414f95=this['_n'](_0x2e63fc(0x600),[_0x18e590,_0x3cb726,typeof _0x50a223===_0x2e63fc(0x218)?_0x50a223:{}]);if(!_0x414f95)return this[_0x2e63fc(0x151)](undefined);const _0x4985df=this['_n'](_0x2e63fc(0x694),[_0x18e590,_0x3cb726,!![]]);if(_0x4985df===undefined)return this['_wsettle'](undefined);return this[_0x2e63fc(0x151)](await this[_0x2e63fc(0x23a)](_0x18e590,_0x3cb726,_0x4985df));}async[_0x3bab2b(0x23a)](_0x2a1eee,_0x2e5d3b,_0x3bfca5){const _0x412665=_0x3bab2b,_0x3653f4=_0x2a1eee+'@'+[][_0x412665(0x4d6)](_0x2e5d3b)['join']('~');if(!this[_0x412665(0x73b)])this[_0x412665(0x73b)]=new Map();const _0x1080d0=this[_0x412665(0x73b)][_0x412665(0x759)](_0x3653f4);if(_0x1080d0)return _0x1080d0;const _0x1b585b=((async()=>{const _0x362f47=_0x412665;do await new Promise(_0x185684=>setImmediate(_0x185684));while(!this['_n'](_0x362f47(0x696),[_0x2a1eee,_0x2e5d3b,_0x3bfca5,!![]]));})());this[_0x412665(0x73b)][_0x412665(0x5af)](_0x3653f4,_0x1b585b);try{return await _0x1b585b;}finally{this[_0x412665(0x73b)][_0x412665(0x5cb)](_0x3653f4);}}async[_0x3bab2b(0x78a)](_0x13f48f,_0x3edec2,_0x1a9ca8){return this['_wsettle'](this['_n']('dropIndex',[_0x13f48f,_0x3edec2]));}async[_0x3bab2b(0x217)](_0x358b52,_0xc208cc,_0x2decae){const _0xa9f86b=_0x3bab2b,_0x314392=this[_0xa9f86b(0x73b)]&&this[_0xa9f86b(0x73b)][_0xa9f86b(0x759)](_0x358b52+'@'+[][_0xa9f86b(0x4d6)](_0xc208cc)['join']('~'));if(_0x314392)return _0x314392;const _0xd4282f=this['_n']('resetIndexBegin',[_0x358b52,_0xc208cc,_0x2decae]);if(_0xd4282f===undefined)return;return await new Promise(_0x149da1=>setImmediate(_0x149da1)),this[_0xa9f86b(0x151)](await this[_0xa9f86b(0x23a)](_0x358b52,_0xc208cc,_0xd4282f));}[_0x3bab2b(0x207)](_0x279d19,_0x398f30){const _0x362a6f=_0x3bab2b;return this['_n'](_0x362a6f(0x207),[_0x279d19,_0x398f30]);}[_0x3bab2b(0x76a)](_0x164ad0,_0x5a23e6){const _0x213929=_0x3bab2b;return this['_n'](_0x213929(0x76a),[_0x164ad0,_0x5a23e6]);}async[_0x3bab2b(0x21d)](_0x4ddee1,_0x41e03f){const _0x29dd4e=_0x3bab2b;if(this['_n'](_0x29dd4e(0x76a),[_0x4ddee1,_0x41e03f])==='ready')return!![];let _0x42090f=0xa;for(;;){await new Promise(_0x19245e=>setTimeout(_0x19245e,_0x42090f));if(!this['okdb'][_0x29dd4e(0x34c)]||this[_0x29dd4e(0x310)])return![];let _0x501bc6;try{_0x501bc6=this['_n'](_0x29dd4e(0x32e),[_0x4ddee1,Array[_0x29dd4e(0x470)](_0x41e03f)?_0x41e03f['join']('~'):String(_0x41e03f)[_0x29dd4e(0x1b2)](',')[_0x29dd4e(0x78e)]('~')]);}catch{return![];}const _0x180cf7=_0x501bc6&&_0x501bc6['status'];if(_0x180cf7===_0x29dd4e(0x35f))return!![];if(_0x180cf7===undefined)return![];_0x42090f=Math['min'](_0x42090f*0x2,0xfa);}}[_0x3bab2b(0x32e)](_0x1d633c,_0x4da994){const _0xd9a5ad=_0x3bab2b;return this['_n'](_0xd9a5ad(0x32e),[_0x1d633c,_0x4da994])??null;}[_0x3bab2b(0x507)](_0x301238,_0x28b04f){return this['_n']('getUniqueViolations',[_0x301238,_0x28b04f]);}[_0x3bab2b(0x3ca)](_0x4430e5,_0x1617fc){const _0x1a16aa=_0x3bab2b;return this['_n'](_0x1a16aa(0x3ca),[_0x4430e5,_0x1617fc]);}[_0x3bab2b(0x79f)](_0x46ccc3,_0x29fbea,_0x237657){return this['_n']('getUniqueViolation',[_0x46ccc3,_0x29fbea,_0x237657])??null;}['getSchema'](_0x5c6d05){const _0x12a21a=_0x3bab2b;return this['_n'](_0x12a21a(0x640),[_0x5c6d05])??null;}async['setSchema'](_0x2860c2,_0x177793){const _0x7dbf37=_0x3bab2b;return this['_wsettle'](this['_n'](_0x7dbf37(0x7a6),[_0x2860c2,_0x177793]));}async[_0x3bab2b(0x409)](_0x408bcc){const _0x1b98ec=_0x3bab2b;return this['_wsettle'](this['_n'](_0x1b98ec(0x409),[_0x408bcc]));}[_0x3bab2b(0xe4)](_0x11bc0e,_0x29029e){const _0x3ade38=_0x3bab2b;return this['_n'](_0x3ade38(0xe4),[_0x11bc0e,_0x29029e])??null;}[_0x3bab2b(0x436)](_0x1e8980){const _0x59f720=_0x3bab2b;return this['_n'](_0x59f720(0x436),[_0x1e8980]);}[_0x3bab2b(0x639)](_0x5439cb,_0x1ced12,_0x54fdfc){const _0x2d91f9=_0x3bab2b;return this['_n'](_0x2d91f9(0x639),[_0x5439cb,_0x1ced12,_0x54fdfc])??null;}[_0x3bab2b(0x2f6)](_0x5b9224){const _0x102676=_0x3bab2b;return this['_n'](_0x102676(0x2f6),[_0x5b9224]);}async[_0x3bab2b(0x468)](_0x41ba6d,_0x5f5778,_0x2f6e08){const _0x59976d=_0x3bab2b;return this[_0x59976d(0x151)](this['_n']('setTTL',[_0x41ba6d,_0x5f5778,_0x2f6e08]));}['getTTL'](_0x2137b7,_0x368db2){const _0x4aa396=_0x3bab2b;return this['_n'](_0x4aa396(0x6a9),[_0x2137b7,_0x368db2]);}async['clearTTL'](_0x56779b,_0x2419fc){const _0x10f377=_0x3bab2b;return this['_wsettle'](this['_n'](_0x10f377(0x6cf),[_0x56779b,_0x2419fc]));}async[_0x3bab2b(0x372)](_0x2c0ef5){const _0x1b0bb4=_0x3bab2b;return this['_n'](_0x1b0bb4(0x372),[_0x2c0ef5]);}[_0x3bab2b(0x299)](_0x39938e={}){const _0x3d2c8e=_0x3bab2b;return this['_n'](_0x3d2c8e(0x299),[_0x39938e]);}[_0x3bab2b(0x703)](_0x418eb4){const _0x3789c9=_0x3bab2b;return this['_n'](_0x3789c9(0x703),[_0x418eb4]);}async[_0x3bab2b(0x245)](_0x2cc20e,_0x230c21){const _0x5323f3=_0x3bab2b;return this[_0x5323f3(0x151)](this['_n'](_0x5323f3(0x245),[_0x2cc20e,_0x230c21]));}[_0x3bab2b(0x341)](_0x330b86){const _0x55f391=_0x3bab2b;return this['_n'](_0x55f391(0x341),[_0x330b86]);}async[_0x3bab2b(0x2af)](_0x34e262){const _0xe0094d=_0x3bab2b;return this['_wsettle'](this['_n'](_0xe0094d(0x2af),[_0x34e262]));}async[_0x3bab2b(0x374)](_0xa90cc3,_0x20e3dd,_0x42e845,_0xeeb24e){const _0x199e30=_0x3bab2b,{batch:batch=null,batchSize:_0x52f361}=_0x5ec000(_0xeeb24e);if(typeof _0xa90cc3!==_0x199e30(0x677)||!_0xa90cc3)throw new _0x2bfd73(_0x199e30(0x5f2),_0x199e30(0x3a9));if(typeof _0x20e3dd!==_0x199e30(0x677)||!_0x20e3dd)throw new _0x2bfd73(_0x199e30(0x283),_0x199e30(0x3a9));if(_0x42e845!=null&&typeof _0x42e845!==_0x199e30(0x1ea))throw new _0x2bfd73(_0x199e30(0x1bc),_0x199e30(0x3a9));if(batch!=null&&typeof batch!==_0x199e30(0x1ea))throw new _0x2bfd73(_0x199e30(0x645),_0x199e30(0x3a9));if(!_0x42e845&&!batch)throw new _0x2bfd73(_0x199e30(0x711),_0x199e30(0x3a9));if(_0x52f361!==undefined&&!(Number['isInteger'](_0x52f361)&&_0x52f361>0x0))throw new _0x2bfd73(_0x199e30(0x70b),'BAD_PARAM');const _0x59f59d=batch?async _0x12e22f=>(await batch(_0x12e22f))[_0x199e30(0x3e7)](_0x1f0583=>_0x1f0583 instanceof Error?{'__error':!![],'message':_0x1f0583[_0x199e30(0x3f9)]}:_0x1f0583):null,_0x132acd=_0x473307(this,_0xa90cc3,_0x20e3dd),_0x3ecab6=this['_n'](_0x199e30(0x374),[_0xa90cc3,_0x20e3dd,_0x42e845?(_0x5eaae4,_0xd92aac)=>_0x132acd(_0x42e845,[_0x5eaae4,_0xd92aac]):null,{'batch':_0x59f59d?_0x176d3f=>_0x132acd(_0x59f59d,[_0x176d3f]):null,'batchSize':_0x52f361}]);return()=>this['_n'](_0x199e30(0x51c),[_0x3ecab6]);}async[_0x3bab2b(0x42a)](_0xcfab7b,_0x55d6e6){const _0x30ff79=_0x3bab2b;return this['_n'](_0x30ff79(0x42a),[_0xcfab7b,_0x55d6e6]);}[_0x3bab2b(0x5a0)](_0x4853e7){const _0x32c079=_0x3bab2b;return this['_n'](_0x32c079(0x5a0),[_0x4853e7]);}async['readField'](_0x56feac,_0x2fc841,_0x2ac8f8,_0x3fee0c){const _0x12b3c5=_0x3bab2b;return this[_0x12b3c5(0x11c)][_0x12b3c5(0x5cd)](_0x12b3c5(0x100),this[_0x12b3c5(0x331)],_0x12b3c5(0x3bc),[_0x56feac,_0x2fc841,_0x2ac8f8,_0x3fee0c],![]);}async[_0x3bab2b(0x6f9)](_0x3e9ec2,_0x57d674,_0x5a7451){const _0x3e1d03=_0x3bab2b;return this[_0x3e1d03(0x11c)]['_callMacro']('env',this[_0x3e1d03(0x331)],_0x3e1d03(0x6f9),[_0x3e9ec2,_0x57d674,_0x5a7451],![]);}[_0x3bab2b(0x182)](){}[_0x3bab2b(0x352)](_0x43482b,_0x1703c5,_0x582a9f,_0x15a5dc={},_0x5910e7={}){const _0x246692=_0x3bab2b;return this['okdb'][_0x246692(0x6ad)]('fts',null,_0x246692(0x352),[_0x43482b,_0x1703c5,_0x582a9f,_0x15a5dc,_0x5910e7,this['name']],![]);}get[_0x3bab2b(0x248)](){const _0x4239ef=_0x3bab2b;return this['okdb'][_0x4239ef(0x248)];}[_0x3bab2b(0x3a4)](){const _0x45c227=_0x3bab2b;return this[_0x45c227(0x11c)][_0x45c227(0x6ad)]('env',this[_0x45c227(0x331)],'getResolvedOptions',[],![]);}[_0x3bab2b(0x52d)](){const _0x5632ad=_0x3bab2b;return this[_0x5632ad(0x11c)][_0x5632ad(0x52d)]();}[_0x3bab2b(0x5a7)](){const _0x5cc5cf=_0x3bab2b;return this[_0x5cc5cf(0x11c)][_0x5cc5cf(0x6ad)](_0x5cc5cf(0x100),this[_0x5cc5cf(0x331)],_0x5cc5cf(0x5a7),[],![]);}['refreshReadTxn'](){}get['locks'](){const _0x876164=_0x3bab2b;return this[_0x876164(0x215)]||(this[_0x876164(0x215)]=new(requireLock())[(_0x876164(0x1e0))](this['okdb'],this[_0x876164(0x331)],_0x876164(0x100)));}[_0x3bab2b(0x2d2)](){const _0x108a67=_0x3bab2b;return this[_0x108a67(0x11c)][_0x108a67(0x6ad)](_0x108a67(0x100),this[_0x108a67(0x331)],'storageStats',[],![]);}['_registerType'](_0x5cf188){const _0x2b4059=_0x3bab2b;this['_n'](_0x2b4059(0x5c1),[_0x5cf188]);}['_logChange'](_0x418f68){const _0x20e34b=_0x3bab2b;this['_n'](_0x20e34b(0x66a),[_0x418f68]);}['_ttlState'](){const _0x287107=_0x3bab2b;return this['_n'](_0x287107(0x2f5),[]);}[_0x3bab2b(0x2a7)](_0x28f2a8,_0x5b7d40){return _0x28f2a8+'\x09'+_0x5b7d40;}['_ttlParseComposite'](_0x14d237){const _0x301b61=_0x3bab2b,_0x808098=_0x14d237[_0x301b61(0x601)]('\x09');return{'type':_0x14d237[_0x301b61(0x101)](0x0,_0x808098),'key':_0x14d237[_0x301b61(0x101)](_0x808098+0x1)};}get[_0x3bab2b(0x205)](){const _0x45efa5=_0x3bab2b;if(!this['_ttlState']()['enabled'])return null;return this[_0x45efa5(0x3a6)]||(this['__ttlByKey']=new _0x44d261(this,_0x45efa5(0x6ff)));}get['_ttlByExpiry'](){const _0x1f86c7=_0x3bab2b;if(!this[_0x1f86c7(0x475)]()['enabled'])return null;return this[_0x1f86c7(0x1a2)]||(this[_0x1f86c7(0x1a2)]=new _0x44d261(this,_0x1f86c7(0x437),{'dupSort':!![]}));}['_setTTLEntry'](_0x43c92e,_0x40e08c,_0x48a3ea){this['_n']('ttlSetEntry',[_0x43c92e,_0x40e08c,_0x48a3ea]);}[_0x3bab2b(0x18b)](_0xc7b698,_0x1d9a97){const _0x2a98ad=_0x3bab2b,_0x5096f2=this[_0x2a98ad(0x205)]?.[_0x2a98ad(0x759)](this[_0x2a98ad(0x2a7)](_0xc7b698,_0x1d9a97));return _0x5096f2!=null&&_0x5096f2<=Date[_0x2a98ad(0x466)]();}get[_0x3bab2b(0x3cf)](){const _0x459bb0=_0x3bab2b;return this[_0x459bb0(0x475)]()[_0x459bb0(0x26b)]??null;}get['_ttlBackoffUntil'](){const _0x14989b=_0x3bab2b;return this[_0x14989b(0x475)]()['backoffUntil']||0x0;}get[_0x3bab2b(0x1f3)](){return![];}[_0x3bab2b(0x349)](){}async[_0x3bab2b(0xf8)](_0x5e7eb0,_0x18cefe){const _0xb81a6a=_0x3bab2b;if(this['_rebuilding']){const {OKDBError:_0x209e00}=requireErrors();throw new _0x209e00(_0xb81a6a(0x35b),_0xb81a6a(0x4fb));}this['_rebuilding']=!![];try{return await this[_0xb81a6a(0x11c)][_0xb81a6a(0x5cd)](_0xb81a6a(0x100),this['name'],_0x5e7eb0,[_0x18cefe],!![]);}finally{this['_rebuilding']=![];}}async[_0x3bab2b(0x678)](_0x2a00b4={}){const _0x155c2c=_0x3bab2b;return this['_rebuild'](_0x155c2c(0x678),_0x2a00b4);}async[_0x3bab2b(0x13d)](_0x1455a7={}){const _0x30012f=_0x3bab2b;return this[_0x30012f(0xf8)]('repair',_0x1455a7);}}_0x122324['HIGH_SENTINEL']=_0x1da4cb;function _0x44c32e(_0x2ac3ec){const _0x551abf=_0x3bab2b;if(!_0x2ac3ec||typeof _0x2ac3ec!=='object')return![];for(const _0x25ea98 of Object[_0x551abf(0x2e9)](_0x2ac3ec)){const _0x5bfe6f=_0x2ac3ec[_0x25ea98];if(_0x5bfe6f&&typeof _0x5bfe6f===_0x551abf(0x218)&&(_0x5bfe6f['$near']||_0x5bfe6f['$within']))return!![];}return![];}function _0x1484ec(_0x361d94){const _0x20335a=_0x3bab2b;if(!_0x361d94||typeof _0x361d94!==_0x20335a(0x218))return{};const _0x334517={};for(const _0x4324e0 of Object[_0x20335a(0x2e9)](_0x361d94)){if(_0x4324e0===_0x20335a(0x194)||_0x4324e0===_0x20335a(0x57a))continue;_0x334517[_0x4324e0]=_0x361d94[_0x4324e0];}return _0x334517;}function _0x34495d(_0x4dab8c){const _0x44afec=_0x3bab2b;if(!_0x4dab8c||typeof _0x4dab8c!==_0x44afec(0x218))return{};const _0x5bc05e={};for(const _0x1e9459 of Object['keys'](_0x4dab8c)){if(typeof _0x4dab8c[_0x1e9459]==='function')continue;_0x5bc05e[_0x1e9459]=_0x4dab8c[_0x1e9459];}return _0x5bc05e;}return env={'OKDBEnv':_0x122324,'HIGH_SENTINEL':_0x1da4cb},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x813aa5}=requireErrors();function _0x20ca6e(_0x28b20a){const _0x309d30=_0x508b03=>{throw new _0x813aa5(_0x28b20a,_0x508b03);};return new Proxy(function(){},{'get'(_0xa40108,_0x160c40){const _0x125c5b=_0x5df8;if(typeof _0x160c40===_0x125c5b(0x5b5)||_0x160c40==='then'||_0x160c40===_0x125c5b(0x38a)||_0x160c40===_0x125c5b(0x445))return undefined;if(_0x160c40===_0x125c5b(0x1c7))return _0x28b20a;return(..._0x6e33d6)=>_0x309d30(_0x28b20a+'.'+String(_0x160c40));},'apply'(){_0x309d30(_0x28b20a);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x20ca6e},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x5ab787=_0x30dd4b;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x1823df(_0x577a4,_0x389837={}){const _0x4d28fa=_0x5df8,_0x560f21=[];let _0x12d290=![];_0x577a4[_0x4d28fa(0x6b6)]('/*')&&(_0x12d290=!![],_0x577a4=_0x577a4['slice'](0x0,-0x2),_0x560f21[_0x4d28fa(0x150)]('*'));let _0x29a9c9=_0x577a4[_0x4d28fa(0x23c)](/\/+$/,'')[_0x4d28fa(0x23c)](/\[([^\]]*)\]/g,(_0x12be79,_0x23a322)=>{const _0x54a986=_0x4d28fa,_0x2941a6=_0x23a322['replace'](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x25844f,_0x5c30ed)=>{const _0x2b7aa3=_0x5df8;return _0x560f21[_0x2b7aa3(0x150)](_0x5c30ed),_0x2b7aa3(0x15f);});return _0x54a986(0x405)+_0x2941a6+')?';})[_0x4d28fa(0x23c)](/\/:(\w+)/g,(_0x4287e5,_0x2440db)=>{return _0x560f21['push'](_0x2440db),'/([^/]+)';});if(_0x29a9c9==='')_0x29a9c9='/';return{'keys':_0x560f21,'defaults':_0x389837||{},'wildcard':_0x12d290,'regex':new RegExp('^'+_0x29a9c9+(_0x12d290?_0x4d28fa(0x6ee):'')+'/?$')};}const _0x2b0588=require$$0$3,{PassThrough:_0x389124}=require$$1;function _0xd809c9(_0x32f4c9){const _0x34b758=_0x5df8,_0x145372=_0x32f4c9['lastIndexOf'](':'),_0x29d698=_0x32f4c9[_0x34b758(0x101)](0x0,_0x145372)[_0x34b758(0x23c)](/^\[|\]$/g,'');return{'address':_0x29d698,'family':_0x29d698['includes'](':')?'IPv6':'IPv4','port':Number(_0x32f4c9['slice'](_0x145372+0x1))};}class _0x1c9727 extends _0x2b0588[_0x5ab787(0x75d)]{constructor(_0x8dc5c2,_0x21d8e0){const _0x287b4d=_0x5ab787;super(),this[_0x287b4d(0xef)]=_0x8dc5c2,this['_addr']=_0xd809c9(_0x21d8e0),this[_0x287b4d(0x783)]=!![],this['_keepAlive']=setInterval(()=>{},0x7fffffff);}get[_0x5ab787(0x783)](){const _0x44fbcf=_0x5ab787;return this[_0x44fbcf(0x2cb)];}set[_0x5ab787(0x783)](_0x188879){const _0x59708d=_0x5ab787;this[_0x59708d(0x2cb)]=_0x188879;}[_0x5ab787(0x294)](){const _0x4a8dff=_0x5ab787;return this[_0x4a8dff(0x783)]?{...this[_0x4a8dff(0x19a)]}:null;}[_0x5ab787(0x534)](){const _0xb5d636=_0x5ab787;if(this[_0xb5d636(0x1ef)])clearInterval(this['_keepAlive']);this[_0xb5d636(0x1ef)]=null;}[_0x5ab787(0x7de)](_0x18949d){const _0x22db32=_0x5ab787;this[_0x22db32(0x534)]();const _0x22d61d=this[_0x22db32(0xef)][_0x22db32(0x7de)]();if(_0x18949d)_0x22d61d[_0x22db32(0x1c4)](()=>_0x18949d(),_0x18949d);return this;}[_0x5ab787(0x7b3)](){const _0xe3923=_0x5ab787;return this['_keepAlive']?.[_0xe3923(0x7b3)](),this;}['unref'](){const _0x2a2557=_0x5ab787;return this[_0x2a2557(0x1ef)]?.[_0x2a2557(0x4ff)](),this;}}class _0x42a9d0{constructor(_0x4db08f){const _0x2e7b71=_0x5ab787;this[_0x2e7b71(0x11c)]=_0x4db08f,this[_0x2e7b71(0x3f6)]=[],this['auth']={'cookieName':'okdb_session'};}get[_0x5ab787(0x559)](){const _0x15c327=_0x5ab787;return this[_0x15c327(0x3f6)][0x0]||null;}['_n'](_0x3705b9,_0x1e2e1e=[]){const _0x3ede15=_0x5ab787;return this[_0x3ede15(0x11c)][_0x3ede15(0x5cd)]('http',null,_0x3705b9,_0x1e2e1e,!![]);}async['handle'](_0x2ac06d,_0x3b1d6c,_0x4afa78={},_0x263006={}){const _0x2f33cf=_0x5ab787;let _0x5abfd8=await this['_n'](_0x2f33cf(0x3fc),[_0x2ac06d,_0x3b1d6c,_0x4afa78,_0x263006]),_0x112f9a=0x0;return _0x5abfd8=await this[_0x2f33cf(0x56b)](_0x5abfd8,_0x112f9a),_0x5abfd8;}async[_0x5ab787(0x56b)](_0x134f30,_0x4f051b){const _0x57a87d=_0x5ab787;while(_0x134f30&&typeof _0x134f30===_0x57a87d(0x218)&&_0x134f30[_0x57a87d(0x579)]!==undefined){await new Promise(_0xf6629a=>setTimeout(_0xf6629a,_0x4f051b<0x5?0x1:0x5)),_0x4f051b++,_0x134f30=await this['_n']('handleResult',[_0x134f30[_0x57a87d(0x579)]]);}if(_0x134f30&&_0x134f30[_0x57a87d(0x44c)]&&typeof _0x134f30['body']===_0x57a87d(0x218)&&_0x134f30[_0x57a87d(0x44c)][_0x57a87d(0x7a8)]!==undefined)_0x134f30['body']=this['_stream'](_0x134f30['body']['$streamId']);return _0x134f30;}[_0x5ab787(0x7a9)](_0x57d880){const _0x175924=new _0x389124();let _0x2dd319=![];const _0x216868=()=>{const _0x3bd468=_0x5df8;if(_0x2dd319)return;_0x2dd319=!![],clearTimeout(_0x4386db),setImmediate(()=>this[_0x3bd468(0x11c)][_0x3bd468(0x34c)]&&this[_0x3bd468(0x11c)][_0x3bd468(0x6ad)](_0x3bd468(0x658),null,_0x3bd468(0x65f),[_0x57d880],!![]));};let _0x4386db=null;const _0x1a8bd8=()=>{const _0x56f5d6=_0x5df8;if(_0x2dd319)return;let _0x39334f;try{_0x39334f=this['okdb'][_0x56f5d6(0x6ad)](_0x56f5d6(0x658),null,_0x56f5d6(0x6e6),[_0x57d880],!![]);}catch{_0x39334f={'chunks':[],'end':!![]};}for(const _0xa14645 of _0x39334f[_0x56f5d6(0x595)])_0x175924[_0x56f5d6(0x438)](_0xa14645);if(_0x39334f['end']){_0x2dd319=!![],_0x175924[_0x56f5d6(0x729)]();return;}_0x4386db=setTimeout(_0x1a8bd8,_0x39334f['chunks']['length']?0x0:0xa);};_0x175924['on']('close',_0x216868),_0x1a8bd8();if(!_0x2dd319)_0x1a8bd8();if(_0x2dd319)_0x175924['destroy']();else{if(!_0x4386db)_0x4386db=setTimeout(_0x1a8bd8,0x0);}return _0x175924;}['add'](_0x270e82,_0x3da107,_0x3bd545,_0xadd1cb={}){const _0x4e547e=_0x5ab787;return this['okdb'][_0x4e547e(0x6ad)](_0x4e547e(0x658),null,_0x4e547e(0x241),[_0x270e82,_0x3da107,_0x3bd545,_0xadd1cb,![]],!![]),this;}[_0x5ab787(0x699)](_0x234ef0,_0x41dad8,_0x1e771c,_0x2f78f9={}){const _0x1f1cba=_0x5ab787;return this[_0x1f1cba(0x11c)][_0x1f1cba(0x6ad)]('http',null,'add',[_0x234ef0,_0x41dad8,_0x1e771c,_0x2f78f9,!![]],!![]),this;}['guard'](_0x50b1c0,_0x357472){const _0x58d38d=_0x5ab787,_0x52e783=async _0x1f2f82=>{const _0x4fbcd3=_0x5df8,_0x2ef950={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x345f7e={'status'(_0x4194c5){const _0x50ab1f=_0x5df8;return _0x2ef950[_0x50ab1f(0x2b6)]=_0x4194c5,_0x345f7e;},'setHeader'(_0x18b50a,_0x262507){const _0x5f539e=_0x5df8;_0x2ef950[_0x5f539e(0x6a8)][_0x5f539e(0x150)]([_0x18b50a,_0x262507]);},'send'(_0x39dd4d){const _0x2308a4=_0x5df8;_0x2ef950[_0x2308a4(0x413)]=!![],_0x2ef950['body']=_0x39dd4d;}};_0x1f2f82[_0x4fbcd3(0x661)]={'remoteAddress':_0x1f2f82[_0x4fbcd3(0x1e8)]??null};const _0x12ebf6=await _0x357472(_0x1f2f82,_0x345f7e);return{'allowed':_0x12ebf6!==![],..._0x2ef950};};this[_0x58d38d(0x11c)][_0x58d38d(0x6ad)](_0x58d38d(0x658),null,'guard',[_0x2bf307=>!!_0x50b1c0(_0x2bf307),_0x52e783],!![]);}[_0x5ab787(0x570)](_0x14e29a){const _0x59758a=_0x5ab787,_0x43c3b=async _0x3037b1=>{const _0x191ba6=_0x5df8,_0x4a0bdf={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x38383e=![];const _0x25d017={'status'(_0xfbc6bc){const _0x29ccf8=_0x5df8;return _0x4a0bdf[_0x29ccf8(0x2b6)]=_0xfbc6bc,_0x25d017;},'setHeader'(_0x9d26ed,_0x2fe048){const _0x35aa8e=_0x5df8;_0x4a0bdf[_0x35aa8e(0x6a8)][_0x35aa8e(0x150)]([_0x9d26ed,_0x2fe048]);},'send'(_0x3154de){const _0x3c50b3=_0x5df8;_0x4a0bdf['hasBody']=!![],_0x4a0bdf[_0x3c50b3(0x44c)]=_0x3154de;}};return _0x3037b1[_0x191ba6(0x661)]={'remoteAddress':_0x3037b1[_0x191ba6(0x1e8)]??null},await _0x14e29a(_0x3037b1,_0x25d017,async()=>{_0x38383e=!![];}),{'allowed':_0x38383e,..._0x4a0bdf};};return this[_0x59758a(0x11c)]['_call']('http',null,_0x59758a(0x570),[_0x43c3b],!![]),this;}get[_0x5ab787(0x519)](){const _0xcfae2f=_0x5ab787;return this[_0xcfae2f(0x11c)][_0xcfae2f(0x6ad)](_0xcfae2f(0x658),null,_0xcfae2f(0x6ca),[],![]);}set[_0x5ab787(0x519)](_0xd7b0fb){const _0x4d6e86=_0x5ab787;this[_0x4d6e86(0x11c)]['_call']('http',null,'setMaxBodyBytes',[Number(_0xd7b0fb)],![]);}[_0x5ab787(0x611)](_0x52f7e9,_0x346d18,_0x1d23be={}){const _0x33ef63=_0x5ab787,_0x43987f=new Map(),_0x242c8d=(_0xaeac1e,_0x246420)=>this[_0x33ef63(0x11c)][_0x33ef63(0x6ad)](_0x33ef63(0x658),null,_0xaeac1e,_0x246420,![]),_0x1ea274=_0x38fdbe=>{const _0x3cf375=_0x33ef63,{connId:_0x957ac4}=_0x38fdbe;if(_0x38fdbe[_0x3cf375(0x44e)]){const _0x382c5b=_0x43987f[_0x3cf375(0x759)](_0x957ac4);_0x43987f[_0x3cf375(0x5cb)](_0x957ac4);if(typeof _0x382c5b===_0x3cf375(0x1ea))_0x382c5b();return;}const _0x12f104=(_0x43eaee,_0x1cce19,_0x18920a={})=>{const _0x1fbcef=_0x3cf375;try{_0x242c8d(_0x1fbcef(0x2cf),[_0x957ac4,_0x43eaee,_0x1cce19,_0x18920a]);}catch{}},_0x7569f4=()=>{const _0x39c234=_0x3cf375;try{_0x242c8d(_0x39c234(0x209),[_0x957ac4]);}catch{}},_0x2c328b=(_0x3f4e0d,_0x196097)=>_0x242c8d('sseSetHeader',[_0x957ac4,String(_0x3f4e0d),String(_0x196097)]),_0xa40e1f={'auth':{'open':_0x38fdbe[_0x3cf375(0x4d1)],'isAuthenticated':_0x38fdbe[_0x3cf375(0x757)]}},_0x1a3925=_0x346d18({'send':_0x12f104,'close':_0x7569f4,'params':_0x38fdbe[_0x3cf375(0x5e3)]??{},'query':_0x38fdbe[_0x3cf375(0x187)]??{},'headers':_0x38fdbe[_0x3cf375(0x6a8)]??{},'context':_0xa40e1f,'setHeader':_0x2c328b});_0x43987f[_0x3cf375(0x5af)](_0x957ac4,_0x1a3925);};return this['okdb'][_0x33ef63(0x6ad)](_0x33ef63(0x658),null,_0x33ef63(0x611),[_0x52f7e9,_0x1ea274,_0x1d23be],!![]),this;}get[_0x5ab787(0x2c3)](){const _0x438a77=_0x5ab787;return this[_0x438a77(0x636)]();}[_0x5ab787(0x636)](){const _0x4e2515=_0x5ab787;return this[_0x4e2515(0x11c)][_0x4e2515(0x6ad)](_0x4e2515(0x658),null,_0x4e2515(0x636),[],![])[_0x4e2515(0x3e7)](_0x285416=>({..._0x285416,'matcher':_0x1823df(_0x285416[_0x4e2515(0x72f)],_0x285416[_0x4e2515(0x247)])}));}[_0x5ab787(0x35c)](_0x5f3c2f,_0x2d1e67){const _0x275fe9=_0x5ab787;return this[_0x275fe9(0x11c)]['_call'](_0x275fe9(0x658),null,'validateRouteInput',[_0x5f3c2f,_0x2d1e67],![]);}[_0x5ab787(0x138)](_0x39c849,_0x33f0cd={}){const _0xf8f3fc=_0x5ab787;if(typeof _0x33f0cd===_0xf8f3fc(0x677)||Array[_0xf8f3fc(0x470)](_0x33f0cd))_0x33f0cd={'host':_0x33f0cd};_0x33f0cd=_0x33f0cd??{};if((Number(_0x33f0cd[_0xf8f3fc(0x21a)])||0x0)>=0x1||_0x33f0cd[_0xf8f3fc(0x43b)]!=null||_0x33f0cd[_0xf8f3fc(0x6a1)]!=null){const _0x59b1a3=new Error(_0xf8f3fc(0x2c4)+_0xf8f3fc(0x651)+_0xf8f3fc(0x4d5)+_0xf8f3fc(0x65d));_0x59b1a3[_0xf8f3fc(0x1a8)]=_0xf8f3fc(0x41e);throw _0x59b1a3;}if(this[_0xf8f3fc(0x3f6)]['length'])throw new Error('HTTP\x20server\x20already\x20running');const _0x74075d=_0x33f0cd['host']==null?[undefined]:[][_0xf8f3fc(0x4d6)](_0x33f0cd[_0xf8f3fc(0x12e)]);if(!_0x74075d['length']||_0x74075d[_0xf8f3fc(0x7d3)](_0x42ed61=>_0x42ed61!==undefined&&(typeof _0x42ed61!==_0xf8f3fc(0x677)||!_0x42ed61))){const _0x437c70=new Error(_0xf8f3fc(0x584));_0x437c70[_0xf8f3fc(0x1a8)]=_0xf8f3fc(0x3e3);throw _0x437c70;}const _0x1673cb=require$$2[_0xf8f3fc(0x5f4)]?{..._0x33f0cd,'reuseport':!![]}:_0x33f0cd,_0x1b6efc=this[_0xf8f3fc(0x11c)][_0xf8f3fc(0x6ad)](_0xf8f3fc(0x658),null,_0xf8f3fc(0x138),[_0x39c849,_0x1673cb],!![]),_0x5d4d48=_0x1b6efc['port']??_0x39c849,_0x46d3ba=_0x33f0cd['host']==null?':'+_0x5d4d48:_0x74075d[_0xf8f3fc(0x3e7)](_0x581726=>(_0x581726[_0xf8f3fc(0x1d4)](':')?'['+_0x581726+']':_0x581726)+':'+_0x5d4d48)[_0xf8f3fc(0x78e)](',\x20');try{this[_0xf8f3fc(0x11c)]['processes']['noteListenAddr'](_0x46d3ba);if(!require('node:cluster')[_0xf8f3fc(0x5f4)])this[_0xf8f3fc(0x11c)][_0xf8f3fc(0x18e)][_0xf8f3fc(0x683)]({'kind':'standalone','listenAddr':_0x46d3ba});}catch{}this['servers']=_0x1b6efc['addrs'][_0xf8f3fc(0x3e7)](_0x26ff02=>new _0x1c9727(this,_0x26ff02));const _0x43ee68=this['servers'][0x0];return process[_0xf8f3fc(0x47d)](()=>this[_0xf8f3fc(0x3f6)][_0xf8f3fc(0x131)](_0x27ef20=>_0x27ef20[_0xf8f3fc(0x663)]('listening'))),_0x43ee68;}async[_0x5ab787(0x7de)](_0x472e0a={}){const _0x1024ce=_0x5ab787,_0x585167=this[_0x1024ce(0x3f6)];this[_0x1024ce(0x3f6)]=[];if(require$$2[_0x1024ce(0x5f4)]&&!process[_0x1024ce(0x1a6)]&&_0x472e0a['forceAfterMs']==null)_0x472e0a={..._0x472e0a,'forceAfterMs':Infinity};if(_0x585167[_0x1024ce(0x306)]){const _0xe14b97=_0x472e0a[_0x1024ce(0x28a)]===Infinity?Infinity:Number['isFinite'](_0x472e0a[_0x1024ce(0x28a)])?Math[_0x1024ce(0x1fa)](0x0,_0x472e0a[_0x1024ce(0x28a)]):0x3e8,_0x266aea=Date[_0x1024ce(0x466)]();while(this[_0x1024ce(0x11c)]['_call']('http',null,_0x1024ce(0x142),[],!![])>0x0&&Date['now']()-_0x266aea<_0xe14b97)await new Promise(_0x495493=>setTimeout(_0x495493,0x5));_0x472e0a={..._0x472e0a,'forceAfterMs':_0xe14b97===Infinity?0x3e8:Math['max'](0x0,_0xe14b97-(Date[_0x1024ce(0x466)]()-_0x266aea))};}await this['_n']('close',[_0x472e0a]);for(const _0x1c91bc of _0x585167){_0x1c91bc[_0x1024ce(0x534)](),_0x1c91bc[_0x1024ce(0x783)]=![],_0x1c91bc[_0x1024ce(0x663)](_0x1024ce(0x7de));}}}return http={'OKDBHttp':_0x42a9d0},http;}var fts,hasRequiredFts;function requireFts(){const _0x2945b4=_0x30dd4b;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x3f892b=_0x580830=>(_0x580830&&typeof _0x580830===_0x2945b4(0x218)?_0x580830['name']:_0x580830)??_0x2945b4(0x1e3);class _0x3c5fa4{constructor(_0x14dc1d){this['okdb']=_0x14dc1d;}['_n'](_0x25473a,_0xe3468f,_0x578f5f=![]){const _0x25e369=_0x2945b4;return this[_0x25e369(0x11c)][_0x25e369(0x6ad)](_0x25e369(0x248),null,_0x25473a,_0xe3468f,_0x578f5f);}[_0x2945b4(0x620)](_0x5b9a6c,_0x1d2aed){const _0x46ef87=_0x2945b4;return this['okdb'][_0x46ef87(0x5cd)](_0x46ef87(0x248),null,_0x5b9a6c,_0x1d2aed,!![]);}get[_0x2945b4(0x6f6)](){const _0xdc703b=this,_0x53f11c=_0x51c6d0=>{const _0x4380ec=_0x5df8,_0x232832=_0x51c6d0[_0x4380ec(0x601)](':'),_0x5eff96=_0x51c6d0[_0x4380ec(0x101)](0x0,_0x232832),_0x2906dd=_0xdc703b[_0x4380ec(0x11c)][_0x4380ec(0x2e5)]['get'](_0x5eff96);if(!_0x2906dd)return undefined;const _0x4ef3a0=_0x2906dd[_0x4380ec(0x266)][_0x4380ec(0x68a)]()[_0x4380ec(0x6bf)](_0x4428f2=>_0x4428f2[_0x4380ec(0x67f)]===_0x4380ec(0x69b)+_0x51c6d0);if(!_0x4ef3a0)return undefined;return _0x2906dd[_0x4380ec(0x266)]['_stopFor'](_0x4ef3a0['id'],_0x4ef3a0[_0x4380ec(0x67f)]);};return{'get':_0x53f11c,'has':_0x1676f5=>!!_0x53f11c(_0x1676f5)};}get[_0x2945b4(0x2c1)](){return[];}[_0x2945b4(0x40d)](){const _0x5c7389=_0x2945b4,{RawDb:_0x3a4e95}=requireRawdb();return new _0x3a4e95(this['okdb'][_0x5c7389(0x2a4)],_0x5c7389(0x36c));}[_0x2945b4(0x37b)](_0x9ad994,_0xd59509,_0x3a3a6d){return this['_n']('has',[_0x9ad994,_0xd59509,_0x3f892b(_0x3a3a6d)]);}['status'](_0x107c07,_0x5b25ba,_0x126970){const _0x4450d5=_0x2945b4;return this['_n'](_0x4450d5(0x2b6),[_0x107c07,_0x5b25ba,_0x3f892b(_0x126970)]);}[_0x2945b4(0x68a)](_0x3fdf77,_0x315ad4){const _0x463dad=_0x2945b4;return this['_n'](_0x463dad(0x68a),[_0x3fdf77,_0x3f892b(_0x315ad4)]);}async['_build'](_0x47b065,_0x3cd375,_0x112806,_0x13ff32,_0x56a759){const _0x237c87=_0x2945b4,_0x38604d=(_0x373fcb,_0x242150)=>this[_0x237c87(0x11c)][_0x237c87(0x5cd)](_0x237c87(0x248),null,_0x373fcb,_0x242150,!![],![]),_0x450c1a=Date[_0x237c87(0x466)]()+0x1d4c0;let _0x514ee5=_0x47b065,_0x55ca1c=_0x3cd375;for(;;){try{return await _0x38604d(_0x514ee5,_0x55ca1c);}catch(_0x161306){if(_0x161306[_0x237c87(0x1a8)]==='FTS_BUILD_CONTINUE'){_0x514ee5=_0x237c87(0x315),_0x55ca1c=[_0x112806,_0x13ff32,_0x3f892b(_0x56a759)];if(_0x161306[_0x237c87(0x77d)]&&_0x161306[_0x237c87(0x77d)][_0x237c87(0x250)])await new Promise(_0x47e086=>setTimeout(_0x47e086,0x2));continue;}if(_0x161306[_0x237c87(0x1a8)]!==_0x237c87(0x516)||Date[_0x237c87(0x466)]()>=_0x450c1a)throw _0x161306;}await new Promise(_0x1a5aba=>setTimeout(_0x1a5aba,0x5)),_0x514ee5='reset',_0x55ca1c=[_0x112806,_0x13ff32,!![],_0x3f892b(_0x56a759)];}}async[_0x2945b4(0x683)](_0x5a80cc,_0x396e8,_0xa31f57,_0x4ad876,_0x5b8aa4){const _0x2fc81a=_0x2945b4;return this[_0x2fc81a(0x551)](_0x2fc81a(0x683),[_0x5a80cc,_0x396e8,_0xa31f57,_0x4ad876,_0x3f892b(_0x5b8aa4)],_0x5a80cc,_0x396e8,_0x5b8aa4);}async[_0x2945b4(0x603)](_0x5bf07a,_0x2e5462,_0x1c4792){const _0xffc84e=_0x2945b4;return this[_0xffc84e(0x620)](_0xffc84e(0x603),[_0x5bf07a,_0x2e5462,_0x3f892b(_0x1c4792)]);}async[_0x2945b4(0x27e)](_0x29dc32,_0x3806fd,_0x2bd752,_0x1f400c){return this['_build']('ensure',[_0x29dc32,_0x3806fd,_0x2bd752,_0x3f892b(_0x1f400c)],_0x29dc32,_0x3806fd,_0x1f400c);}async[_0x2945b4(0x3c4)](_0x2907eb,_0x30a190,_0x2a16f8,_0x29e5a0){const _0x125bfc=_0x2945b4;return this['_build'](_0x125bfc(0x3c4),[_0x2907eb,_0x30a190,_0x2a16f8,_0x3f892b(_0x29e5a0)],_0x2907eb,_0x30a190,_0x29e5a0);}async[_0x2945b4(0x2e8)](_0x38cc3d,_0x298dd0,_0x24334b,_0x47978b=0x1d4c0){const _0x22d84f=_0x2945b4,_0x4e22d8=Date[_0x22d84f(0x466)]()+_0x47978b;for(;;){try{return await this[_0x22d84f(0x620)](_0x38cc3d,[..._0x298dd0,0x1]);}catch(_0x3d6a53){if(_0x3d6a53[_0x22d84f(0x1a8)]!==_0x24334b||Date[_0x22d84f(0x466)]()>=_0x4e22d8)throw _0x3d6a53;}await new Promise(_0x53fc27=>setTimeout(_0x53fc27,0x2));}}async[_0x2945b4(0x35f)](_0x151985,_0x2fa576,_0x5e3309){const _0x204ed1=_0x2945b4;return this['_waitNative'](_0x204ed1(0x35f),[_0x151985,null,_0x3f892b(_0x5e3309)],_0x204ed1(0x7b9));}async[_0x2945b4(0x554)](_0x2fa9af,_0x597221){const _0x2998a9=_0x2945b4;return this[_0x2998a9(0x2e8)](_0x2998a9(0x554),[_0x2fa9af,_0x3f892b(_0x597221)],_0x2998a9(0x55b));}async[_0x2945b4(0x678)](_0x4f88fa,_0x51cde0){const _0x229eb5=_0x2945b4;return this[_0x229eb5(0x620)](_0x229eb5(0x678),[_0x4f88fa,_0x3f892b(_0x51cde0)]);}async[_0x2945b4(0x4a6)](_0x11638e={}){const _0x1f2d0e=_0x2945b4;return this[_0x1f2d0e(0x620)]('process',[_0x11638e]);}async[_0x2945b4(0x213)](_0x2ba386){const _0x581cd3=_0x2945b4;return this[_0x581cd3(0x620)](_0x581cd3(0x213),[_0x3f892b(_0x2ba386)]);}[_0x2945b4(0x2f9)](_0x1fda3b){return this['_n']('envSize',[_0x3f892b(_0x1fda3b)]);}[_0x2945b4(0x6a0)](_0x2593d7,_0x4caabe,_0x5c8ed7,_0x1bf28d,_0x4c6ff2){const _0xafd460=_0x2945b4;return this['_n'](_0xafd460(0x6a0),[_0x2593d7,_0x4caabe,_0x5c8ed7,_0x1bf28d||{},_0x3f892b(_0x4c6ff2)]);}[_0x2945b4(0x57d)](_0x494793,_0xaae137,_0x191a3f,_0x1a9ee3,_0x5ea402,_0x35feb6){return this['_n']('searchDocs',[_0x494793,_0xaae137,_0x191a3f,_0x1a9ee3||{},_0x3f892b(_0x5ea402),_0x35feb6]);}[_0x2945b4(0x16b)](_0x5e208d,_0x3cc0c5,_0x2173f3,_0xcc091b,_0x2746db){const _0x59ab79=_0x2945b4;return this['_n'](_0x59ab79(0x52a),[_0x5e208d,_0x3cc0c5,_0x2173f3,_0xcc091b||{},_0x3f892b(_0x2746db)]);}['listFtsEnvs'](){const _0x1f6a14=_0x2945b4;return this['_n'](_0x1f6a14(0x113),[]);}async['drain'](){const _0x1a1143=_0x2945b4;return this[_0x1a1143(0x620)]('drain',[]);}}return fts={'OKDBFts':_0x3c5fa4},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x19e5cf=_0x30dd4b;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x47cefc,invalidArgument:_0x79aa0c}=requireErrors();requireBridge();const _0x12472c=Object[_0x19e5cf(0x2f3)]({'EMBEDDER':_0x19e5cf(0x43f),'INDEXER':'indexer','SEARCH':'vector-search','WORKER':_0x19e5cf(0x2ae)}),_0x5b71e6=_0x28b1dc=>typeof _0x28b1dc===_0x19e5cf(0x677)||_0x28b1dc==null?_0x28b1dc:Array[_0x19e5cf(0x320)](_0x28b1dc);class _0x43736e{constructor(_0x5cb7b4){const _0x41de73=_0x19e5cf;this['okdb']=_0x5cb7b4,this[_0x41de73(0xee)]=new Map(),this[_0x41de73(0x7d0)]=new Map(),this[_0x41de73(0x202)]=new Map();}['_n'](_0x484551,_0x4d78dd=[],_0x252e8c=!![]){const _0x2c3b75=_0x19e5cf;return this[_0x2c3b75(0x11c)][_0x2c3b75(0x6ad)](_0x2c3b75(0x652),null,_0x484551,_0x4d78dd,_0x252e8c);}['_nm'](_0x3cce36,_0x4e2694=[]){const _0x5d8b4d=_0x19e5cf;return this[_0x5d8b4d(0x11c)]['_callMacro'](_0x5d8b4d(0x652),null,_0x3cce36,_0x4e2694,!![]);}[_0x19e5cf(0x3e1)](_0x2952ce){const _0x3d5325=_0x19e5cf;return _0x2952ce?this[_0x3d5325(0x11c)]['engines']['_wrap'](_0x2952ce):null;}['registerEmbedderFactory'](_0x1dbb77,_0x3402ec,_0x2b87c0={}){const _0x3803cc=_0x19e5cf;if(typeof _0x3402ec!==_0x3803cc(0x1ea))throw new _0x47cefc(_0x3803cc(0x414),_0x3803cc(0x3a9),{'name':_0x1dbb77});this['_jsFactories']['set'](_0x1dbb77,_0x3402ec),this[_0x3803cc(0x7d0)][_0x3803cc(0x5af)](_0x1dbb77,_0x2b87c0);const _0x46a777=this['okdb'],_0x4d63d8=_0x1bc293=>_0x3402ec(_0x1bc293,_0x46a777);_0x4d63d8[_0x3803cc(0x797)]=_0x46a777,this['_n'](_0x3803cc(0x753),[_0x1dbb77,_0x4d63d8,_0x2b87c0??{}],![]);}[_0x19e5cf(0x6d7)](_0x1e6f54){const _0x298d30=_0x19e5cf,_0x3ff6d5=this[_0x298d30(0xee)][_0x298d30(0x759)](_0x1e6f54);if(_0x3ff6d5)return _0x3ff6d5;if(!this['_n'](_0x298d30(0x499),[_0x1e6f54],![]))return null;const _0x419772=this;return(_0x146c9b={})=>{const _0x5d4534=_0x298d30,_0x4fed7d=_0x419772['_n'](_0x5d4534(0x4d9),[_0x1e6f54,_0x146c9b],![]),_0x5595c4=_0x419772['_n'](_0x5d4534(0x7d5),[_0x4fed7d],![]),_0x540803=(_0x38279d,_0x11fcc4)=>_0x419772['_n']('embedderCall',[_0x4fed7d,_0x38279d,_0x11fcc4],![]),_0x1806f1={'embed':async _0x228201=>Float32Array['from'](_0x540803(_0x5d4534(0x6b8),_0x228201)),'start':async()=>_0x540803('start'),'stop':async()=>{const _0x4c84cc=_0x5d4534;_0x540803(_0x4c84cc(0x7af)),_0x540803(_0x4c84cc(0x56c));}};if(_0x5595c4)_0x1806f1[_0x5d4534(0x427)]=async _0x425916=>_0x540803(_0x5d4534(0x427),_0x425916)[_0x5d4534(0x3e7)](_0x5aa2ac=>Float32Array['from'](_0x5aa2ac));return _0x1806f1;};}[_0x19e5cf(0x225)](_0x267131){const _0x3be279=_0x19e5cf;return this[_0x3be279(0x7d0)][_0x3be279(0x759)](_0x267131)??this['_n'](_0x3be279(0x225),[_0x267131],![])??undefined;}[_0x19e5cf(0x6d0)](_0x36119a,_0xf43973,_0x3aaa41={}){const _0x197cfb=_0x19e5cf;if(typeof _0xf43973!==_0x197cfb(0x1ea))throw new _0x47cefc('Algorithm\x20factory\x20must\x20be\x20a\x20function',_0x197cfb(0x3a9),{'name':_0x36119a});this['_n'](_0x197cfb(0x6d0),[_0x36119a,(_0x27515e,_0x384e80)=>_0xf43973(_0x27515e,_0x384e80),_0x3aaa41??{}],![]);}[_0x19e5cf(0x66d)](){const _0x1d60d0=_0x19e5cf;return this['_n'](_0x1d60d0(0x66d),[],![]);}[_0x19e5cf(0x216)](_0x5d104c,_0x3b5c13){const _0x3b0ff5=_0x19e5cf;if(typeof _0x3b5c13!==_0x3b0ff5(0x1ea))throw new _0x47cefc(_0x3b0ff5(0x6c4),_0x3b0ff5(0x3a9),{'name':_0x5d104c});this['_n'](_0x3b0ff5(0x216),[_0x5d104c,_0x3b5c13]);}['registerChunkStrategy'](_0x2731dc,_0x1bbe82){const _0x51b883=_0x19e5cf;if(typeof _0x1bbe82!==_0x51b883(0x1ea))throw new _0x47cefc(_0x51b883(0x7f0),_0x51b883(0x3a9),{'name':_0x2731dc});this['_n'](_0x51b883(0x431),[_0x2731dc,_0x1bbe82]);}[_0x19e5cf(0x21f)](_0xc10307){const _0x364103=_0x19e5cf;if(_0xc10307==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0xc10307!=='function')throw new _0x47cefc(_0x364103(0x2a2),_0x364103(0x3a9));const _0x177128=this[_0x364103(0x11c)];this['_n'](_0x364103(0x21f),[_0xc0e21d=>_0xc10307(_0xc0e21d,_0x177128)],![]);}async[_0x19e5cf(0x1e1)](_0x3e20e5,_0x50df0a={},_0x7f267={},_0x362171=null){const _0x1464d2=_0x19e5cf;return this[_0x1464d2(0x3e1)](await this[_0x1464d2(0x620)](_0x1464d2(0x1e1),[_0x3e20e5,_0x50df0a,_0x7f267,_0x362171]));}async[_0x19e5cf(0x69c)](_0x4155f0,_0x3e76e9={},_0x414c52={}){const _0x368822=_0x19e5cf;return this[_0x368822(0x3e1)](await this['_nm'](_0x368822(0x69c),[_0x4155f0,_0x3e76e9,_0x414c52]));}async[_0x19e5cf(0x42c)](_0x57071a,_0x63cad8={},_0x53edb9={}){const _0x46b64d=_0x19e5cf;return this[_0x46b64d(0x3e1)](await this[_0x46b64d(0x620)](_0x46b64d(0x42c),[_0x57071a,_0x63cad8,_0x53edb9]));}async[_0x19e5cf(0x4eb)](_0x44600e,_0x324f13={},_0x25d3ff={}){const _0x9d006c=_0x19e5cf;return this[_0x9d006c(0x3e1)](await this[_0x9d006c(0x620)](_0x9d006c(0x4eb),[_0x44600e,_0x324f13,_0x25d3ff]));}async[_0x19e5cf(0xed)](_0x1daac3,_0x469d18={},_0x241392={}){const _0x22aa91=_0x19e5cf,_0xd65dd4=await this[_0x22aa91(0x620)](_0x22aa91(0xed),[_0x1daac3,_0x469d18,_0x241392]);return{'embedder':this[_0x22aa91(0x3e1)](_0xd65dd4[_0x22aa91(0x43f)]),'indexer':this[_0x22aa91(0x3e1)](_0xd65dd4['indexer']),'worker':this['_wrap'](_0xd65dd4[_0x22aa91(0x72c)]),'search':this[_0x22aa91(0x3e1)](_0xd65dd4[_0x22aa91(0x6a0)]),'api':this['_makePipelineApi'](_0xd65dd4[_0x22aa91(0x3dd)],_0xd65dd4[_0x22aa91(0x43f)][_0x22aa91(0x331)],_0xd65dd4[_0x22aa91(0x72c)]?_0xd65dd4['worker'][_0x22aa91(0x331)]:_0xd65dd4[_0x22aa91(0x3dd)]+'-worker')};}[_0x19e5cf(0x691)](_0x1026b7,_0x2e7aef){const _0x373f5f=_0x19e5cf;return this[_0x373f5f(0x11c)][_0x373f5f(0x3f4)][_0x373f5f(0x62c)](_0x1026b7,_0x2e7aef)?.[_0x373f5f(0x22c)]??null;}[_0x19e5cf(0x43f)](_0xd5338b){const _0x49a40f=_0x19e5cf,_0x4f3b84=this['_running'](_0x12472c[_0x49a40f(0x1b3)],_0xd5338b);if(!_0x4f3b84)return null;const _0x46bc23=this,_0x44033c=_0x3ec0d4=>Array[_0x49a40f(0x470)](_0x3ec0d4)&&Array[_0x49a40f(0x470)](_0x3ec0d4[0x0])?_0x3ec0d4[_0x49a40f(0x3e7)](_0xfa81a4=>Float32Array[_0x49a40f(0x320)](_0xfa81a4)):Float32Array[_0x49a40f(0x320)](_0x3ec0d4);return new Proxy(_0x4f3b84,{'get'(_0x1f4bef,_0x4f3cd5){const _0x22c27d=_0x49a40f;if(_0x4f3cd5===_0x22c27d(0x667))return _0x46bc23['okdb'][_0x22c27d(0x6ad)](_0x22c27d(0x3f4),null,_0x22c27d(0xd8),[_0x12472c['EMBEDDER'],_0xd5338b,_0x22c27d(0x667),[]],![])[_0x22c27d(0x2e6)];if(_0x4f3cd5===_0x22c27d(0x6b8))return async _0x1329a7=>_0x44033c(await _0x4f3b84['embed'](_0x1329a7));if(_0x4f3cd5===_0x22c27d(0x427))return async _0x5e6b25=>(await _0x4f3b84[_0x22c27d(0x427)](_0x5e6b25))[_0x22c27d(0x3e7)](_0x32cd0b=>Float32Array[_0x22c27d(0x320)](_0x32cd0b));return _0x1f4bef[_0x4f3cd5];}});}['indexer'](_0x11afd2){const _0x35a9e7=_0x19e5cf;return this[_0x35a9e7(0x691)](_0x12472c[_0x35a9e7(0x4d8)],_0x11afd2);}[_0x19e5cf(0x72c)](_0x25376c){const _0x277b91=_0x19e5cf;return this[_0x277b91(0x691)](_0x12472c['WORKER'],_0x25376c);}[_0x19e5cf(0x6a0)](_0x1b7c2e){const _0x475454=_0x19e5cf,_0x4e1de8=this[_0x475454(0x691)](_0x12472c[_0x475454(0x766)],_0x1b7c2e);if(_0x4e1de8)return _0x4e1de8;return this[_0x475454(0x4e2)](_0x1b7c2e);}[_0x19e5cf(0x4e2)](_0x1ecd3f){const _0x3550cc=_0x19e5cf,_0x5f3463=this;return{'search':(_0x37abea,_0x611376={})=>_0x5f3463[_0x3550cc(0x11c)][_0x3550cc(0x5cd)](_0x3550cc(0x652),null,_0x3550cc(0x6a0),[_0x1ecd3f,_0x5b71e6(_0x37abea),_0x611376],![]),'stats':async()=>_0x5f3463['_n'](_0x3550cc(0x14c),[_0x1ecd3f],![]),'count':()=>_0x5f3463['_n'](_0x3550cc(0x7f3),[_0x1ecd3f,_0x3550cc(0x4e5)],![])};}async[_0x19e5cf(0x57d)](_0x446a5a,_0x5dbbc4,_0x48ac34={}){const _0x58d041=_0x19e5cf,{limit:limit=0xa,..._0x53bee9}=_0x48ac34;return this[_0x58d041(0x620)]('searchDocs',[_0x446a5a,_0x5b71e6(_0x5dbbc4),{..._0x53bee9,'limit':limit}]);}['vectorSpace'](_0x3f34da){return this['_n']('vectorSpace',[_0x3f34da],![]);}[_0x19e5cf(0x3fe)](_0x1220c4,_0x365eb9){const _0x166029=_0x19e5cf;return this['_n'](_0x166029(0x646),[_0x1220c4,_0x365eb9],![]);}[_0x19e5cf(0x7b6)](_0x410746){const _0x1c1c1e=_0x19e5cf;return this['_n'](_0x1c1c1e(0x422),[_0x410746],![]);}async[_0x19e5cf(0x64e)](_0x32d416){return this['_n']('durableStats',[_0x32d416],![]);}async['_durableIndexerDocs'](_0x133525,_0x2e94ca={}){const _0x2e96a1=_0x19e5cf;return this['_n'](_0x2e96a1(0x490),[_0x133525,_0x2e94ca],![]);}async['_durableIndexerDoc'](_0x37eff6,_0x237fa3){const _0x388cee=_0x19e5cf;return this['_n'](_0x388cee(0x309),[_0x37eff6,_0x237fa3],![]);}async[_0x19e5cf(0x43c)](_0x362d6f,_0x109658,_0x12bf7e,_0x47a242){const _0x4aba61=_0x19e5cf;if(_0x362d6f!=null&&typeof _0x362d6f[_0x4aba61(0x1d4)]!==_0x4aba61(0x1ea))throw _0x79aa0c(_0x4aba61(0x331),_0x4aba61(0x14f),_0x362d6f);if(!_0x362d6f||!_0x12bf7e)return null;return this[_0x4aba61(0x11c)]['_callMacro'](_0x4aba61(0x652),null,'describeChunk',[_0x362d6f,_0x109658,_0x12bf7e,_0x47a242??null],![]);}async['durableMarkDone'](_0xda206b,_0x2946af,_0x5640ca={}){const _0x47dbf6=_0x19e5cf,_0x3d5dae={..._0x5640ca};if(_0x3d5dae[_0x47dbf6(0x73e)])_0x3d5dae[_0x47dbf6(0x73e)]=Array[_0x47dbf6(0x320)](_0x3d5dae[_0x47dbf6(0x73e)]);return this['_n'](_0x47dbf6(0x6aa),[_0xda206b,_0x2946af,_0x3d5dae]);}async['durableMarkFail'](_0x39cf7a,_0x522a42,_0x85d510,_0x420a0c={}){const _0x5bbab1=_0x19e5cf;return this['_n'](_0x5bbab1(0x60b),[_0x39cf7a,_0x522a42,_0x85d510,_0x420a0c]);}async[_0x19e5cf(0x478)](_0x2baa0a,_0x40a99c){const _0x27df6a=_0x19e5cf;return this['_n'](_0x27df6a(0x478),[_0x2baa0a,_0x40a99c]);}async[_0x19e5cf(0xe3)](_0x2c1650,_0x62744f){const _0x222902=_0x19e5cf;return this['_n'](_0x222902(0xe3),[_0x2c1650,_0x62744f]);}async[_0x19e5cf(0x770)](_0x5cac22,_0x2b0ded={}){const _0xe244e6=_0x19e5cf;return this['_n'](_0xe244e6(0x770),[_0x5cac22,_0x2b0ded]);}async[_0x19e5cf(0x6d3)](_0x449e83){return this['_nm']('durableRebuild',[_0x449e83]);}async[_0x19e5cf(0x77c)](_0x144aac){return this['_n']('durableWorkerStats',[_0x144aac],![]);}[_0x19e5cf(0x4fa)](_0x2735c2){const _0xfef484=_0x19e5cf;return this['_n'](_0xfef484(0x4fa),[_0x2735c2],![]);}['listVectorStores'](){const _0x10a926=_0x19e5cf;return this['_n'](_0x10a926(0xf4),[],![]);}['getVector'](_0x4e87c6,_0x333222){const _0x331c6d=_0x19e5cf,_0x1babf7=this['_n']('getVector',[_0x4e87c6,_0x333222],![]);return _0x1babf7==null?null:Float32Array[_0x331c6d(0x320)](_0x1babf7);}[_0x19e5cf(0x51d)](_0x3d4809,_0xb03a4b){const _0x32e66d=_0x19e5cf;return this['_n'](_0x32e66d(0x51d),[_0x3d4809,_0xb03a4b??null],![])??undefined;}async[_0x19e5cf(0x38d)](_0x19e150,_0xed7401,_0x2dfa83,_0x51d5e5=''){const _0x36dda9=_0x19e5cf;return this['_n'](_0x36dda9(0x38d),[_0x19e150,_0xed7401,_0x2dfa83,_0x51d5e5]);}[_0x19e5cf(0x5c8)](_0x448927=null){return this['_n']('listModels',[_0x448927],![]);}[_0x19e5cf(0x1cc)](){const _0x482702=_0x19e5cf;return this['_n'](_0x482702(0x1cc),[],![]);}async[_0x19e5cf(0x751)](_0x1c596b,_0x496f14){const _0x1a3980=_0x19e5cf;return this['_n'](_0x1a3980(0x6c9),[_0x1c596b,_0x496f14],![]),this[_0x1a3980(0x11c)][_0x1a3980(0x195)]('~'+_0x1c596b+_0x1a3980(0x314)+_0x496f14);}async[_0x19e5cf(0x177)](_0x2d5b86,_0xaa7c0){const _0x1557b1=_0x19e5cf;return await this[_0x1557b1(0x751)](_0x2d5b86,_0xaa7c0),{'adapter':_0x12b28b=>this['_makeLazyVectorAdapter'](_0x2d5b86,_0xaa7c0,_0x12b28b)};}[_0x19e5cf(0x1e9)](_0x1a8d50,_0x123e55,_0x52b8d0){const _0x110033=this;return{async 'put'(_0x43427f,_0xf59f7a){const _0x3012a3=_0x5df8;return _0x110033['_n'](_0x3012a3(0x382),[_0x1a8d50,_0x123e55,_0x52b8d0,_0x43427f,Array[_0x3012a3(0x320)](_0xf59f7a)]);},async 'remove'(_0x4e18b5){const _0x36e348=_0x5df8;return _0x110033['_n'](_0x36e348(0x476),[_0x1a8d50,_0x123e55,_0x52b8d0,_0x4e18b5]);}};}get[_0x19e5cf(0x2ff)](){const _0x581914=_0x19e5cf,_0x504380=this,_0x452a39=()=>_0x504380['_n'](_0x581914(0x7ae),[],![]),_0x504304=_0x4f3ae1=>{const _0x133480=_0x581914,_0x1f02b5=_0x473178=>_0x504380['_n'](_0x133480(0x7f3),[_0x4f3ae1,_0x473178],![]);return{'name':_0x4f3ae1,'_evict':async()=>_0x1f02b5(_0x133480(0x62e)),'evict':async()=>_0x1f02b5(_0x133480(0x62e)),'snapshot':async()=>_0x1f02b5(_0x133480(0x57a)),'_snapshot':async()=>_0x1f02b5(_0x133480(0x57a)),'rebuild':async()=>_0x1f02b5(_0x133480(0x111)),'stats':()=>_0x1f02b5('stats'),get 'count'(){return _0x1f02b5('count');},get 'loaded'(){const _0x4a11d7=_0x133480;return _0x1f02b5(_0x4a11d7(0x176));}};};return{get 'size'(){return _0x452a39()['length'];},'has':_0x513521=>_0x452a39()[_0x581914(0x1d4)](_0x513521),'get':_0x481f7d=>_0x452a39()['includes'](_0x481f7d)?_0x504304(_0x481f7d):undefined,'keys':()=>_0x452a39()[Symbol[_0x581914(0x527)]](),'values':()=>_0x452a39()[_0x581914(0x3e7)](_0x504304)[Symbol[_0x581914(0x527)]](),[Symbol[_0x581914(0x527)]]:()=>_0x452a39()['map'](_0x1581f8=>[_0x1581f8,_0x504304(_0x1581f8)])[Symbol[_0x581914(0x527)]]()};}async[_0x19e5cf(0x6ac)](){}async[_0x19e5cf(0x7af)](){this['_n']('stop',[]);}['_makePipelineApi'](_0x56d2bc,_0x53022e,_0x77ffc0){const _0x10379a=_0x19e5cf;return{'search':(_0x36c595,_0x5d47eb={})=>{const _0x127c78=_0x5df8,_0x1ee55f=this[_0x127c78(0x6a0)](_0x56d2bc);if(!_0x1ee55f)throw new Error(_0x127c78(0x560)+_0x56d2bc+'\x22');return _0x1ee55f[_0x127c78(0x6a0)](_0x36c595,_0x5d47eb);},'searchDocs':(_0x5d9f80,_0x2da14f={})=>this[_0x10379a(0x57d)](_0x56d2bc,_0x5d9f80,_0x2da14f),'flush':_0x442cb2=>{const _0x5b2d8e=_0x10379a,_0x4724cd=this[_0x5b2d8e(0x758)](_0x56d2bc);if(!_0x4724cd)throw new Error(_0x5b2d8e(0x16d)+_0x56d2bc+'\x22');return _0x4724cd[_0x5b2d8e(0x554)](_0x442cb2);},'stats':async()=>({'embedder':await this['embedder'](_0x53022e)?.[_0x10379a(0x119)]?.(),'indexer':await this[_0x10379a(0x758)](_0x56d2bc)?.[_0x10379a(0x4ce)]?.(),'worker':await this[_0x10379a(0x72c)](_0x77ffc0)?.[_0x10379a(0x4ce)]?.(),'search':await this[_0x10379a(0x6a0)](_0x56d2bc)?.[_0x10379a(0x4ce)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x43736e,'ENGINE_TYPES':_0x12472c},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x10f70d=_0x30dd4b;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x3efaf6}=requireErrors();class _0x5e59e8{constructor(_0x1374b8){this['okdb']=_0x1374b8;}['_n'](_0x4d8bed,_0x229cf8=[],_0x537065=![]){const _0x3f9330=_0x5df8;return this[_0x3f9330(0x11c)][_0x3f9330(0x6ad)](_0x3f9330(0x536),null,_0x4d8bed,_0x229cf8,_0x537065);}['_nm'](_0x3abf55,_0x525585=[]){const _0x489f64=_0x5df8;return this[_0x489f64(0x11c)][_0x489f64(0x5cd)](_0x489f64(0x536),null,_0x3abf55,_0x525585,![]);}get[_0x10f70d(0x21e)](){const _0x1f1b4b=_0x10f70d;return this['_n'](_0x1f1b4b(0x21e));}get[_0x10f70d(0x590)](){const _0xa2da46=_0x10f70d;return this['_n'](_0xa2da46(0x590));}get[_0x10f70d(0x7c5)](){const _0x309cc9=_0x10f70d;return this['okdb']['options'][_0x309cc9(0x536)]?.[_0x309cc9(0x10f)]||{};}[_0x10f70d(0x326)](_0x2b6a57){return this['_n']('isOAuthEmailAllowed',[_0x2b6a57??null]);}[_0x10f70d(0x46c)](_0x21789a){const _0x3c8e06=_0x10f70d;return this['_n'](_0x3c8e06(0x2df),[_0x21789a??null]);}['_isLoopbackIp'](_0xe4af11){const _0x541847=_0x10f70d;return this['_n'](_0x541847(0x69d),[_0xe4af11??null]);}['_isBootstrap'](){const _0xada49=_0x10f70d;return this['_n'](_0xada49(0x53d));}[_0x10f70d(0x75a)](){const _0x18ffdb=_0x10f70d;return this['_n'](_0x18ffdb(0x75a));}['getAuthOptions'](){const _0x2c64db=_0x10f70d;return this['_n'](_0x2c64db(0x2fe));}[_0x10f70d(0x55e)](_0x2dcb68){return this['_n']('issueToken',[_0x2dcb68]);}['authenticateToken'](_0x2c4a9f){return this['_n']('authenticateToken',[_0x2c4a9f]);}[_0x10f70d(0x55d)](_0x20532a){const _0x28242e=_0x10f70d;if(_0x20532a!=null&&typeof _0x20532a!==_0x28242e(0x677))throw _0x3efaf6('header',_0x28242e(0x14f),_0x20532a);return this['_n'](_0x28242e(0x55d),[_0x20532a??null]);}async[_0x10f70d(0x13f)](){const _0x1c1f22=_0x10f70d;return this['_n'](_0x1c1f22(0x619),[],!![]);}async[_0x10f70d(0x6eb)](_0x201bc1){const _0x300012=_0x10f70d;return this['_n'](_0x300012(0x467),[_0x201bc1]);}async[_0x10f70d(0x7bd)](_0x64f20c){const _0x12e193=_0x10f70d;return this['_n'](_0x12e193(0x525),[_0x64f20c]);}async['_lookupAllByName'](_0x1e6250){return this['_n']('lookupAllByName',[_0x1e6250]);}async['authenticateRequest'](_0x1471ed){const _0x2f3630=_0x10f70d,_0x5034e1=_0x1471ed?.[_0x2f3630(0x6a8)]||{};return this['_n'](_0x2f3630(0x46b),[{'remoteAddress':_0x1471ed['socket']?.[_0x2f3630(0x1e8)]??null,'internal':_0x1471ed?.[_0x2f3630(0x211)]?.[_0x2f3630(0x146)]===!![],'authorization':_0x5034e1[_0x2f3630(0x5ff)]??null,'cookies':_0x1471ed?.[_0x2f3630(0x14b)]??{}}]);}async['login'](_0x328eda,_0x108b42){const _0x1c5ef3=_0x10f70d;return this[_0x1c5ef3(0x620)](_0x1c5ef3(0x342),[_0x328eda??null,_0x108b42??null]);}async[_0x10f70d(0x302)](_0x3370d9,_0x50c575,_0x30e8ad){const _0x4e0026=_0x10f70d;return this['_nm'](_0x4e0026(0x302),[_0x3370d9??null,_0x50c575??null,_0x30e8ad??null]);}[_0x10f70d(0x2b8)](){const _0x824d70=_0x10f70d;return this['_n'](_0x824d70(0x2b8));}[_0x10f70d(0x637)](){const _0x1003e3=_0x10f70d;return this['_n'](_0x1003e3(0x637));}[_0x10f70d(0x21c)](_0x101668={},_0x406852=0x927c0){const _0x5b326d=_0x10f70d;return this['_n'](_0x5b326d(0x21c),[_0x101668,_0x406852]);}[_0x10f70d(0x3fa)](_0x59a37d){const _0x85aa02=_0x10f70d;return this['_n'](_0x85aa02(0x3fa),[_0x59a37d]);}async[_0x10f70d(0x3d9)](_0x14534d,_0x4b09f9={}){const _0x13e9e3=_0x10f70d;return this[_0x13e9e3(0x620)](_0x13e9e3(0x36a),[_0x14534d,_0x4b09f9]);}async['_getOidcDiscovery'](_0x597d18={}){const _0x2bc798=_0x10f70d;return this[_0x2bc798(0x620)](_0x2bc798(0x6de),[_0x597d18]);}['_normalizeOAuthAuthResult'](_0x38f23c){const _0xff32ca=_0x10f70d;return this['_n'](_0xff32ca(0x68f),[_0x38f23c]);}}return auth={'OKDBAuth':_0x5e59e8},auth;}var sync,hasRequiredSync;function requireSync(){const _0x172433=_0x30dd4b;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x3dc384}=requireRawdb();class _0x455513{constructor(_0x5881c5){this['_s']=_0x5881c5;}get[_0x172433(0x7f2)](){const _0x10c4ed=_0x172433;return this[_0x10c4ed(0x7a0)]||(this[_0x10c4ed(0x7a0)]=new _0x3dc384(this['_s']['okdb'][_0x10c4ed(0x2a4)],_0x10c4ed(0x57b)));}['_openAckDb'](){const _0x3a0a35=_0x172433;return this[_0x3a0a35(0x7f2)];}[_0x172433(0x473)](){return this['_ackDb'];}['_n'](_0x3428da,_0x180680=[]){const _0x29008e=_0x172433;return this['_s']['_n'](_0x29008e(0xf1)+_0x3428da,_0x180680);}[_0x172433(0x190)](_0x29337e,_0x2cd223){const _0xe9ebce=_0x172433;return this['_n'](_0xe9ebce(0x190),[_0x29337e,_0x2cd223]);}async[_0x172433(0x4f5)](_0x2c6630){const _0x5e17f3=_0x172433;return this['_n'](_0x5e17f3(0x4f5),[_0x2c6630]);}[_0x172433(0x51a)](){const _0xfa3286=_0x172433;return this['_n'](_0xfa3286(0x51a));}[_0x172433(0x704)](_0x50333d){const _0xba830a=_0x172433;return this['_n'](_0xba830a(0x704),[_0x50333d]);}async[_0x172433(0x684)](){return this['_n']('runGc');}[_0x172433(0x43d)](){const _0x27dca2=_0x172433;return this['_n'](_0x27dca2(0x43d));}['start'](){const _0xf6f63b=_0x172433;return this['_n'](_0xf6f63b(0x6ac));}[_0x172433(0x7af)](){const _0x57fad2=_0x172433;return this['_n'](_0x57fad2(0x7af));}get['_gcTimer'](){const _0x4f6c27=_0x172433;try{return this['_n'](_0x4f6c27(0x434))?{}:null;}catch{return null;}}}class _0x2fb626{constructor(_0x20ee86){const _0x539d07=_0x172433;this[_0x539d07(0x11c)]=_0x20ee86,this['gc']=new _0x455513(this);const _0x4e9c50=this;this[_0x539d07(0x3d8)]=new Proxy({},{'get':(_0x28f98c,_0x3dbd11)=>typeof _0x3dbd11===_0x539d07(0x677)?_0x4e9c50['_n'](_0x539d07(0x3d8))[_0x3dbd11]:undefined,'set':(_0x53f20a,_0x2a8b21,_0x1bb024)=>{const _0x45ea6c=_0x539d07;if(_0x2a8b21==='address')_0x4e9c50['_n'](_0x45ea6c(0x547),[_0x1bb024??null]);else{if(_0x2a8b21===_0x45ea6c(0x26e))_0x4e9c50['_n']('setToken',[_0x1bb024??null]);else{if(_0x2a8b21===_0x45ea6c(0x3d5))_0x4e9c50['_n'](_0x45ea6c(0x244),[_0x1bb024]);}}return!![];},'ownKeys':()=>Object[_0x539d07(0x2e9)](_0x4e9c50['_n'](_0x539d07(0x3d8))),'getOwnPropertyDescriptor':(_0x3afa0a,_0x2a4ca7)=>({'enumerable':!![],'configurable':!![],'value':_0x4e9c50['_n']('options')[_0x2a4ca7]}),'has':(_0x58351d,_0x19baba)=>_0x19baba in _0x4e9c50['_n'](_0x539d07(0x3d8))});}['_n'](_0xd4f200,_0x4b8bfd=[],_0x183e05=![]){const _0xdaa9ca=_0x172433;return this['okdb'][_0xdaa9ca(0x6ad)](_0xdaa9ca(0x379),null,_0xd4f200,_0x4b8bfd,_0x183e05);}[_0x172433(0x620)](_0x7d9471,_0x14f8c2=[]){const _0xbb1e7f=_0x172433;return this[_0xbb1e7f(0x11c)][_0xbb1e7f(0x5cd)](_0xbb1e7f(0x379),null,_0x7d9471,_0x14f8c2,!![]);}get[_0x172433(0x7ee)](){const _0x584515=_0x172433;return this[_0x584515(0x702)]||(this[_0x584515(0x702)]=new _0x3dc384(this[_0x584515(0x11c)][_0x584515(0x2a4)],_0x584515(0x55a)));}[_0x172433(0x333)](){const _0x3ce0c1=_0x172433;return this[_0x3ce0c1(0x7ee)];}get[_0x172433(0x130)](){const _0x4703de=_0x172433;return this[_0x4703de(0x1a1)]||(this[_0x4703de(0x1a1)]=new(requireLock())[(_0x4703de(0x1e0))](this['okdb'],_0x4703de(0x322),_0x4703de(0x379),{'ttlMs':0x7530}));}get['address'](){const _0x3fbe80=_0x172433;return this['_n']('options')[_0x3fbe80(0x294)];}get[_0x172433(0x2cd)](){const _0x49cec4=_0x172433;return this['okdb'][_0x49cec4(0x34c)]&&this['_n']('drives')?{}:null;}get[_0x172433(0x738)](){const _0x318c24=_0x172433;return this[_0x318c24(0x2cd)];}get[_0x172433(0x416)](){const _0x3a692b=_0x172433;return this['_n'](_0x3a692b(0x718))?.[_0x3a692b(0x22e)];}get['_nodePublicKey'](){return this['_n']('nodeKeys')?.['publicKey'];}[_0x172433(0x2d0)](){const _0xd829d7=_0x172433;return this['_n'](_0xd829d7(0x2d0));}[_0x172433(0x16f)](){const _0x27bfbd=_0x172433;return this['_n'](_0x27bfbd(0x16f));}get[_0x172433(0x649)](){const _0x58203a=_0x172433;return this['__peers']||(()=>this['_n'](_0x58203a(0x649)));}set['peers'](_0x399113){const _0x33ea53=_0x172433;this[_0x33ea53(0x37f)]=typeof _0x399113==='function'?_0x399113:null,this['_n'](_0x33ea53(0x79d),[this[_0x33ea53(0x37f)]]);}['_listPeers'](){const _0xd2423e=_0x172433;return this['_n'](_0xd2423e(0x6e5));}async['reconcile'](){const _0x1301ae=_0x172433;return this[_0x1301ae(0x620)](_0x1301ae(0x220));}async[_0x172433(0x3cb)](_0x3b8060){const _0x2a98ff=_0x172433;return this[_0x2a98ff(0x620)](_0x2a98ff(0x3cb),[_0x3b8060]);}async[_0x172433(0x7b0)](_0x34e18f,_0x28c18b={}){const _0x2ccde8=_0x172433;return this[_0x2ccde8(0x620)](_0x2ccde8(0x24c),[_0x34e18f,_0x28c18b]);}['stop'](){const _0x58218e=_0x172433;return this['_n'](_0x58218e(0x7af));}[_0x172433(0x353)](){return this['_n']('listLinks');}async[_0x172433(0x4ae)](_0x3f837d,_0xab772f={}){return this['_n']('upsertLink',[_0x3f837d,_0xab772f],!![]);}async[_0x172433(0x410)](_0x522cc){return this['_n']('removeLink',[_0x522cc],!![]);}[_0x172433(0x52c)](_0x5295a9){const _0x1cca8b=_0x172433;return this['_n'](_0x1cca8b(0x34d),[_0x5295a9]);}[_0x172433(0x6ba)](_0x3e233b){const _0x278f4e=_0x172433;return this['_n'](_0x278f4e(0x53e),[_0x3e233b]);}async[_0x172433(0x156)](_0x480c42,_0x203cbf,_0x5b1fa8={}){const _0xc701f0=_0x172433;return this['_n'](_0xc701f0(0x41c),[_0x480c42,_0x203cbf,_0x5b1fa8]);}async[_0x172433(0x548)](_0x25b96a){const _0x1a5509=_0x172433;return this['_n'](_0x1a5509(0x59f),[_0x25b96a]);}async[_0x172433(0x32f)](){const _0x1a831d=_0x172433;return this['_n'](_0x1a831d(0x27e),[],!![]);}async['patchSelf'](_0x69111c){const _0x854e22=_0x172433;return this['_n'](_0x854e22(0x136),[_0x69111c],!![]);}async[_0x172433(0x78e)](_0x37d35a,_0x254351={}){const _0xc7d69b=_0x172433;return this[_0xc7d69b(0x620)]('join',[_0x37d35a,_0x254351]);}async[_0x172433(0x5e5)](_0x340777={},_0x556bb5={}){return void _0x340777['~system'],this['_n']('calculateDelta',[_0x340777,_0x556bb5]);}async['fetchPeer'](_0x1e5f2a,_0x4b1e83,_0xd2a078,_0x402aa2){const _0x4c23c3=_0x172433;return this[_0x4c23c3(0x620)](_0x4c23c3(0x6e7),[_0x1e5f2a,_0x4b1e83,_0xd2a078,_0x402aa2??null]);}async['fetchRemoteDelta'](_0x2ab82a,_0x54a41d,_0x244706={}){const _0x3cc7ed=_0x172433;return this[_0x3cc7ed(0x620)]('fetchRemoteDelta',[_0x2ab82a,_0x54a41d,_0x244706]);}[_0x172433(0x153)](_0xd8887c,_0x502406=null){const _0x410748=_0x172433;return this['_n']('shouldApplyChange',[_0xd8887c,_0x502406?_0x502406[_0x410748(0x331)]:null]);}[_0x172433(0x402)](_0xd201f2,_0x35c79c=null){const _0x10b500=_0x172433;return this['_n'](_0x10b500(0x402),[_0xd201f2,_0x35c79c?_0x35c79c[_0x10b500(0x331)]:null],!![]);}}return sync={'OKDBSync':_0x2fb626},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x57b252=_0x30dd4b;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x591262}=requireErrors(),_0x5adb98=require$$0,_0x1ce134=require$$3,_0x13ecf7=0x40*0x400;async function _0x455715(_0x1ad48f,_0x4452bb){const _0x4bedbd=_0x5df8;for(let _0x333189=0x0;_0x333189<_0x4452bb[_0x4bedbd(0x306)];){let _0x62778e=Math[_0x4bedbd(0x6fa)](_0x4452bb[_0x4bedbd(0x306)],_0x333189+_0x13ecf7);if(_0x62778e<_0x4452bb[_0x4bedbd(0x306)]){const _0x4b9620=_0x4452bb[_0x4bedbd(0x601)](0xa,_0x62778e-0x1);_0x62778e=_0x4b9620===-0x1?_0x4452bb[_0x4bedbd(0x306)]:_0x4b9620+0x1;}const _0x4e55d6=_0x1ad48f[_0x4bedbd(0x438)](_0x4452bb[_0x4bedbd(0x362)](_0x333189,_0x62778e));_0x333189=_0x62778e;if(!_0x4e55d6)await new Promise(_0x5a3d6a=>_0x1ad48f[_0x4bedbd(0x511)](_0x4bedbd(0x6bb),_0x5a3d6a));await new Promise(_0x54ec82=>setImmediate(_0x54ec82));}}async function _0x22903a(_0x357f29){const _0x38424a=_0x5df8,_0x2d54c0=[];for await(const _0x15af2e of _0x357f29)_0x2d54c0['push'](Buffer[_0x38424a(0x157)](_0x15af2e)?_0x15af2e:Buffer[_0x38424a(0x320)](_0x15af2e,_0x38424a(0x75e)));return Buffer[_0x38424a(0x4d6)](_0x2d54c0);}class _0x2f3ccc{constructor(_0x2cee1a){const _0x1ed10e=_0x5df8;this[_0x1ed10e(0x11c)]=_0x2cee1a;}['_n'](_0x1e09a6,_0x3184ab){const _0x4ba844=_0x5df8;return this[_0x4ba844(0x11c)][_0x4ba844(0x6ad)](_0x4ba844(0x784),null,_0x1e09a6,_0x3184ab,!![]);}async['exportToStream'](_0x444977,_0x510ab1={}){const _0x4e15cd=_0x5df8,{data:_0x53fc24,stats:_0x56d99e}=this['_n'](_0x4e15cd(0x212),[_0x510ab1]);return await _0x455715(_0x444977,Buffer['from'](_0x53fc24)),_0x56d99e;}async['exportToFile'](_0x2b07ca,_0x177786={}){const _0x3faef8=_0x5df8;_0x5adb98['mkdirSync'](_0x1ce134[_0x3faef8(0x7d6)](_0x2b07ca),{'recursive':!![]});const _0x118571=_0x5adb98[_0x3faef8(0x5ea)](_0x2b07ca),_0x19f75e=await this[_0x3faef8(0x483)](_0x118571,_0x177786);return await new Promise((_0x16773a,_0x2bc1be)=>{const _0x491383=_0x3faef8;_0x118571['end'](),_0x118571['once'](_0x491383(0x4f1),_0x16773a),_0x118571[_0x491383(0x511)](_0x491383(0x561),_0x2bc1be);}),{..._0x19f75e,'filePath':_0x2b07ca};}async[_0x57b252(0x5e8)](_0x1ecc37,_0x5cee66={}){const _0x1644e1=_0x57b252,{data:_0x51778a,stats:_0x42b4ab}=this['_n'](_0x1644e1(0x1ed),[_0x5cee66]);return await _0x455715(_0x1ecc37,Buffer[_0x1644e1(0x320)](_0x51778a)),_0x42b4ab;}async[_0x57b252(0x452)](_0x5b8d70,_0x20f829={}){const _0x16ee9d=_0x57b252,_0xfa04d8=await _0x22903a(_0x5b8d70),{onProgress:_0x4d28f1,..._0x257aa4}=_0x20f829,_0x3f0aa7=this['_n'](_0x16ee9d(0x31e),[_0xfa04d8,_0x257aa4]);if(typeof _0x4d28f1===_0x16ee9d(0x1ea))_0x4d28f1({'type':null,'count':_0x3f0aa7[_0x16ee9d(0x2a6)]});return _0x3f0aa7;}async['importFromFile'](_0x31edd9,_0x5de608={}){const _0x2b7207=_0x57b252;return this[_0x2b7207(0x452)](_0x5adb98['createReadStream'](_0x31edd9,{'encoding':_0x2b7207(0x75e)}),_0x5de608);}async[_0x57b252(0x6e8)](_0x3081a2,_0x3100d8={}){const _0x49e4fe=_0x57b252;return this['_n'](_0x49e4fe(0x6e8),[_0x3081a2,_0x3100d8]);}['backupRoot'](){const _0x5a995e=_0x57b252;return this['_n'](_0x5a995e(0x305),[]);}[_0x57b252(0x38b)](_0x32ad02){const _0xf481e5=_0x57b252;return this['_n'](_0xf481e5(0x38b),[_0x32ad02??null]);}async['export'](_0x37daf8={}){return this['_n']('export',[_0x37daf8]);}async[_0x57b252(0x668)](_0x2d0cbe,_0x59b20d={}){const _0x3bae05=_0x57b252;return this['_n'](_0x3bae05(0x668),[_0x2d0cbe,_0x59b20d]);}async[_0x57b252(0x4e7)](_0x5e5877){const _0x576990=_0x57b252,{pretty:pretty=![]}=_0x591262(_0x5e5877);return JSON[_0x576990(0x34b)](await this[_0x576990(0x686)](),null,pretty?0x2:0x0);}async['importJSON'](_0x445678){const _0x8866dc=_0x57b252;return this[_0x8866dc(0x668)](JSON['parse'](_0x445678));}[_0x57b252(0x38e)](){const _0x569c68=_0x57b252;if(!this[_0x569c68(0x11c)][_0x569c68(0x2e5)][_0x569c68(0x759)](_0x569c68(0x1e3))?.['files'])throw new Error('files\x20feature\x20not\x20available');}async['exportBlobs'](_0x246fc2){const _0x4080c3=_0x57b252;return this[_0x4080c3(0x38e)](),this['_n']('exportBlobs',[_0x246fc2]);}async[_0x57b252(0x3eb)](_0x3e5b1e){const _0x44ad93=_0x57b252;return this[_0x44ad93(0x38e)](),this['_n'](_0x44ad93(0x3eb),[_0x3e5b1e]);}[_0x57b252(0x46e)](){const _0x335dae=_0x57b252;return this['_n'](_0x335dae(0x4bd),[])[_0x335dae(0x3e7)](_0x236650=>this[_0x335dae(0x11c)]['env'](_0x236650));}async[_0x57b252(0x713)](){const _0x2b097a=_0x57b252;return this['_assertFiles'](),this['_n'](_0x2b097a(0x713),[]);}async['repairBlobRefs'](){const _0x3f2838=_0x57b252;return this[_0x3f2838(0x38e)](),this['_n'](_0x3f2838(0x3df),[]);}}return migrate={'OKDBMigrate':_0x2f3ccc},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x2f8a07=_0x30dd4b;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x167100{constructor(_0x28b94b){const _0x3f3562=_0x5df8;this[_0x3f3562(0x11c)]=_0x28b94b,this[_0x3f3562(0x31a)]=new Map();}['_n'](_0x2078be,_0x17a36d){const _0x50ea72=_0x5df8;try{return this[_0x50ea72(0x11c)][_0x50ea72(0x6ad)](_0x50ea72(0x201),null,_0x2078be,_0x17a36d,!![]);}catch(_0x552784){if(_0x552784&&_0x552784[_0x50ea72(0x1a8)]===_0x50ea72(0x3b3)&&_0x552784[_0x50ea72(0x77d)]){if(_0x552784[_0x50ea72(0x77d)]['jsonrpcCode']!==undefined)_0x552784['jsonrpcCode']=_0x552784['details']['jsonrpcCode'];_0x552784[_0x50ea72(0x77d)]=_0x552784['details'][_0x50ea72(0x77d)],_0x552784['code']=undefined;}throw _0x552784;}}[_0x2f8a07(0x57e)](){const _0x463fd3=_0x2f8a07;return this['_n'](_0x463fd3(0x721),[]);}async[_0x2f8a07(0x6ad)](_0x3f271f,_0x3c0ed5={}){const _0xe916a7=_0x2f8a07;return this['_n'](_0xe916a7(0x39c),[_0x3f271f??null,_0x3c0ed5??{}]);}async[_0x2f8a07(0x29d)](_0x4ac9e9,_0x820115={}){return this['_n']('handle',[_0x4ac9e9,_0x820115??{}]);}[_0x2f8a07(0x346)](_0x5351e0){const _0x2a6c13=_0x2f8a07;return this['_n'](_0x2a6c13(0x72d),[_0x5351e0??null]);}}return mcp={'OKDBMcp':_0x167100},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x43c041=_0x30dd4b;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x2d10db(_0x460492,_0x4ed079,_0x48ca48){const _0x47e8b1=_0x5df8,_0x4fd9a9={};for(const [_0x20d356,_0x4a4b5b]of Object['entries'](_0x48ca48)){_0x4fd9a9[_0x20d356]=_0x4a4b5b===_0x47e8b1(0x459)?async(..._0x7fbc23)=>_0x460492['_call'](_0x4ed079,null,_0x20d356,_0x7fbc23):(..._0x36c128)=>_0x460492[_0x47e8b1(0x6ad)](_0x4ed079,null,_0x20d356,_0x36c128,![]);}return _0x4fd9a9;}const _0x45a12d=[_0x43c041(0x5bc),'isType','describeType',_0x43c041(0x386),_0x43c041(0x3c7),'isIndex',_0x43c041(0x76a),_0x43c041(0x324),_0x43c041(0x29c),_0x43c041(0x360),'indexStats',_0x43c041(0x33f),_0x43c041(0x41a),_0x43c041(0x22f),_0x43c041(0x3ad),'getIndexCount','isTypeEmpty',_0x43c041(0x439),_0x43c041(0x185),'recomputeFields',_0x43c041(0x769)],_0x468598={'add':_0x43c041(0x459),'activate':'async','remove':_0x43c041(0x459),'list':_0x43c041(0x379),'get':_0x43c041(0x379),'effective':_0x43c041(0x379)},_0x136607={'open':'async','register':_0x43c041(0x459),'buildOwnRow':_0x43c041(0x379),'_buildProcessingFacet':_0x43c041(0x379),'reportThreadStats':'sync','clearThreadStats':'sync','emitProc':_0x43c041(0x379),'addSupervisedChild':_0x43c041(0x459),'removeSupervisedChild':'sync','updateSupervisedChildStats':_0x43c041(0x379),'publishChildRow':_0x43c041(0x459),'putNode':_0x43c041(0x459),'removeNode':'async','nodeDead':_0x43c041(0x379),'listNodes':_0x43c041(0x379),'reap':'async','publishOwnRow':_0x43c041(0x459),'deregisterSelf':_0x43c041(0x459),'setOwnMeta':_0x43c041(0x379),'noteListenAddr':_0x43c041(0x379),'hasDesired':'sync','getDesired':_0x43c041(0x379),'setDesired':_0x43c041(0x459),'listDesired':_0x43c041(0x379),'getCmd':'sync','bumpCmd':_0x43c041(0x459),'processingStatusView':'sync','processorsView':_0x43c041(0x379),'clusterStatusView':_0x43c041(0x379),'nodesView':_0x43c041(0x379),'treeView':_0x43c041(0x379),'getProcess':_0x43c041(0x379),'runtimeProcessesView':_0x43c041(0x379)};function _0x21ae1c(_0x3a9c2b){const _0x436815=_0x43c041,_0x59fe75={},_0x424e5a=_0x34f5bd=>_0x34f5bd&&typeof _0x34f5bd===_0x436815(0x218)&&!Array['isArray'](_0x34f5bd)&&typeof _0x34f5bd[_0x436815(0x331)]==='string'?_0x34f5bd[_0x436815(0x331)]:_0x34f5bd;for(const _0x51a843 of _0x45a12d)_0x59fe75[_0x51a843]=_0x51a843==='recomputeFields'?async(..._0x4c7392)=>_0x3a9c2b['_call'](_0x436815(0x22f),null,_0x51a843,_0x4c7392[_0x436815(0x3e7)](_0x424e5a),!![]):(..._0x164346)=>_0x3a9c2b[_0x436815(0x6ad)](_0x436815(0x22f),null,_0x51a843,_0x164346[_0x436815(0x3e7)](_0x424e5a),![]);return _0x59fe75;}function _0x67b766(_0x50a0fe){const _0x26f8bd=_0x43c041,_0x2ef1ee=_0x2d10db(_0x50a0fe,_0x26f8bd(0x107),_0x468598);return _0x2ef1ee;}function _0x474d67(_0x55a3c5){const _0x4e10f9=_0x43c041,_0x3f0bea=()=>_0x55a3c5['licenses'][_0x4e10f9(0x791)](),_0x220282=_0x1b62d6=>_0x1b62d6[_0x4e10f9(0x56c)]?{..._0x1b62d6,'_isFree':!![]}:_0x1b62d6;return{async 'addLicense'(_0x4faec3){const _0x1f0d64=_0x4e10f9;return _0x55a3c5[_0x1f0d64(0x107)]['add'](_0x4faec3);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x516e94=_0x4e10f9,_0x16bb67=_0x3f0bea();return _0x16bb67[_0x516e94(0x56c)]?null:_0x16bb67;},get 'effective'(){return _0x220282(_0x3f0bea());},'hasLimit'(_0x5d1ca5){const _0x690723=_0x4e10f9,_0x397793=_0x3f0bea();if(!_0x397793[_0x690723(0x4ad)])return![];const _0x5df1a8=_0x397793[_0x690723(0x7ef)]?.[_0x5d1ca5];return!(_0x5df1a8===null||_0x5df1a8===undefined||_0x5df1a8===0x0);},'isFeatureEnabled'(_0x329f87){const _0x5c2ca4=_0x4e10f9,_0x97d6a9=_0x3f0bea();return!_0x97d6a9['enforced']||!!_0x97d6a9[_0x5c2ca4(0x4ee)]?.[_0x329f87];},'assertFeature'(_0x109227){const _0x3c1be3=_0x4e10f9,_0x1a56c1=_0x3f0bea();if(!_0x1a56c1[_0x3c1be3(0x4ad)]||_0x1a56c1[_0x3c1be3(0x4ee)]?.[_0x109227])return;const {OKDBError:_0x112a63}=requireErrors(),_0x4929bf=_0x1a56c1[_0x3c1be3(0x56c)]?_0x3c1be3(0x132)+_0x109227+_0x3c1be3(0x4b4)+_0x109227+_0x3c1be3(0x748):'Feature\x20not\x20licensed:\x20'+_0x109227+_0x3c1be3(0x2b4)+_0x109227+'\x22.';throw new _0x112a63(_0x4929bf,_0x3c1be3(0x5aa),{'feature':_0x109227});},'assertLimit'(_0x53d822,_0x15bfe3){const _0x388aeb=_0x4e10f9,_0x26fcb0=_0x3f0bea();if(!_0x26fcb0[_0x388aeb(0x4ad)])return;const _0x5ce565=_0x26fcb0['limits']?.[_0x53d822];if(_0x5ce565===null||_0x5ce565===undefined||_0x5ce565===0x0)return;if(_0x15bfe3>=_0x5ce565){const {OKDBError:_0x338748}=requireErrors();throw new _0x338748('License\x20limit\x20exceeded:\x20'+_0x53d822+'\x20('+_0x15bfe3+'/'+_0x5ce565+')','LICENSE_LIMIT_EXCEEDED',{'limit':_0x53d822,'current':_0x15bfe3,'max':_0x5ce565});}},'listLicenses'(){const _0xec399f=_0x4e10f9;return _0x55a3c5[_0xec399f(0x107)][_0xec399f(0x68a)]();},'getPins'(){const _0x5e7896=_0x4e10f9;return _0x55a3c5[_0x5e7896(0x107)][_0x5e7896(0x68a)]()[_0x5e7896(0x3e7)](_0x3561b9=>({'licenseId':_0x3561b9['id'],'pin':_0x3561b9[_0x5e7896(0x705)]==='open'?null:_0x3561b9[_0x5e7896(0x567)]}));}};}function _0x20d0c9(_0x430168){const _0xf8214d=_0x43c041,_0x60adb1=_0x2d10db(_0x430168,_0xf8214d(0x18e),_0x136607);Object[_0xf8214d(0x522)](_0x60adb1,_0xf8214d(0x1eb),{'get':()=>_0x430168[_0xf8214d(0x6ad)](_0xf8214d(0x18e),null,_0xf8214d(0x1eb),[],![])}),Object[_0xf8214d(0x522)](_0x60adb1,_0xf8214d(0x747),{'get':()=>_0x430168[_0xf8214d(0x6ad)](_0xf8214d(0x18e),null,_0xf8214d(0x747),[],![])}),_0x60adb1['_listenAddr']=null;const _0x38e503=_0x60adb1[_0xf8214d(0x792)];_0x60adb1['noteListenAddr']=_0x5ebbdd=>{const _0x28592b=_0xf8214d;return _0x60adb1[_0x28592b(0x332)]=_0x5ebbdd,_0x38e503(_0x5ebbdd);};const _0x153972=()=>_0x60adb1[_0xf8214d(0x644)]()['map'](_0x29e73a=>({'key':_0x29e73a[_0xf8214d(0x71b)],'value':_0x29e73a,'version':0x1})),_0x20050a={'name':_0xf8214d(0x550),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x13c4f9=>_0x13c4f9===_0xf8214d(0x7e8),'getRange':_0xb945c6=>_0xb945c6===_0xf8214d(0x7e8)?_0x153972()[Symbol[_0xf8214d(0x527)]]():[][Symbol[_0xf8214d(0x527)]](),'getKeys':_0x318f02=>_0x318f02===_0xf8214d(0x7e8)?_0x153972()[_0xf8214d(0x3e7)](_0x160b67=>_0x160b67[_0xf8214d(0xfb)])[Symbol[_0xf8214d(0x527)]]():[][Symbol['iterator']](),'getValues':_0x48aa1d=>_0x48aa1d===_0xf8214d(0x7e8)?_0x153972()[_0xf8214d(0x3e7)](_0x4d016a=>_0x4d016a[_0xf8214d(0x2e6)])[Symbol['iterator']]():[][Symbol[_0xf8214d(0x527)]](),'get':(_0x2b67b7,_0x4d810a)=>_0x2b67b7===_0xf8214d(0x7e8)?_0x153972()['find'](_0x15a182=>_0x15a182[_0xf8214d(0xfb)]===_0x4d810a)?.[_0xf8214d(0x2e6)]:undefined,'getCount':_0x291da3=>_0x291da3===_0xf8214d(0x7e8)?_0x153972()[_0xf8214d(0x306)]:0x0};Object['defineProperty'](_0x60adb1,_0xf8214d(0x4a3),{'get':()=>_0x430168['_call'](_0xf8214d(0x18e),null,_0xf8214d(0x5d1),[],![])?_0x20050a:null});const _0x2f1787=_0x60adb1[_0xf8214d(0x670)];_0x60adb1[_0xf8214d(0x670)]=async _0x38b295=>{const _0x3a541e=_0xf8214d;return await _0x2f1787(_0x38b295),_0x60adb1[_0x3a541e(0x4a3)];},_0x60adb1['_ensureDesired']=()=>_0x430168[_0xf8214d(0x6ad)](_0xf8214d(0x18e),null,_0xf8214d(0x453),[],!![]);const {RawDb:_0x47ae8e}=requireRawdb();return Object[_0xf8214d(0x522)](_0x60adb1,_0xf8214d(0x6af),{'get':()=>_0x430168['_systemEnv']?_0x60adb1['__desired']||=new _0x47ae8e(_0x430168['_systemEnv'],_0xf8214d(0x1ff)):undefined}),Object['defineProperty'](_0x60adb1,'_cmd',{'get':()=>_0x430168[_0xf8214d(0x2a4)]?_0x60adb1[_0xf8214d(0x7bb)]||=new _0x47ae8e(_0x430168[_0xf8214d(0x2a4)],_0xf8214d(0x71a)):undefined}),_0x60adb1[_0xf8214d(0x7e3)]=()=>_0x430168[_0xf8214d(0x6ad)](_0xf8214d(0x18e),null,_0xf8214d(0x7e3),[],![]),Object[_0xf8214d(0x522)](_0x60adb1,_0xf8214d(0x6df),{'get':()=>_0x430168[_0xf8214d(0x6ad)](_0xf8214d(0x18e),null,_0xf8214d(0x2c7),[],![])}),Object[_0xf8214d(0x522)](_0x60adb1,_0xf8214d(0x2da),{'get':()=>_0x430168['_call']('processes',null,_0xf8214d(0x7a7),[],![])}),_0x60adb1['_buildOwnRow']=()=>_0x430168[_0xf8214d(0x6ad)](_0xf8214d(0x18e),null,_0xf8214d(0x7bf),[],![]),_0x60adb1[_0xf8214d(0x69f)]=(_0xdfa02e,_0x33d3f4)=>_0x430168[_0xf8214d(0x6ad)](_0xf8214d(0x18e),null,_0xf8214d(0x674),[_0xdfa02e,_0x33d3f4],![]),_0x60adb1;}return sys={'makeMeta':_0x21ae1c,'makeLicenses':_0x67b766,'makeLicenseChecker':_0x474d67,'makeProcesses':_0x20d0c9},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0xff9cb8=_0x30dd4b;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x5c00f4={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x4cfd2c{constructor(_0x493d3a){const _0x27806a=_0x5df8;this[_0x27806a(0x11c)]=_0x493d3a,this[_0x27806a(0xf5)]=new Set(),this[_0x27806a(0x492)]={};}[_0xff9cb8(0x714)](_0x5223c2){const _0x1f2105=_0xff9cb8,_0x3e6999=new _0x4cfd2c(this[_0x1f2105(0x11c)]);return _0x3e6999[_0x1f2105(0xf5)]=this[_0x1f2105(0xf5)],_0x3e6999[_0x1f2105(0x492)]={...this[_0x1f2105(0x492)],..._0x5223c2},_0x3e6999;}[_0xff9cb8(0x7b7)](_0x4746c8){const _0xd1b83=_0xff9cb8;return this[_0xd1b83(0xf5)][_0xd1b83(0x241)](_0x4746c8),()=>this['_sinks'][_0xd1b83(0x5cb)](_0x4746c8);}[_0xff9cb8(0x77e)](){const _0x385644=_0xff9cb8,_0x2bdba5=_0x5c00f4[process.env.OKDB_LOG_LEVEL]??_0x5c00f4[_0x385644(0x2d0)];return this[_0x385644(0x164)]=this[_0x385644(0x7b7)](({level:_0x334d99,msg:_0x495098,meta:_0x3c4686,context:_0x591357,ts:_0x5857bc})=>{const _0x4d3c64=_0x385644;if((_0x5c00f4[_0x334d99]??_0x5c00f4[_0x4d3c64(0x2d0)])<_0x2bdba5)return;if(_0x3c4686?.[_0x4d3c64(0x55f)]===_0x4d3c64(0x3f8)&&(_0x334d99==='info'||_0x334d99===_0x4d3c64(0x697)))return;const _0x1b7830=_0x334d99===_0x4d3c64(0x561)?console['error']:_0x334d99==='warn'?console[_0x4d3c64(0x5e2)]:_0x334d99===_0x4d3c64(0x2d0)?console[_0x4d3c64(0x2d0)]:console[_0x4d3c64(0x4d2)],_0x50a087=_0x3c4686&&Object['keys'](_0x3c4686)[_0x4d3c64(0x306)]>0x0;_0x50a087||_0x591357!==undefined?_0x1b7830(new Date(_0x5857bc)[_0x4d3c64(0x4aa)](),_0x495098,..._0x50a087?[_0x3c4686]:[],..._0x591357!==undefined?[_0x591357]:[]):_0x1b7830(new Date(_0x5857bc)[_0x4d3c64(0x4aa)](),_0x495098);}),this['_detachConsole'];}[_0xff9cb8(0x264)](){const _0x420139=_0xff9cb8;this[_0x420139(0x164)]&&(this['_detachConsole'](),this[_0x420139(0x164)]=null);}[_0xff9cb8(0x4ac)](_0x26d4aa,_0x1d1fe7){const _0xaa48f=_0xff9cb8,_0x853f8f=require$$0$4,_0x31153f=0x1f4,_0x3fd82d=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x54f790=[],_0x11b5f0=0x0,_0x1ed2a0=null;const _0x2ba0f0=()=>{const _0x107da6=_0x5df8;_0x1ed2a0=null;if(_0x54f790[_0x107da6(0x306)]===0x0)return;const _0x43d717=_0x54f790;_0x54f790=[],_0x11b5f0>0x0&&(_0x43d717[_0x107da6(0x150)]({'ts':Date[_0x107da6(0x466)](),'level':_0x107da6(0x5e2),'msg':_0x107da6(0x40c)+_0x11b5f0+'\x20log\x20entr'+(_0x11b5f0===0x1?'y':'ies')+_0x107da6(0x30c),'feature':_0x107da6(0x4d2),'node':_0x1d1fe7,'context':null}),_0x11b5f0=0x0),_0x26d4aa[_0x107da6(0x343)](_0x483443=>{const _0x4493a9=_0x107da6;for(const _0x2cef2f of _0x43d717)_0x483443[_0x4493a9(0x77a)](_0x4493a9(0x4b9),_0x853f8f['randomUUID'](),_0x2cef2f);})['catch'](()=>{});},_0x79f138=this[_0xaa48f(0x7b7)](({level:_0x15edad,msg:_0x786c43,meta:_0x3d9902,context:_0x93c38b,ts:_0x580a56})=>{const _0x350ad4=_0xaa48f;if(_0x15edad===_0x350ad4(0x697))return;_0x54f790[_0x350ad4(0x306)]>=_0x31153f&&(_0x11b5f0++,_0x54f790[_0x350ad4(0x615)]()),_0x54f790['push']({'ts':_0x580a56,'level':_0x15edad,'msg':_0x786c43,'feature':_0x3d9902?.[_0x350ad4(0x55f)]??_0x3d9902?.[_0x350ad4(0x3a1)]??null,'node':_0x1d1fe7,'context':_0x93c38b??null}),!_0x1ed2a0&&(_0x1ed2a0=setTimeout(_0x2ba0f0,_0x3fd82d),_0x1ed2a0[_0x350ad4(0x4ff)]?.());});return()=>{_0x79f138();if(_0x1ed2a0)clearTimeout(_0x1ed2a0);_0x2ba0f0();};}[_0xff9cb8(0x143)](_0x7c0287,_0x7b76e,_0x10750a){const _0x4ce18d=_0xff9cb8;_0x7b76e instanceof Error&&(_0x10750a={'message':_0x7b76e[_0x4ce18d(0x3f9)],'stack':_0x7b76e[_0x4ce18d(0x5e6)],..._0x10750a},_0x7b76e=_0x7b76e[_0x4ce18d(0x3f9)]);const _0x119abb={'level':_0x7c0287,'msg':_0x7b76e,'meta':{...this[_0x4ce18d(0x492)]},'context':_0x10750a,'ts':Date[_0x4ce18d(0x466)]()};try{this['okdb'][_0x4ce18d(0x3a0)][_0x4ce18d(0x663)]('log',_0x119abb);}catch{}for(const _0x5a75ab of this[_0x4ce18d(0xf5)]){try{_0x5a75ab(_0x119abb);}catch{}}}[_0xff9cb8(0x1e5)](_0x5d74db){const _0x3b188b=_0xff9cb8;try{this[_0x3b188b(0x11c)]?.[_0x3b188b(0x3a0)]?.[_0x3b188b(0x663)]('log',_0x5d74db);}catch{}for(const _0x46c236 of this[_0x3b188b(0xf5)]){try{_0x46c236(_0x5d74db);}catch{}}}[_0xff9cb8(0x2d0)](_0x278bdb,_0x3a93e3){const _0x2f277f=_0xff9cb8;this[_0x2f277f(0x143)]('info',_0x278bdb,_0x3a93e3);}[_0xff9cb8(0x5e2)](_0x501481,_0x5a7f56){const _0x37c3db=_0xff9cb8;this[_0x37c3db(0x143)]('warn',_0x501481,_0x5a7f56);}['error'](_0x5c5077,_0x49417a){const _0x38ffa2=_0xff9cb8;this[_0x38ffa2(0x143)]('error',_0x5c5077,_0x49417a);}[_0xff9cb8(0x697)](_0x4873a2,_0x4f708b){const _0x31c9df=_0xff9cb8;this[_0x31c9df(0x143)](_0x31c9df(0x697),_0x4873a2,_0x4f708b);}}return okdbLogger=_0x4cfd2c,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x24f295=_0x30dd4b;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x2b4b1a}=requireOkdbEnums(),{OKDBError:_0x308a29}=requireOkdbError();class _0x2b2530{constructor(_0x1c3dbf){const _0x369c76=_0x5df8;this[_0x369c76(0x11c)]=_0x1c3dbf,this['_plugins']=[];}[_0x24f295(0x683)](_0x50557b,_0x3c6224){const _0xc90c58=_0x24f295;if(this['okdb']['state']!==_0x2b4b1a[_0xc90c58(0x37d)])throw new _0x308a29('Cannot\x20register\x20plugins\x20after\x20start',_0xc90c58(0x45c),{'state':this[_0xc90c58(0x11c)][_0xc90c58(0x70c)]});if(!_0x50557b['name'])throw new _0x308a29(_0xc90c58(0x715),_0xc90c58(0x71d),{'plugin':_0x50557b[_0xc90c58(0x331)]});const _0x26412b=_0x50557b[_0xc90c58(0x563)]??[];for(const _0x915328 of _0x26412b){if(!this[_0xc90c58(0x4bb)][_0xc90c58(0x7d3)](_0x1cb81c=>_0x1cb81c[_0xc90c58(0x3a1)]['name']===_0x915328))throw new _0x308a29(_0xc90c58(0x524)+_0x915328+_0xc90c58(0x633)+_0x50557b[_0xc90c58(0x331)]+')',_0xc90c58(0x503),{'required':_0x915328});}if(this[_0xc90c58(0x4bb)][_0xc90c58(0x6bf)](_0x5885be=>_0x5885be[_0xc90c58(0x3a1)][_0xc90c58(0x331)]===_0x50557b['name']))throw new _0x308a29('Plugin\x20\x27'+_0x50557b[_0xc90c58(0x331)]+_0xc90c58(0x5f7),_0xc90c58(0x36e),{'plugin':_0x50557b[_0xc90c58(0x331)]});if(_0x50557b['name']in this[_0xc90c58(0x11c)])throw new _0x308a29('Plugin\x20name\x20\x27'+_0x50557b['name']+_0xc90c58(0x2a1),_0xc90c58(0x4a8));const _0x20dd8a=_0x50557b['register'](this['okdb'],_0x3c6224);if(!_0x20dd8a||typeof _0x20dd8a!==_0xc90c58(0x218))throw new _0x308a29(_0xc90c58(0x727)+_0x50557b[_0xc90c58(0x331)]+_0xc90c58(0x734),_0xc90c58(0x71d),{'plugin':_0x50557b[_0xc90c58(0x331)]});this[_0xc90c58(0x4bb)][_0xc90c58(0x150)]({'module':_0x50557b,'options':_0x3c6224,'instance':_0x20dd8a});}[_0x24f295(0x355)]=[];async[_0x24f295(0x6ac)](){const _0x26147f=_0x24f295;try{for(const _0x3aebdd of this[_0x26147f(0x4bb)]){await _0x3aebdd[_0x26147f(0x781)][_0x26147f(0x6ac)]?.(this[_0x26147f(0x11c)]),this[_0x26147f(0x355)][_0x26147f(0x150)](_0x3aebdd);}}catch(_0xa69c53){await this[_0x26147f(0x7af)]()[_0x26147f(0x22b)](()=>{});throw _0xa69c53;}}async['stop'](){const _0x32d957=_0x24f295,_0x113118=this[_0x32d957(0x355)][_0x32d957(0x68e)]();this[_0x32d957(0x355)]=[];let _0x35b441=null;for(const _0x53317e of _0x113118){try{await _0x53317e['instance'][_0x32d957(0x7af)]?.(this[_0x32d957(0x11c)]);}catch(_0x4a2b2c){_0x35b441??=_0x4a2b2c;}}if(_0x35b441)throw _0x35b441;}}return okdbPlugins=_0x2b2530,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x2ae2c5=_0x30dd4b;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x2be590={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x2ae2c5(0x76d)},_0x39a48a=new Set(['maxDbs',_0x2ae2c5(0x6b5),'compression','encryptionKey',_0x2ae2c5(0x3f2),_0x2ae2c5(0x39b),_0x2ae2c5(0x179),'lmdb',_0x2ae2c5(0x536),_0x2ae2c5(0x379),'queue','functions',_0x2ae2c5(0x464),'mcp',_0x2ae2c5(0x6f0),_0x2ae2c5(0x4d2),_0x2ae2c5(0x582),_0x2ae2c5(0x46a),_0x2ae2c5(0x3f4),_0x2ae2c5(0x10e),_0x2ae2c5(0x531),_0x2ae2c5(0x18e),_0x2ae2c5(0x5eb),'api',_0x2ae2c5(0x70a),'subscriptions','debug',_0x2ae2c5(0x1bd),'backup']),_0x522b0d={'http':_0x2ae2c5(0x4b5)};return statics={'defaults':_0x2be590,'KNOWN_OPTIONS':_0x39a48a,'_OPTION_HINTS':_0x522b0d},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x4eb73a=_0x30dd4b;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x1c0ca9=require$$0$2,_0x325f6d=_0x4eb73a(0x552),_0x3fb410=_0x1c0ca9[_0x4eb73a(0x578)](_0x4eb73a(0x166))[_0x4eb73a(0x5fa)](_0x1c0ca9[_0x4eb73a(0x1f6)](_0x325f6d)['export']({'type':_0x4eb73a(0x12d),'format':_0x4eb73a(0x477)}))[_0x4eb73a(0x624)]('hex')[_0x4eb73a(0x101)](0x0,0x10),_0x419616={'LICENSED_BUILD':'true','PUBLIC_KEY_PEM':_0x325f6d,'PUB_FINGERPRINT':_0x3fb410,'LICENSE_EXPIRED_ACTION':_0x4eb73a(0x4d2)};return licenseConfig={'_C':_0x419616,'PUBLIC_KEY_PEM':_0x325f6d,'PUB_FINGERPRINT':_0x3fb410},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x32e600=_0x30dd4b;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0xfbf3=require$$0$5,{OKDBError:_0x26ea1a}=requireOkdbError(),_0x37bc9c=['$eq',_0x32e600(0x3cd),_0x32e600(0x750),_0x32e600(0x33a),_0x32e600(0x672),_0x32e600(0x2ce),_0x32e600(0x7f5),'$nin',_0x32e600(0x3af),_0x32e600(0x45b),'$options',_0x32e600(0x58b),'$size',_0x32e600(0x10c),'$type','$elemMatch',_0x32e600(0x32d),_0x32e600(0x33d),_0x32e600(0x2fa),_0x32e600(0x7d7)],_0x341716=[_0x32e600(0x3ce)];function _0x3e470f(_0x3a587e){return()=>{const _0x38bfbb=_0x5df8,_0x28c849=new _0x26ea1a(_0x38bfbb(0x240)+_0x3a587e+_0x38bfbb(0x6c8),_0x38bfbb(0x589),{'operator':_0x3a587e});_0x28c849[_0x38bfbb(0x2b6)]=0x190;throw _0x28c849;};}const _0x3ab43f=Object[_0x32e600(0x2f3)]({...Object[_0x32e600(0x5d5)](_0x37bc9c[_0x32e600(0x3e7)](_0x469ed4=>[_0x469ed4,_0xfbf3[_0x469ed4]])),...Object[_0x32e600(0x5d5)](_0x341716[_0x32e600(0x3e7)](_0x54cb57=>[_0x54cb57,_0x3e470f(_0x54cb57)]))});function _0x53cba9(_0x18d4c3){const _0x411ad2=_0x32e600;return _0xfbf3[_0x411ad2(0x23b)](_0x18d4c3,{'operations':_0x3ab43f});}function _0x5d1273(_0x56deaa){const _0x178ab2=_0x32e600;if(_0x56deaa==null)return;try{_0x53cba9(_0x56deaa);}catch(_0x1a4b13){if(_0x1a4b13?.[_0x178ab2(0x1a8)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x1a4b13;}}return okdbQueryFilter={'compileFilter':_0x53cba9,'assertFilterAllowed':_0x5d1273,'ALLOWED_OPERATORS':_0x37bc9c,'FORBIDDEN_OPERATORS':_0x341716},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0xa85769=_0x30dd4b;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x4523ef,EVENTS:_0x35b95e}=requireOkdbEnums(),{OKDBError:_0x30be31,OKDBForeignKeyDeleteError:_0x1f562f}=requireOkdbError(),_0x5f0cc0=_0xa85769(0x504),_0x34dd3b=new Set([_0xa85769(0x1fc),_0xa85769(0x61d),_0xa85769(0x2e0),_0xa85769(0x29e)]);function _0x464c8f(_0x1c6f38,_0x25c3b2){const _0x5bce91=_0xa85769;if(_0x1c6f38==null||!_0x25c3b2)return undefined;const _0x168403=_0x25c3b2['split']('.');let _0x87e0d=_0x1c6f38;for(const _0x8eae6d of _0x168403){if(_0x87e0d==null||typeof _0x87e0d!==_0x5bce91(0x218)||!(_0x8eae6d in _0x87e0d))return undefined;_0x87e0d=_0x87e0d[_0x8eae6d];}return _0x87e0d;}function _0x38e3c8(_0x51832c,_0x112476,_0x28245e){const _0x26c14b=_0xa85769,_0xf0c758=_0x112476[_0x26c14b(0x1b2)]('.'),_0x5958fd={..._0x51832c};let _0x2edc66=_0x5958fd;for(let _0xf1e7e0=0x0;_0xf1e7e0<_0xf0c758[_0x26c14b(0x306)]-0x1;_0xf1e7e0++){_0x2edc66[_0xf0c758[_0xf1e7e0]]=_0x2edc66[_0xf0c758[_0xf1e7e0]]!=null?{..._0x2edc66[_0xf0c758[_0xf1e7e0]]}:{},_0x2edc66=_0x2edc66[_0xf0c758[_0xf1e7e0]];}return _0x2edc66[_0xf0c758[_0xf0c758[_0x26c14b(0x306)]-0x1]]=_0x28245e,_0x5958fd;}function _0x110c24(_0x773c42,_0x499cd6,_0xe36588,_0x25458e,_0x2c8934){return[_0x773c42,_0x499cd6,_0xe36588,_0x25458e,_0x2c8934];}function _0x51e3f1(_0x30f869){const _0x28fd20=_0xa85769;return typeof _0x30f869==='string'||typeof _0x30f869===_0x28fd20(0x682);}function _0x4470d9(_0x2a6ac5,_0x1b421a){const _0x2b213b=_0xa85769;return JSON[_0x2b213b(0x34b)]([_0x2a6ac5,_0x1b421a]);}function*_0x86e770(_0x37fae8,_0x1e4396,_0xa4bdc3){const _0x18d2a5=_0xa85769,_0x1709d6=_0xa4bdc3!==undefined;for(const {key:_0x31c2ed}of _0x37fae8[_0x18d2a5(0x501)]({'start':_0x1709d6?[_0x1e4396,_0xa4bdc3]:[_0x1e4396]})){if(!Array[_0x18d2a5(0x470)](_0x31c2ed))continue;if(_0x31c2ed[0x0]!==_0x1e4396||_0x1709d6&&_0x31c2ed[0x1]!==_0xa4bdc3)break;yield _0x31c2ed;}}function _0x197458(_0x33a4e1,_0x101ee4='',_0x3f0a27=null){const _0x43f9a1=_0xa85769,_0x22ae0e=[];if(!_0x33a4e1||typeof _0x33a4e1!==_0x43f9a1(0x218))return _0x22ae0e;if(!_0x3f0a27)_0x3f0a27=_0x33a4e1;if(_0x33a4e1[_0x43f9a1(0x3c3)]){const _0x53239d=_0x33a4e1[_0x43f9a1(0x3c3)][_0x43f9a1(0x73f)](/^#\/\$defs\/(.+)$/);if(_0x53239d&&_0x3f0a27?.[_0x43f9a1(0x71e)]?.[_0x53239d[0x1]])return _0x197458(_0x3f0a27['$defs'][_0x53239d[0x1]],_0x101ee4,_0x3f0a27);return _0x22ae0e;}if(_0x33a4e1['ref']&&typeof _0x33a4e1[_0x43f9a1(0x7b3)]==='object'&&_0x33a4e1[_0x43f9a1(0x7b3)][_0x43f9a1(0x705)]){const _0x5597b7=_0x33a4e1['ref'][_0x43f9a1(0x1de)]||_0x43f9a1(0x1fc);if(!_0x34dd3b[_0x43f9a1(0x37b)](_0x5597b7))throw new _0x30be31(_0x43f9a1(0x1b0)+_0x5597b7+_0x43f9a1(0x65a)+(_0x101ee4||_0x43f9a1(0x496))+_0x43f9a1(0x152)+[..._0x34dd3b]['join'](',\x20'),_0x43f9a1(0x754));_0x22ae0e[_0x43f9a1(0x150)]({'fieldPath':_0x101ee4,'targetType':_0x33a4e1[_0x43f9a1(0x7b3)][_0x43f9a1(0x705)],'onDelete':_0x5597b7});}if(_0x33a4e1[_0x43f9a1(0x404)])for(const [_0x363c27,_0x3eb721]of Object[_0x43f9a1(0x5c7)](_0x33a4e1['properties'])){const _0x55a7b0=_0x101ee4?_0x101ee4+'.'+_0x363c27:_0x363c27;_0x22ae0e['push'](..._0x197458(_0x3eb721,_0x55a7b0,_0x3f0a27));}return _0x22ae0e;}function _0x5637fb(_0x5db850){const _0x542e39=_0xa85769,_0x700e23=new Map(),_0x348c4f=new Map();for(const _0x26f2cc of _0x5db850[_0x542e39(0x4fc)]()){if(_0x26f2cc['startsWith']('~'))continue;const _0x386aff=_0x5db850[_0x542e39(0x45d)][_0x542e39(0x759)](_0x26f2cc);if(!_0x386aff?.[_0x542e39(0x2a8)]?.[_0x542e39(0x2b7)])continue;let _0x2022ba;try{_0x2022ba=_0x197458(_0x386aff[_0x542e39(0x2a8)]['definition']);}catch{continue;}if(_0x2022ba['length']>0x0){_0x700e23['set'](_0x26f2cc,_0x2022ba);for(const _0x210ff5 of _0x2022ba){if(!_0x348c4f[_0x542e39(0x37b)](_0x210ff5[_0x542e39(0x662)]))_0x348c4f[_0x542e39(0x5af)](_0x210ff5[_0x542e39(0x662)],[]);_0x348c4f[_0x542e39(0x759)](_0x210ff5[_0x542e39(0x662)])['push']({'sourceType':_0x26f2cc,'fieldPath':_0x210ff5[_0x542e39(0x6a4)],'onDelete':_0x210ff5[_0x542e39(0x1de)]});}}}_0x5db850['_refCache']={'outgoing':_0x700e23,'incoming':_0x348c4f};if(_0x700e23[_0x542e39(0x415)]>0x0)_0x111d86(_0x5db850);}function _0x4521ec(_0x5561ea,_0x3a3f7f){const _0x290a06=_0xa85769;return _0x5561ea[_0x290a06(0x260)][_0x290a06(0x6fd)]['get'](_0x3a3f7f)||[];}function _0x15f2a8(_0x1dd9f3,_0x408f84){const _0x45c11f=_0xa85769;return _0x1dd9f3[_0x45c11f(0x260)]['incoming'][_0x45c11f(0x759)](_0x408f84)||[];}function _0x111d86(_0x3e9e95){const _0x18cdda=_0xa85769;if(_0x3e9e95['_refIndexDb'])return _0x3e9e95['_refIndexDb'];return _0x3e9e95['_refIndexDb']=_0x3e9e95['db']['openDB'](_0x18cdda(0x62f),{'dupSort':![]}),_0x3e9e95[_0x18cdda(0x794)];}function _0x21b390(_0x56a4e8,_0x4bb66e,_0x30c5e3,_0xe87384,_0x174cf6){const _0x1f87d2=_0xa85769,_0x49ebe7=_0x4521ec(_0x56a4e8,_0x4bb66e);if(_0x49ebe7[_0x1f87d2(0x306)]===0x0)return;const _0x1bc88d=_0x111d86(_0x56a4e8);for(const _0x592bc1 of _0x49ebe7){const _0x1f6ac8=_0x174cf6!=null?_0x464c8f(_0x174cf6,_0x592bc1[_0x1f87d2(0x6a4)]):undefined,_0x307ef9=_0xe87384!=null?_0x464c8f(_0xe87384,_0x592bc1[_0x1f87d2(0x6a4)]):undefined;if(_0x1f6ac8===_0x307ef9)continue;_0x51e3f1(_0x1f6ac8)&&_0x1bc88d[_0x1f87d2(0x712)](_0x110c24(_0x592bc1[_0x1f87d2(0x662)],_0x1f6ac8,_0x4bb66e,_0x30c5e3,_0x592bc1[_0x1f87d2(0x6a4)])),_0x51e3f1(_0x307ef9)&&_0x1bc88d[_0x1f87d2(0x76e)](_0x110c24(_0x592bc1[_0x1f87d2(0x662)],_0x307ef9,_0x4bb66e,_0x30c5e3,_0x592bc1[_0x1f87d2(0x6a4)]),0x1);}}function _0x10a726(_0x4bcc43,_0x24976e,_0x25c07a,_0x31b3bd){const _0x298e8d=_0xa85769,_0x3d9bce=_0x4521ec(_0x4bcc43,_0x24976e);if(_0x3d9bce[_0x298e8d(0x306)]===0x0)return;const _0xf82960=_0x111d86(_0x4bcc43);for(const _0xc60cca of _0x3d9bce){const _0x2bde90=_0x31b3bd!=null?_0x464c8f(_0x31b3bd,_0xc60cca[_0x298e8d(0x6a4)]):undefined;_0x51e3f1(_0x2bde90)&&_0xf82960[_0x298e8d(0x712)](_0x110c24(_0xc60cca[_0x298e8d(0x662)],_0x2bde90,_0x24976e,_0x25c07a,_0xc60cca[_0x298e8d(0x6a4)]));}}function _0xb15d05(_0x15a4bd,_0x2c0e12,_0x3a6035,_0x5d2220){const _0x47c877=_0xa85769,_0x2b7749=_0x4521ec(_0x15a4bd,_0x2c0e12);if(_0x2b7749[_0x47c877(0x306)]===0x0)return[];const _0x1fcfeb=[];for(const _0x1ae3bf of _0x2b7749){const _0x25adac=_0x464c8f(_0x5d2220,_0x1ae3bf[_0x47c877(0x6a4)]);if(_0x25adac==null)continue;if(!_0x15a4bd[_0x47c877(0x4db)](_0x1ae3bf[_0x47c877(0x662)])){_0x1fcfeb[_0x47c877(0x150)]({'fieldPath':_0x1ae3bf[_0x47c877(0x6a4)],'targetType':_0x1ae3bf[_0x47c877(0x662)],'targetKey':_0x25adac,'message':_0x47c877(0x741)+_0x1ae3bf['targetType']+'\x27\x20does\x20not\x20exist'});continue;}const _0x1f13e6=_0x15a4bd[_0x47c877(0xfc)](_0x1ae3bf['targetType'])[_0x47c877(0x5f8)];!_0x1f13e6[_0x47c877(0x745)](_0x25adac)&&_0x1fcfeb[_0x47c877(0x150)]({'fieldPath':_0x1ae3bf['fieldPath'],'targetType':_0x1ae3bf[_0x47c877(0x662)],'targetKey':_0x25adac,'message':_0x47c877(0x2f1)+_0x25adac+_0x47c877(0x162)+_0x1ae3bf[_0x47c877(0x662)]+'\x27'});}return _0x1fcfeb;}function _0x302b5a(_0x30ac15,_0x59f90f,_0x14455c,_0x42c0e9,_0x1b4ced,{timestamp:_0x4bee0c,origin:_0x2598b6,_cascadeVisited:_0x10a708}){const _0x1eef36=_0xa85769,_0xba932d=_0x15f2a8(_0x30ac15,_0x14455c);if(_0xba932d[_0x1eef36(0x306)]===0x0)return;const _0x20436a=_0x111d86(_0x30ac15),_0x46311c=[];for(const [,,_0x5b34d7,_0x1a0e88,_0x465c4c]of _0x86e770(_0x20436a,_0x14455c,_0x42c0e9)){_0x46311c['push']({'sourceType':_0x5b34d7,'sourceKey':_0x1a0e88,'fieldPath':_0x465c4c});}if(_0x46311c['length']===0x0)return;for(const _0x3bc0b5 of _0x46311c){const _0x27ebf7=_0xba932d[_0x1eef36(0x6bf)](_0x201706=>_0x201706[_0x1eef36(0x307)]===_0x3bc0b5[_0x1eef36(0x307)]&&_0x201706[_0x1eef36(0x6a4)]===_0x3bc0b5[_0x1eef36(0x6a4)]),_0x1d77e9=_0x27ebf7?.[_0x1eef36(0x1de)]||_0x1eef36(0x1fc);switch(_0x1d77e9){case _0x1eef36(0x29e):{if(_0x2598b6===null)throw new _0x1f562f(_0x14455c,_0x42c0e9,_0x46311c['filter'](_0x1f5092=>{const _0x17736f=_0x1eef36,_0xf8f40a=_0xba932d[_0x17736f(0x6bf)](_0x2053d0=>_0x2053d0[_0x17736f(0x307)]===_0x1f5092['sourceType']&&_0x2053d0['fieldPath']===_0x1f5092[_0x17736f(0x6a4)]);return(_0xf8f40a?.['onDelete']||_0x17736f(0x1fc))===_0x17736f(0x29e);}));break;}case _0x1eef36(0x61d):{const _0x118479=_0x4470d9(_0x3bc0b5[_0x1eef36(0x307)],_0x3bc0b5['sourceKey']);if(_0x10a708['has'](_0x118479))continue;_0x30ac15[_0x1eef36(0xfc)](_0x3bc0b5[_0x1eef36(0x307)])[_0x1eef36(0x5f8)][_0x1eef36(0x745)](_0x3bc0b5[_0x1eef36(0x1da)])&&_0x30ac15[_0x1eef36(0x6ec)](_0x59f90f,_0x3bc0b5[_0x1eef36(0x307)],_0x3bc0b5[_0x1eef36(0x1da)],{'timestamp':_0x4bee0c,'origin':_0x2598b6,'_cascadeVisited':_0x10a708});break;}case _0x1eef36(0x2e0):{const _0xfe33a7=_0x30ac15[_0x1eef36(0xfc)](_0x3bc0b5[_0x1eef36(0x307)])['data'],_0x5dad2d=_0xfe33a7[_0x1eef36(0x31c)](_0x3bc0b5['sourceKey']);if(_0x5dad2d){const _0x162f03=_0x38e3c8(_0x5dad2d[_0x1eef36(0x2e6)],_0x3bc0b5[_0x1eef36(0x6a4)],null);_0x30ac15['_write'](_0x59f90f,_0x1eef36(0x77a),_0x3bc0b5[_0x1eef36(0x307)],_0x3bc0b5[_0x1eef36(0x1da)],_0x162f03,{'timestamp':_0x4bee0c,'origin':_0x2598b6,'_cascading':!![]});}break;}}}}function _0x33c2b9(_0x3ba7ff){const _0x22c6aa=_0xa85769;!_0x3ba7ff['hasType'](_0x5f0cc0)&&_0x3ba7ff[_0x22c6aa(0x12c)](_0x5f0cc0);}function _0x25ca3d(_0x10e9f5,_0x1083c4,_0x190829,_0x4e50f7,_0x393021,_0x4af3c1,_0x36678e,{timestamp:timestamp=Date[_0xa85769(0x466)](),origin:origin=null}={}){const _0x471f40=_0xa85769;_0x33c2b9(_0x10e9f5);const _0x1b2f27=_0x190829+'@'+_0x4e50f7+'@'+_0x393021,_0x2c9e37={'sourceType':_0x190829,'sourceKey':_0x4e50f7,'fieldPath':_0x393021,'targetType':_0x4af3c1,'targetKey':_0x36678e,'timestamp':timestamp,'origin':origin},_0x5edeeb=_0x10e9f5[_0x471f40(0xfc)](_0x5f0cc0)['data'],_0xee577f=_0x5edeeb['getEntry'](_0x1b2f27),_0x5b515f=_0xee577f?_0xee577f[_0x471f40(0x4b3)]+0x1:0x1;_0x5edeeb[_0x471f40(0x76e)](_0x1b2f27,_0x2c9e37,_0x5b515f),_0x10e9f5['_logChange']({'id':'item:'+_0x5f0cc0+'@'+_0x1b2f27,'type':_0x5f0cc0,'key':_0x1b2f27,'action':_0x4523ef[_0x471f40(0x168)],'timestamp':timestamp,'txnId':_0x1083c4?.['id'],'origin':origin},_0xee577f?.[_0x471f40(0x2e6)],_0x2c9e37),_0x10e9f5[_0x471f40(0x3a0)]['emit'](_0x35b95e[_0x471f40(0x388)],{'sourceType':_0x190829,'sourceKey':_0x4e50f7,'fieldPath':_0x393021,'targetType':_0x4af3c1,'targetKey':_0x36678e,'env':_0x10e9f5[_0x471f40(0x331)]});}function _0x15a52f(_0x48ab7f,_0x3f3ae0,_0x3e35d3,_0x3cd53a,_0x55f062,{timestamp:timestamp=Date[_0xa85769(0x466)](),origin:origin=null}={}){const _0x2ea4dc=_0xa85769;if(!_0x48ab7f[_0x2ea4dc(0x4db)](_0x5f0cc0))return;const _0x4546e2=_0x3e35d3+'@'+_0x3cd53a+'@'+_0x55f062,_0x3882d5=_0x48ab7f[_0x2ea4dc(0xfc)](_0x5f0cc0)['data'],_0x3e92bf=_0x3882d5[_0x2ea4dc(0x31c)](_0x4546e2);if(!_0x3e92bf)return;_0x3882d5['removeSync'](_0x4546e2),_0x48ab7f[_0x2ea4dc(0x15d)]({'id':'item:'+_0x5f0cc0+'@'+_0x4546e2,'type':_0x5f0cc0,'key':_0x4546e2,'action':_0x4523ef[_0x2ea4dc(0x1c3)],'timestamp':timestamp,'txnId':_0x3f3ae0?.['id'],'origin':origin},_0x3e92bf[_0x2ea4dc(0x2e6)],undefined),_0x48ab7f[_0x2ea4dc(0x3a0)][_0x2ea4dc(0x663)](_0x35b95e[_0x2ea4dc(0x27c)],{'sourceType':_0x3e35d3,'sourceKey':_0x3cd53a,'fieldPath':_0x55f062,'env':_0x48ab7f[_0x2ea4dc(0x331)]});}function _0x333019(_0x4f6b36,_0x540067,_0x5a9679,_0x5d5dda,_0xafe58={}){const _0x3a58de=_0xa85769;if(!_0x4f6b36[_0x3a58de(0x4db)](_0x5f0cc0))return;const _0x4b27bd=_0x4f6b36[_0x3a58de(0xfc)](_0x5f0cc0)[_0x3a58de(0x5f8)],_0x7b11d5=_0x5a9679+'@'+_0x5d5dda+'@',_0x48a635=[];for(const {key:_0x3d7481,value:_0x5e7926}of _0x4b27bd['getRange']({'start':_0x7b11d5,'end':_0x7b11d5+'\uffff'})){if(_0x5e7926?.[_0x3a58de(0x307)]===_0x5a9679&&_0x5e7926?.[_0x3a58de(0x1da)]===_0x5d5dda)_0x48a635[_0x3a58de(0x150)](_0x3d7481);}for(const _0x7a69d8 of _0x48a635){const _0x2fb920=_0x4b27bd[_0x3a58de(0x31c)](_0x7a69d8);if(!_0x2fb920)continue;_0x4b27bd[_0x3a58de(0x712)](_0x7a69d8),_0x4f6b36['_logChange']({'id':'item:'+_0x5f0cc0+'@'+_0x7a69d8,'type':_0x5f0cc0,'key':_0x7a69d8,'action':_0x4523ef['REMOVE'],'timestamp':_0xafe58['timestamp']||Date[_0x3a58de(0x466)](),'txnId':_0x540067?.['id'],'origin':_0xafe58[_0x3a58de(0x358)]},_0x2fb920[_0x3a58de(0x2e6)],undefined);}}function _0x58334d(_0x2300c7,_0x538172){const _0x1206a0=_0xa85769;if(!_0x2300c7[_0x1206a0(0x4db)](_0x5f0cc0))return;const _0x255849=_0x2300c7[_0x1206a0(0xfc)](_0x5f0cc0)[_0x1206a0(0x5f8)],_0x1aac3b=_0x538172+'@',_0x4bf98b=[];for(const {key:_0x30b7b0,value:_0x3736e5}of _0x255849['getRange']({'start':_0x1aac3b,'end':_0x1aac3b+'\uffff'})){if(_0x3736e5?.['sourceType']===_0x538172)_0x4bf98b['push'](_0x30b7b0);}for(const _0x23c774 of _0x4bf98b)_0x255849['removeSync'](_0x23c774);}async function _0x2739d4(_0x1b4a38,_0x3724b0){const _0x254891=_0xa85769,_0xd9fe9d=_0x4521ec(_0x1b4a38,_0x3724b0);if(_0xd9fe9d[_0x254891(0x306)]===0x0)return;await _0x1b4a38[_0x254891(0x1b1)]['transaction'](()=>{const _0x539c56=_0x254891;for(const {key:_0x8e7ded,value:_0x56ba01}of _0x1b4a38['getRange'](_0x3724b0)){_0x21b390(_0x1b4a38,_0x3724b0,_0x8e7ded,_0x56ba01,null);const _0xf6556b=_0xb15d05(_0x1b4a38,_0x3724b0,_0x8e7ded,_0x56ba01);for(const _0x4f1dc9 of _0xf6556b){_0x25ca3d(_0x1b4a38,null,_0x3724b0,_0x8e7ded,_0x4f1dc9[_0x539c56(0x6a4)],_0x4f1dc9[_0x539c56(0x662)],_0x4f1dc9[_0x539c56(0x108)]);}}});}const _0x45d490=0x1388;async function _0x2a0da4(_0x1ea656){const _0x1655a3=_0xa85769,_0x1e916f=_0x1ea656[_0x1655a3(0x260)]?.[_0x1655a3(0x6fd)]?.[_0x1655a3(0x415)]>0x0;if(!_0x1e916f&&!_0x1ea656[_0x1655a3(0x794)])return{'dropped':0x0,'written':0x0};const _0x11de3e=_0x111d86(_0x1ea656);let _0x44d02d=0x0;for(;;){const _0x2349a8=Array[_0x1655a3(0x320)](_0x11de3e[_0x1655a3(0x253)]({'limit':_0x45d490}));if(_0x2349a8[_0x1655a3(0x306)]===0x0)break;let _0x5e2b5c=0x0;await _0x1ea656['_writer']['transaction'](()=>{for(const _0x3fb51d of _0x2349a8)if(_0x11de3e['removeSync'](_0x3fb51d))_0x5e2b5c++;});if(_0x5e2b5c===0x0)break;_0x44d02d+=_0x5e2b5c;}let _0xe2e730=0x0;for(const _0x246177 of _0x1ea656[_0x1655a3(0x260)]['outgoing'][_0x1655a3(0x2e9)]()){if(_0x246177[_0x1655a3(0x67b)]('~')||!_0x1ea656[_0x1655a3(0x4db)](_0x246177))continue;const _0x4f4a52=_0x4521ec(_0x1ea656,_0x246177);await _0x1ea656[_0x1655a3(0x1b1)]['transaction'](()=>{const _0x1d7c52=_0x1655a3;for(const {key:_0xc43c17,value:_0x52748e}of _0x1ea656[_0x1d7c52(0x501)](_0x246177)){for(const _0x5c8aff of _0x4f4a52){const _0x1f17fb=_0x464c8f(_0x52748e,_0x5c8aff[_0x1d7c52(0x6a4)]);if(!_0x51e3f1(_0x1f17fb))continue;_0x11de3e[_0x1d7c52(0x76e)](_0x110c24(_0x5c8aff['targetType'],_0x1f17fb,_0x246177,_0xc43c17,_0x5c8aff[_0x1d7c52(0x6a4)]),0x1),_0xe2e730++;}}});}return{'dropped':_0x44d02d,'written':_0xe2e730};}return okdbEnvRefs={'getFieldValue':_0x464c8f,'setFieldValue':_0x38e3c8,'refIndexKey':_0x110c24,'isRefTarget':_0x51e3f1,'cascadeVisitKey':_0x4470d9,'extractRefs':_0x197458,'rebuildRefCache':_0x5637fb,'getTypeRefs':_0x4521ec,'getIncomingRefs':_0x15f2a8,'getRefIndexDb':_0x111d86,'updateRefIndex':_0x21b390,'removeRefIndexEntries':_0x10a726,'refIndexRowsFor':_0x86e770,'rebuildRefIndex':_0x2a0da4,'checkForeignKeys':_0xb15d05,'processDeleteCascade':_0x302b5a,'setRefViolation':_0x25ca3d,'clearRefViolation':_0x15a52f,'clearRefViolationsForKey':_0x333019,'clearRefViolationsForType':_0x58334d,'syncRefIndex':_0x2739d4},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x43623e=_0x30dd4b;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x43623e(0x296)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x40a6f4=require$$0$4,{assertFilterAllowed:_0x30db94}=requireOkdbQueryFilter(),{rebuildRefCache:_0x3aa88c}=requireOkdbEnvRefs(),_0x343305='~sub',_0x5d8104=_0x43623e(0x359),_0x3fe102=_0x43623e(0x79b),_0x2cc53a=[_0x43623e(0xe5),_0x43623e(0x705),_0x43623e(0xfb)],_0x288e72=[_0x43623e(0xe5),_0x43623e(0x705)],_0x5c6de6=0x5a*0x3e8,_0x36c3e2=Math[_0x43623e(0x3c5)](_0x5c6de6/0x2);class _0x3a9830{constructor(_0x17f6ff,_0x2e16b3={}){const _0x11e43f=_0x43623e;this[_0x11e43f(0x11c)]=_0x17f6ff,this[_0x11e43f(0x365)]=Number[_0x11e43f(0x1b6)](_0x2e16b3[_0x11e43f(0x365)])&&_0x2e16b3['ttlMs']>0x0?_0x2e16b3['ttlMs']:_0x5c6de6,this['refreshThresholdMs']=Number[_0x11e43f(0x1b6)](_0x2e16b3[_0x11e43f(0x5be)])?_0x2e16b3[_0x11e43f(0x5be)]:_0x36c3e2,this['_sub']=null;}async[_0x43623e(0x670)](){const _0xfca81a=_0x43623e;if(this['_sub'])return this[_0xfca81a(0x6b4)];const _0x40efba=await this[_0xfca81a(0x11c)][_0xfca81a(0x6e3)](_0x343305,{'sync':![]});return await _0x40efba[_0xfca81a(0x2e7)](_0x5d8104,{'indexes':[_0x288e72]}),await _0x40efba[_0xfca81a(0x2e7)](_0x3fe102),_0x40efba['getSchema'](_0x3fe102)?_0x3aa88c(_0x40efba):await _0x40efba[_0xfca81a(0x7a6)](_0x3fe102,{'definition':{'type':_0xfca81a(0x218),'properties':{'sessionId':{'type':_0xfca81a(0x677),'ref':{'type':_0x5d8104,'onDelete':_0xfca81a(0x61d)}},'dataEnv':{'type':_0xfca81a(0x677)},'type':{'type':_0xfca81a(0x677)},'key':{'type':_0xfca81a(0x677)}},'required':[_0xfca81a(0x641),_0xfca81a(0xe5),'type',_0xfca81a(0xfb)]},'enforce':!![]}),await _0x40efba['ensureType'](_0x3fe102,{'indexes':[_0x2cc53a]}),await _0x40efba[_0xfca81a(0x21d)](_0x3fe102,_0x2cc53a),await _0x40efba[_0xfca81a(0x21d)](_0x5d8104,_0x288e72),this[_0xfca81a(0x6b4)]=_0x40efba,_0x40efba;}[_0x43623e(0x5ed)](){const _0x5d8393=_0x43623e;if(!this['_sub'])throw new Error('subscriptions-store:\x20open()\x20not\x20called');return this[_0x5d8393(0x6b4)];}async[_0x43623e(0x4b7)]({sessionId:_0xd150b6,dataEnv:_0x241d17,type:_0x596cf0,filter:filter=null,ttlMs:_0x4907d6}={}){const _0x114c08=_0x43623e,_0x281a15=this[_0x114c08(0x5ed)]();_0x30db94(filter);const _0x490385=_0xd150b6!=null&&String(_0xd150b6)['length']>0x0?String(_0xd150b6):_0x40a6f4[_0x114c08(0x396)](),_0x3d1432=Number[_0x114c08(0x1b6)](_0x4907d6)&&_0x4907d6>0x0?_0x4907d6:this[_0x114c08(0x365)],_0x3a9829=Date[_0x114c08(0x466)](),_0x5d49b4={'sessionId':_0x490385,'dataEnv':_0x241d17,'type':_0x596cf0,'filter':filter??null,'version':0x0,'createdAt':_0x3a9829,'expiresAt':_0x3a9829+_0x3d1432};return await _0x281a15[_0x114c08(0x77a)](_0x5d8104,_0x490385,_0x5d49b4,{'ttl':_0x3d1432}),{'sessionId':_0x490385,'version':0x0};}[_0x43623e(0x1bb)](_0x4b53a2){const _0x3a0f79=_0x43623e;if(!_0x4b53a2)return null;return this[_0x3a0f79(0x5ed)]()[_0x3a0f79(0x759)](_0x5d8104,String(_0x4b53a2))??null;}async['closeSession'](_0x4b4c17){const _0x195538=_0x43623e,_0x6f531c=this[_0x195538(0x5ed)](),_0x33dcc4=String(_0x4b4c17);if(!_0x6f531c[_0x195538(0x759)](_0x5d8104,_0x33dcc4))return![];return await _0x6f531c[_0x195538(0x4a1)](_0x5d8104,_0x33dcc4),!![];}async[_0x43623e(0x22d)](_0x3f1a4e){const _0x573472=_0x43623e,_0x24f7f0=this['_env'](),_0x322acf=String(_0x3f1a4e),_0xb12ea=_0x24f7f0[_0x573472(0x759)](_0x5d8104,_0x322acf);if(!_0xb12ea)return null;const _0x436476=(Number[_0x573472(0x1b6)](_0xb12ea[_0x573472(0x4b3)])?_0xb12ea[_0x573472(0x4b3)]:0x0)+0x1;return await _0x24f7f0['put'](_0x5d8104,_0x322acf,{..._0xb12ea,'version':_0x436476}),_0x436476;}async['refreshTtl'](_0x18b730,_0x1122e4){const _0x521bb4=_0x43623e,_0xf01fd3=this[_0x521bb4(0x5ed)](),_0x42fdcc=String(_0x18b730);if(!_0xf01fd3[_0x521bb4(0x759)](_0x5d8104,_0x42fdcc))return![];const _0x4b7462=Number[_0x521bb4(0x1b6)](_0x1122e4)&&_0x1122e4>0x0?_0x1122e4:this[_0x521bb4(0x365)];if(this[_0x521bb4(0x63c)](_0x42fdcc))return![];return await _0xf01fd3[_0x521bb4(0x468)](_0x5d8104,_0x42fdcc,_0x4b7462),await this[_0x521bb4(0x363)](_0x42fdcc,_0x4b7462),!![];}async[_0x43623e(0x7ec)](_0x5d46e9,_0x406d03){const _0x15c3ae=_0x43623e,_0x2b4aa0=this[_0x15c3ae(0x5ed)](),_0x509aa8=Number[_0x15c3ae(0x1b6)](_0x406d03)&&_0x406d03>0x0?_0x406d03:this[_0x15c3ae(0x365)],_0x15f3fb=Date[_0x15c3ae(0x466)](),_0x286366=[];for(const _0x422c5f of _0x5d46e9||[]){const _0x4213f2=String(_0x422c5f),_0x4d8ada=_0x2b4aa0[_0x15c3ae(0x759)](_0x5d8104,_0x4213f2);if(!_0x4d8ada)continue;if(this[_0x15c3ae(0x63c)](_0x4213f2,_0x15f3fb))continue;_0x286366[_0x15c3ae(0x150)]({'id':_0x4213f2,'cur':_0x4d8ada});}if(_0x286366[_0x15c3ae(0x306)]===0x0)return[];return await _0x2b4aa0['txn'](async _0x5b3c0d=>{const _0x1cf4c2=_0x15c3ae;for(const {id:_0x381a2c,cur:_0xe6b658}of _0x286366){_0x5b3c0d['put'](_0x5d8104,_0x381a2c,{..._0xe6b658,'expiresAt':_0x15f3fb+_0x509aa8}),_0x5b3c0d[_0x1cf4c2(0x468)](_0x5d8104,_0x381a2c,_0x509aa8);}}),_0x286366['map'](_0x2d8b8e=>_0x2d8b8e['id']);}[_0x43623e(0x63c)](_0x5b10f6,_0x1eff58=Date['now']()){const _0x2f94d0=_0x43623e,_0x254bd7=this[_0x2f94d0(0x5ed)]()[_0x2f94d0(0x6a9)](_0x5d8104,String(_0x5b10f6));if(!_0x254bd7)return![];return _0x254bd7[_0x2f94d0(0x7c6)]-_0x1eff58>this['refreshThresholdMs'];}async[_0x43623e(0x363)](_0x3d1581,_0x232081){const _0x4c5a90=_0x43623e,_0x4073a0=this[_0x4c5a90(0x5ed)](),_0x5ceebf=_0x4073a0[_0x4c5a90(0x759)](_0x5d8104,_0x3d1581);if(!_0x5ceebf)return;await _0x4073a0[_0x4c5a90(0x77a)](_0x5d8104,_0x3d1581,{..._0x5ceebf,'expiresAt':Date['now']()+_0x232081});}async[_0x43623e(0x1f7)](_0xbf333a,_0x3686b7,_0x3f5015){const _0x2cd3af=_0x43623e,_0x1b505c=this[_0x2cd3af(0x5ed)](),_0x42d267=String(_0xbf333a),_0x585fc0=_0x1b505c[_0x2cd3af(0x759)](_0x5d8104,_0x42d267);if(!_0x585fc0)throw new Error('subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20'+_0x42d267);const _0x305b94=_0x40a6f4[_0x2cd3af(0x396)]();return await _0x1b505c[_0x2cd3af(0x77a)](_0x3fe102,_0x305b94,{'sessionId':_0x42d267,'dataEnv':String(_0x585fc0[_0x2cd3af(0xe5)]),'type':String(_0x3686b7),'key':String(_0x3f5015)}),_0x305b94;}async[_0x43623e(0x5c0)](_0x4bf2cd,_0x5ca286,{retries:retries=0x8}={}){const _0x76db03=_0x43623e,_0x5e088a=this[_0x76db03(0x5ed)]();for(let _0x53819e=0x0;;_0x53819e++){const _0x32da0d=_0x5e088a[_0x76db03(0x31c)](_0x5d8104,_0x4bf2cd);if(!_0x32da0d)return null;const _0x36fe77=_0x32da0d[_0x76db03(0x2e6)],_0x534a3a=(Number[_0x76db03(0x1b6)](_0x36fe77['version'])?_0x36fe77[_0x76db03(0x4b3)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x5ca286(_0x36fe77,_0x5e088a)||{};try{return await _0x5e088a[_0x76db03(0x343)](async _0x52cc5a=>{const _0x45bb6a=_0x76db03;applyInterests?.(_0x52cc5a),_0x52cc5a['put'](_0x5d8104,_0x4bf2cd,{..._0x36fe77,...sessionPatch,'version':_0x534a3a},{'ifVersion':_0x32da0d[_0x45bb6a(0x4b3)]});}),_0x534a3a;}catch(_0x4ae7ef){if(_0x4ae7ef?.[_0x76db03(0x1a8)]===_0x76db03(0x2dc)&&_0x53819e<retries)continue;throw _0x4ae7ef;}}}async['applyInterestDelta'](_0xebf4a,{add:add=[],remove:remove=[]}={}){const _0x534d0d=String(_0xebf4a);return this['_commitSessionMutation'](_0x534d0d,(_0x4a5df5,_0x109fb6)=>{const _0x39ac98=_0x5df8,_0x27d6ec=String(_0x4a5df5[_0x39ac98(0xe5)]),_0x58eedd=new Set((remove||[])[_0x39ac98(0x3e7)](_0x2957c7=>String(_0x2957c7['type'])+'\x00'+String(_0x2957c7[_0x39ac98(0xfb)]))),_0x5a38a3=[];if(_0x58eedd[_0x39ac98(0x415)]>0x0)for(const {key:_0x15a7ee,value:_0x252939}of _0x109fb6[_0x39ac98(0x501)](_0x3fe102,{})){if(!_0x252939||_0x252939['sessionId']!==_0x534d0d)continue;if(_0x58eedd[_0x39ac98(0x37b)](_0x252939['type']+'\x00'+_0x252939[_0x39ac98(0xfb)]))_0x5a38a3['push'](_0x15a7ee);}const _0x15561c=(add||[])[_0x39ac98(0x3e7)](_0x31071a=>({'id':_0x40a6f4[_0x39ac98(0x396)](),'type':String(_0x31071a[_0x39ac98(0x705)]),'key':String(_0x31071a[_0x39ac98(0xfb)])}));return{'applyInterests':_0x3a3c45=>{const _0x32b445=_0x39ac98;for(const _0xf40df3 of _0x5a38a3)_0x3a3c45[_0x32b445(0x4a1)](_0x3fe102,_0xf40df3);for(const _0x44a4cd of _0x15561c)_0x3a3c45[_0x32b445(0x77a)](_0x3fe102,_0x44a4cd['id'],{'sessionId':_0x534d0d,'dataEnv':_0x27d6ec,'type':_0x44a4cd['type'],'key':_0x44a4cd[_0x32b445(0xfb)]});}};});}async['setFilter'](_0x4afaeb,_0x163993){const _0xb9e32e=_0x43623e;_0x30db94(_0x163993);const _0x3a64ed=String(_0x4afaeb);return this[_0xb9e32e(0x5c0)](_0x3a64ed,()=>({'sessionPatch':{'filter':_0x163993??null}}));}async[_0x43623e(0x2d6)](_0x445951,_0x51c59e,_0x1a79cf){const _0x37fc92=_0x43623e,_0x3c3195=this[_0x37fc92(0x5ed)](),_0x3e28c9=String(_0x445951),_0x14462b=String(_0x51c59e),_0x3671e4=String(_0x1a79cf),_0x47dab2=[];for(const {key:_0x5e07df,value:_0x77f9a1}of _0x3c3195[_0x37fc92(0x501)](_0x3fe102,{})){if(_0x77f9a1&&_0x77f9a1[_0x37fc92(0x641)]===_0x3e28c9&&_0x77f9a1[_0x37fc92(0x705)]===_0x14462b&&_0x77f9a1[_0x37fc92(0xfb)]===_0x3671e4)_0x47dab2[_0x37fc92(0x150)](_0x5e07df);}for(const _0x47b3f3 of _0x47dab2)await _0x3c3195[_0x37fc92(0x4a1)](_0x3fe102,_0x47b3f3);return _0x47dab2['length'];}async[_0x43623e(0x219)](_0x1575d8,_0x5b843a){const _0x15805f=String(_0x1575d8);return this['_commitSessionMutation'](_0x15805f,(_0x5a234e,_0x5a17c8)=>{const _0x24c393=_0x5df8,_0x162638=String(_0x5a234e[_0x24c393(0xe5)]),_0x3370eb=[];for(const {key:_0x2643df,value:_0x1b0cc2}of _0x5a17c8[_0x24c393(0x501)](_0x3fe102,{})){if(_0x1b0cc2&&_0x1b0cc2[_0x24c393(0x641)]===_0x15805f)_0x3370eb[_0x24c393(0x150)](_0x2643df);}const _0x16d004=(_0x5b843a||[])['map'](_0x2f97a3=>({'id':_0x40a6f4[_0x24c393(0x396)](),'type':String(_0x2f97a3[_0x24c393(0x705)]),'key':String(_0x2f97a3[_0x24c393(0xfb)])}));return{'applyInterests':_0x308aae=>{const _0x5a7f2b=_0x24c393;for(const _0xeabd01 of _0x3370eb)_0x308aae[_0x5a7f2b(0x4a1)](_0x3fe102,_0xeabd01);for(const _0x4a5399 of _0x16d004)_0x308aae['put'](_0x3fe102,_0x4a5399['id'],{'sessionId':_0x15805f,'dataEnv':_0x162638,'type':_0x4a5399['type'],'key':_0x4a5399['key']});}};});}[_0x43623e(0x19f)](_0x1fd634,_0x9001e5,_0x29cd2d){const _0x562220=_0x43623e,_0x213d09=this['_env'](),_0x124881=String(_0x1fd634),_0x48c69b=String(_0x9001e5),_0xa63e34=String(_0x29cd2d),_0x4904fc=new Set();for(const {value:_0x30217c}of _0x213d09[_0x562220(0x1ae)](_0x3fe102,_0x2cc53a,{'start':[_0x124881,_0x48c69b,_0xa63e34],'end':[_0x124881,_0x48c69b,_0xa63e34,'￿']})){if(_0x30217c&&_0x30217c[_0x562220(0x641)])_0x4904fc['add'](_0x30217c['sessionId']);}return[..._0x4904fc];}['filterSessionsForType'](_0x29851f,_0xcf916f){const _0xc7bf9a=_0x43623e,_0x4a6371=this['_env'](),_0x3bd927=String(_0x29851f),_0x1a2d22=String(_0xcf916f),_0x2f5f52=[];for(const {value:_0x1e5d75}of _0x4a6371[_0xc7bf9a(0x1ae)](_0x5d8104,_0x288e72,{'start':[_0x3bd927,_0x1a2d22],'end':[_0x3bd927,_0x1a2d22,'\uffff']})){if(!_0x1e5d75||_0x1e5d75['dataEnv']!==_0x3bd927||_0x1e5d75[_0xc7bf9a(0x705)]!==_0x1a2d22)continue;if(_0x1e5d75[_0xc7bf9a(0x3c0)]==null)continue;_0x2f5f52[_0xc7bf9a(0x150)]({'sessionId':_0x1e5d75[_0xc7bf9a(0x641)],'filter':_0x1e5d75[_0xc7bf9a(0x3c0)],'version':Number[_0xc7bf9a(0x1b6)](_0x1e5d75[_0xc7bf9a(0x4b3)])?_0x1e5d75[_0xc7bf9a(0x4b3)]:0x0});}return _0x2f5f52;}async[_0x43623e(0x116)](){const _0x349752=_0x43623e;return this[_0x349752(0x5ed)]()['sweepExpiredTTL']();}}return okdbSubscriptionsStore[_0x43623e(0x296)]=_0x3a9830,okdbSubscriptionsStore[_0x43623e(0x296)][_0x43623e(0x270)]=_0x343305,okdbSubscriptionsStore['exports'][_0x43623e(0x5ec)]=_0x5d8104,okdbSubscriptionsStore['exports']['T_INTEREST']=_0x3fe102,okdbSubscriptionsStore[_0x43623e(0x296)][_0x43623e(0x1fd)]=_0x2cc53a,okdbSubscriptionsStore[_0x43623e(0x296)]['SESSION_TYPE_INDEX']=_0x288e72,okdbSubscriptionsStore['exports'][_0x43623e(0x16e)]=_0x5c6de6,okdbSubscriptionsStore['exports'];}var version=_0x30dd4b(0x59c),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x18b086=_0x30dd4b;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x525457='~engines',_0x104ae5=0xa,_0x1014a5=Object[_0x18b086(0x2f3)]({'CREATED':_0x18b086(0x469),'ONLINE':_0x18b086(0x5dc),'STOPPED':_0x18b086(0x40f),'INACTIVE':_0x18b086(0x1ba),'ERROR':_0x18b086(0x561),'REMOVED':_0x18b086(0x730)}),_0x483592=Object['freeze']({'STARTED':_0x18b086(0x632),'STOPPED':_0x18b086(0x40f),'ERROR':_0x18b086(0x561),'INSTALLED':_0x18b086(0x121),'UNINSTALLED':_0x18b086(0x70d)}),_0x220c9e=Object[_0x18b086(0x2f3)](new Set([_0x1014a5[_0x18b086(0x36f)],_0x1014a5['STOPPED'],_0x1014a5[_0x18b086(0x3fb)],_0x1014a5[_0x18b086(0x1b7)]]));function _0x3348bf(_0x3dd8ad){const _0x178045=_0x18b086;return _0x3dd8ad?.['enabled']===![]?_0x1014a5[_0x178045(0x773)]:_0x178045(0x226);}return okdbEnginesEnums={'TYPE_ENGINES':_0x525457,'MAX_UPDATE_RETRIES':_0x104ae5,'ENGINE_STATUS':_0x1014a5,'ENGINE_EVENTS':_0x483592,'UPDATABLE_STATUSES':_0x220c9e,'durableOnlyEngineState':_0x3348bf},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x1badd6=_0x30dd4b;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x5ccc97=Object[_0x1badd6(0x2f3)]({'EMBEDDER':_0x1badd6(0x43f),'INDEXER':_0x1badd6(0x758),'SEARCH':'vector-search','WORKER':_0x1badd6(0x2ae)}),_0x120db1=Object['freeze']({'PENDING':'pending','DONE':'done','FAILED':_0x1badd6(0x2e4),'DELETED':_0x1badd6(0x3cc)}),_0x2741a4=Object[_0x1badd6(0x2f3)]({'INDEXER_READY':'embeddings:indexer:ready','INDEXER_FLUSHED':_0x1badd6(0x191),'INDEXER_DOC_DONE':_0x1badd6(0x24b),'INDEXER_DOC_FAILED':'embeddings:indexer:doc:failed','INDEXER_DOC_QUEUED':_0x1badd6(0x627),'STRATEGY_REGISTERED':_0x1badd6(0x599),'DOC_STATUS_CHANGE':_0x1badd6(0x666),'PIPELINE_READY':_0x1badd6(0x1c8)}),_0x536353=Object['freeze']({'MODELS':'~emb:models','DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':_0x1badd6(0x18a)});return enums={'ENGINE_TYPES':_0x5ccc97,'INDEXER_DOC_STATUS':_0x120db1,'EMBEDDINGS_EVENTS':_0x2741a4,'INTERNAL_TYPES':_0x536353},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x2ace48=_0x30dd4b;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x4093e5=Object[_0x2ace48(0x2f3)]({'PENDING':_0x2ace48(0x1b8),'RUNNING':'running','DONE':'done','FAILED':_0x2ace48(0x2e4)}),_0x851843=Object[_0x2ace48(0x2f3)]({'ACTIVE':_0x2ace48(0xfe),'PAUSED':_0x2ace48(0x1ec),'DRAINING':_0x2ace48(0x451)}),_0x3954e0=Object[_0x2ace48(0x2f3)]({'ENQUEUED':'queue:enqueued','DONE':'queue:done','FAILED':_0x2ace48(0x564),'RETRY':_0x2ace48(0x4f4),'RESCHEDULED':_0x2ace48(0x5fd),'REMOVED':_0x2ace48(0x2b2),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x2ace48(0x79e),'CLEAR_DONE':_0x2ace48(0x545),'LOG':_0x2ace48(0x3ff)}),_0x29bb08=Object[_0x2ace48(0x2f3)](['debug',_0x2ace48(0x2d0),_0x2ace48(0x5e2),_0x2ace48(0x561)]),_0x5ee82b=0x1,_0x3ded2d=0xc350,_0xa09763=0x400,_0x30fcb9=0x800;function _0x38f6d0(_0x5d3e72){const _0x5b42db=_0x2ace48;return _0x5d3e72!=null&&typeof _0x5d3e72===_0x5b42db(0x218)&&(_0x5d3e72[_0x5b42db(0x7c0)]===Object||Object[_0x5b42db(0x36d)](_0x5d3e72)===null);}function _0x14fc44(_0x2d1517,_0x53aca9,_0x47b326,_0x4190b3){const _0x2b3036=_0x2ace48;if(_0x2d1517==null)return _0x53aca9;const _0x193939=Number(_0x2d1517);if(!Number[_0x2b3036(0x1b6)](_0x193939))return _0x53aca9;const _0xc6a69=Math['trunc'](_0x193939);if(_0xc6a69<_0x47b326)return _0x47b326;if(_0xc6a69>_0x4190b3)return _0x4190b3;return _0xc6a69;}function _0x254437(_0x1bbff8){const _0x13e780=_0x2ace48;if(!_0x1bbff8)return[];if(typeof _0x1bbff8==='string')_0x1bbff8=[_0x1bbff8];if(!Array[_0x13e780(0x470)](_0x1bbff8))throw new Error('tags\x20must\x20be\x20array\x20or\x20string');const _0x317bf2=[],_0x379459=new Set();for(const _0x2a04c7 of _0x1bbff8){if(_0x2a04c7==null)continue;const _0x14b909=String(_0x2a04c7)['trim']();if(!_0x14b909)continue;if(_0x14b909[_0x13e780(0x306)]>0x80)throw new Error(_0x13e780(0x236));if(_0x379459[_0x13e780(0x37b)](_0x14b909))continue;_0x379459[_0x13e780(0x241)](_0x14b909),_0x317bf2[_0x13e780(0x150)](_0x14b909);if(_0x317bf2[_0x13e780(0x306)]>=0x20)break;}return _0x317bf2;}function _0x37d084(_0x242f77){const _0x5861de=_0x2ace48;if(_0x242f77==null)return null;const _0x349c98=String(_0x242f77)['trim']();if(!_0x349c98)return null;if(_0x349c98[_0x5861de(0x306)]>0x80)throw new Error(_0x5861de(0x120));return _0x349c98;}function _0x4f88d3(_0x3275a8,_0x328bad=0x1){const _0x53bea9=_0x2ace48;if(_0x3275a8==null)return[];if(typeof _0x3275a8===_0x53bea9(0x677)){const _0x3dbb28=_0x37d084(_0x3275a8);if(!_0x3dbb28)return[];return[{'id':_0x3dbb28,'tokens':_0x328bad}];}if(!Array[_0x53bea9(0x470)](_0x3275a8))throw new Error(_0x53bea9(0x5e9));const _0x3a2034=[],_0x17d90d=new Set();for(const _0x557a3e of _0x3275a8){let _0x1fb9f8,_0x242ffd;if(Array[_0x53bea9(0x470)](_0x557a3e))[_0x1fb9f8,_0x242ffd]=_0x557a3e;else{if(_0x557a3e&&typeof _0x557a3e===_0x53bea9(0x218))({id:_0x1fb9f8,tokens:_0x242ffd}=_0x557a3e);else{if(typeof _0x557a3e===_0x53bea9(0x677))_0x1fb9f8=_0x557a3e,_0x242ffd=_0x328bad;else continue;}}_0x1fb9f8=_0x37d084(_0x1fb9f8);if(!_0x1fb9f8)continue;const _0x570054=_0x242ffd==null?_0x328bad:Math[_0x53bea9(0x35e)](Number(_0x242ffd));if(!Number['isFinite'](_0x570054)||_0x570054<0x1)throw new Error('bucket\x20\x22'+_0x1fb9f8+_0x53bea9(0x3a2));if(_0x570054>0xf4240)throw new Error('bucket\x20\x22'+_0x1fb9f8+'\x22\x20tokens\x20too\x20large');if(_0x17d90d['has'](_0x1fb9f8))throw new Error(_0x53bea9(0x44f)+_0x1fb9f8);_0x17d90d['add'](_0x1fb9f8),_0x3a2034[_0x53bea9(0x150)]({'id':_0x1fb9f8,'tokens':_0x570054});}return _0x3a2034;}function _0x2e4443(_0x158257,_0x514183=0x400){const _0x5fcfd6=_0x2ace48;if(_0x158257==null)return null;const _0x14626a=String(_0x158257)[_0x5fcfd6(0x101)](0x0,_0x514183);return _0x14626a||null;}function _0x54d05a(_0x17ce91){const _0x502a1c=_0x2ace48;if(_0x17ce91==null)return null;if(_0x17ce91[_0x502a1c(0xfb)]!==undefined&&_0x17ce91[_0x502a1c(0x2e6)]!==undefined)return _0x17ce91;return{'key':_0x17ce91['id']??null,'value':_0x17ce91};}function _0x5886df(_0xd9f42f){const _0x521330=_0x2ace48;let _0x4cc489=_0xd9f42f;if(typeof _0xd9f42f==='string')_0x4cc489={'message':_0xd9f42f};if(!_0x38f6d0(_0x4cc489))throw new Error('log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object');const _0xf4b643=_0x4cc489[_0x521330(0x31f)]==null?_0x521330(0x2d0):String(_0x4cc489['level'])[_0x521330(0x3ae)]();if(!_0x29bb08[_0x521330(0x1d4)](_0xf4b643))throw new Error('invalid\x20log\x20level:\x20'+_0xf4b643);if(_0x4cc489['message']==null)throw new Error(_0x521330(0x740));const _0x3f8967=String(_0x4cc489[_0x521330(0x3f9)])[_0x521330(0x101)](0x0,_0xa09763);let _0x118a8c=null;if(_0x4cc489['fields']!=null){if(!_0x38f6d0(_0x4cc489[_0x521330(0x102)]))throw new Error(_0x521330(0x2f4));if(JSON[_0x521330(0x34b)](_0x4cc489['fields'])[_0x521330(0x306)]>_0x30fcb9)throw new Error(_0x521330(0x203));_0x118a8c=_0x4cc489[_0x521330(0x102)];}return{'level':_0xf4b643,'message':_0x3f8967,'fields':_0x118a8c,'ts':Date[_0x521330(0x466)]()};}function _0x3fd883(_0x358209){const _0x4ad8b8=_0x2ace48;if(_0x358209==null)return;if(!Number[_0x4ad8b8(0x1a5)](_0x358209)||_0x358209<_0x5ee82b||_0x358209>_0x3ded2d)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x5ee82b+',\x20'+_0x3ded2d+']');}function _0x804151(_0x12816a){const _0x250350=_0x2ace48;if(!_0x38f6d0(_0x12816a))throw new Error(_0x250350(0x701));if(typeof _0x12816a['id']!==_0x250350(0x677)||_0x12816a['id'][_0x250350(0x306)]<0x8)throw new Error(_0x250350(0x137));if(typeof _0x12816a[_0x250350(0x705)]!==_0x250350(0x677)||!_0x12816a['type'])throw new Error('job.type\x20must\x20be\x20non-empty\x20string');if(!Object[_0x250350(0x7d4)](_0x4093e5)[_0x250350(0x1d4)](_0x12816a['status']))throw new Error(_0x250350(0x6ea)+_0x12816a[_0x250350(0x2b6)]);for(const _0x2d028c of[_0x250350(0x428),_0x250350(0x469),'updated']){if(typeof _0x12816a[_0x2d028c]!==_0x250350(0x682)||!Number[_0x250350(0x1b6)](_0x12816a[_0x2d028c]))throw new Error(_0x250350(0x37c)+_0x2d028c+_0x250350(0x5da));}if(_0x12816a[_0x250350(0x604)]!=null&&(typeof _0x12816a['finished']!=='number'||!Number[_0x250350(0x1b6)](_0x12816a[_0x250350(0x604)])))throw new Error(_0x250350(0x634));if(!Number['isInteger'](_0x12816a[_0x250350(0x340)])||_0x12816a[_0x250350(0x340)]<0x0)throw new Error('job.tries\x20must\x20be\x20non-negative\x20int');if(!Number['isInteger'](_0x12816a[_0x250350(0x1bf)]))throw new Error(_0x250350(0x423));if(_0x12816a[_0x250350(0x494)]!==null&&_0x12816a[_0x250350(0x494)]!==Infinity&&(!Number[_0x250350(0x1a5)](_0x12816a[_0x250350(0x494)])||_0x12816a['max_tries']<0x1))throw new Error(_0x250350(0x1d6));if(_0x12816a[_0x250350(0x75b)]!=null&&(!Number[_0x250350(0x1a5)](_0x12816a[_0x250350(0x75b)])||_0x12816a['retry_delay']<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x12816a[_0x250350(0x25d)]!=null&&(typeof _0x12816a['backoff_multiplier']!==_0x250350(0x682)||_0x12816a['backoff_multiplier']<0x1))throw new Error(_0x250350(0x6e9));if(_0x12816a[_0x250350(0x6cd)]!=null&&typeof _0x12816a['claim_id']!==_0x250350(0x677))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x12816a[_0x250350(0x37e)]!=null&&(typeof _0x12816a[_0x250350(0x37e)]!=='number'||!Number[_0x250350(0x1b6)](_0x12816a[_0x250350(0x37e)])))throw new Error(_0x250350(0x5a3));if(_0x12816a[_0x250350(0x1ad)]!=null&&typeof _0x12816a['bucket']!==_0x250350(0x677))throw new Error(_0x250350(0x733));if(_0x12816a[_0x250350(0x7c8)]!=null&&(!Number[_0x250350(0x1a5)](_0x12816a[_0x250350(0x7c8)])||_0x12816a[_0x250350(0x7c8)]<0x1))throw new Error('job.bucket_tokens\x20must\x20be\x20int\x20>=1');if(_0x12816a[_0x250350(0x375)]!=null){if(!Array[_0x250350(0x470)](_0x12816a[_0x250350(0x375)]))throw new Error(_0x250350(0x24e));for(const _0x1a5cd of _0x12816a[_0x250350(0x375)]){if(!_0x1a5cd||typeof _0x1a5cd!==_0x250350(0x218))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x1a5cd['id']!==_0x250350(0x677)||!_0x1a5cd['id']['trim']())throw new Error(_0x250350(0x722));if(!Number['isInteger'](_0x1a5cd[_0x250350(0x1f1)])||_0x1a5cd[_0x250350(0x1f1)]<0x1)throw new Error(_0x250350(0x188));}}if(_0x12816a['cron']!=null&&typeof _0x12816a['cron']!=='string')throw new Error(_0x250350(0x2ca));if(_0x12816a[_0x250350(0x514)]!=null&&typeof _0x12816a['idempotency_key']!==_0x250350(0x677))throw new Error(_0x250350(0x7f4));if(!Array[_0x250350(0x470)](_0x12816a[_0x250350(0x5a1)]))throw new Error(_0x250350(0x786));if(_0x12816a[_0x250350(0x278)]!=null&&typeof _0x12816a[_0x250350(0x278)]!=='string')throw new Error(_0x250350(0x66c));if(_0x12816a[_0x250350(0x665)]!=null&&typeof _0x12816a[_0x250350(0x665)]!=='string')throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x12816a[_0x250350(0x122)]!=null&&typeof _0x12816a[_0x250350(0x122)]!==_0x250350(0x677))throw new Error(_0x250350(0x4cd));if(_0x12816a[_0x250350(0x562)]!=null&&typeof _0x12816a[_0x250350(0x562)]!=='string')throw new Error(_0x250350(0x1aa));for(const _0x1b9b8e of[_0x250350(0x7a2),'failed_ttl']){const _0x31ab59=_0x12816a[_0x1b9b8e];if(_0x31ab59!=null&&(!Number['isInteger'](_0x31ab59)||_0x31ab59<0x0))throw new Error(_0x250350(0x37c)+_0x1b9b8e+_0x250350(0x541));}_0x3fd883(_0x12816a[_0x250350(0x2ac)]);}function _0x2223b4(_0x23ecf9){const _0x4ade71=_0x2ace48;if(!_0x38f6d0(_0x23ecf9))throw new Error(_0x4ade71(0x3e5));if(typeof _0x23ecf9['id']!==_0x4ade71(0x677)||!_0x23ecf9['id']['trim']())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object['values'](_0x851843)[_0x4ade71(0x1d4)](_0x23ecf9['status']))throw new Error(_0x4ade71(0x623)+_0x23ecf9[_0x4ade71(0x2b6)]);if(_0x23ecf9[_0x4ade71(0x347)]!=null&&(!Number['isInteger'](_0x23ecf9['max_concurrency'])||_0x23ecf9['max_concurrency']<0x1))throw new Error(_0x4ade71(0x67c));if(_0x23ecf9[_0x4ade71(0x247)]!=null){if(!_0x38f6d0(_0x23ecf9[_0x4ade71(0x247)]))throw new Error(_0x4ade71(0x782));const _0x4f3e38=_0x23ecf9['defaults'];if(_0x4f3e38[_0x4ade71(0x494)]!=null&&(!Number[_0x4ade71(0x1a5)](_0x4f3e38[_0x4ade71(0x494)])||_0x4f3e38[_0x4ade71(0x494)]<0x1))throw new Error(_0x4ade71(0x62b));if(_0x4f3e38[_0x4ade71(0x75b)]!=null&&(!Number[_0x4ade71(0x1a5)](_0x4f3e38['retry_delay'])||_0x4f3e38[_0x4ade71(0x75b)]<0x0))throw new Error('job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null');if(_0x4f3e38[_0x4ade71(0x25d)]!=null&&(typeof _0x4f3e38[_0x4ade71(0x25d)]!==_0x4ade71(0x682)||_0x4f3e38[_0x4ade71(0x25d)]<0x1))throw new Error(_0x4ade71(0x19e));if(_0x4f3e38[_0x4ade71(0x1bf)]!=null&&!Number[_0x4ade71(0x1a5)](_0x4f3e38[_0x4ade71(0x1bf)]))throw new Error(_0x4ade71(0x3e9));if(_0x4f3e38[_0x4ade71(0x6c1)]!=null&&(!Number[_0x4ade71(0x1a5)](_0x4f3e38['ttl'])||_0x4f3e38[_0x4ade71(0x6c1)]<0x0))throw new Error(_0x4ade71(0x126));for(const _0x3ea94c of[_0x4ade71(0x7a2),'failed_ttl']){if(_0x4f3e38[_0x3ea94c]!=null&&(!Number['isInteger'](_0x4f3e38[_0x3ea94c])||_0x4f3e38[_0x3ea94c]<0x0))throw new Error(_0x4ade71(0x140)+_0x3ea94c+_0x4ade71(0x541));}if(_0x4f3e38[_0x4ade71(0x375)]!=null&&!Array[_0x4ade71(0x470)](_0x4f3e38['buckets']))throw new Error('job_type.defaults.buckets\x20must\x20be\x20array|null');_0x3fd883(_0x4f3e38[_0x4ade71(0x2ac)]);}if(_0x23ecf9[_0x4ade71(0x463)]!=null){if(!_0x38f6d0(_0x23ecf9[_0x4ade71(0x463)]))throw new Error(_0x4ade71(0x105));if(!_0x38f6d0(_0x23ecf9[_0x4ade71(0x463)][_0x4ade71(0x2b7)]))throw new Error(_0x4ade71(0x40e));if(typeof _0x23ecf9['payload_schema']['enforce']!==_0x4ade71(0x6b3))throw new Error(_0x4ade71(0x263));}for(const _0x3ad9cd of[_0x4ade71(0x7e5),_0x4ade71(0x7c1)]){if(typeof _0x23ecf9[_0x3ad9cd]!==_0x4ade71(0x682)||!Number['isFinite'](_0x23ecf9[_0x3ad9cd]))throw new Error(_0x4ade71(0x7d9)+_0x3ad9cd+_0x4ade71(0x5da));}}function _0xd4e0d4(_0xd0999a){const _0x517469=_0x2ace48;if(!_0x38f6d0(_0xd0999a))throw new Error(_0x517469(0x5e1));if(typeof _0xd0999a['id']!==_0x517469(0x677)||!_0xd0999a['id']['trim']())throw new Error('bucket.id\x20must\x20be\x20non-empty\x20string');if(!Number['isInteger'](_0xd0999a[_0x517469(0x1f1)])||_0xd0999a[_0x517469(0x1f1)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x517469(0x1a5)](_0xd0999a[_0x517469(0x277)])||_0xd0999a[_0x517469(0x277)]<0x0)throw new Error(_0x517469(0x5fb));if(_0xd0999a[_0x517469(0x1f1)]>_0xd0999a[_0x517469(0x277)])throw new Error(_0x517469(0x7ce));if(!Number[_0x517469(0x1a5)](_0xd0999a[_0x517469(0x237)])||_0xd0999a[_0x517469(0x237)]<0x0)throw new Error(_0x517469(0x370));if(!Number[_0x517469(0x1a5)](_0xd0999a[_0x517469(0x1f5)])||_0xd0999a[_0x517469(0x1f5)]<0x0)throw new Error(_0x517469(0x59d));if(typeof _0xd0999a[_0x517469(0x5db)]!==_0x517469(0x682)||!Number[_0x517469(0x1b6)](_0xd0999a[_0x517469(0x5db)]))throw new Error(_0x517469(0xd9));}return okdbQueueValidate={'STATUS':_0x4093e5,'JOB_TYPE_STATUS':_0x851843,'QUEUE_EVENTS':_0x3954e0,'LOG_LEVELS':_0x29bb08,'LOG_CAP_MIN':_0x5ee82b,'LOG_CAP_MAX':_0x3ded2d,'clampInt':_0x14fc44,'asNullableString':_0x2e4443,'normalizeResult':_0x54d05a,'normalizeTags':_0x254437,'normalizeBucket':_0x37d084,'normalizeBuckets':_0x4f88d3,'normalizeLogEntry':_0x5886df,'validateJobShape':_0x804151,'validateJobTypeShape':_0x2223b4,'validateBucketShape':_0xd4e0d4},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x5bb8bd=0x2**0x1f-0x1;function _0x1b73ad(_0x25dff1){if(!(_0x25dff1>0x0))return 0x0;return _0x25dff1>_0x5bb8bd?_0x5bb8bd:_0x25dff1;}function _0x5c2f09(_0x58bc51){return _0x58bc51===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x5bb8bd,'clampTimerDelay':_0x1b73ad,'isNeverDelay':_0x5c2f09},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x13ab2b=_0x30dd4b;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x26993c=require$$0$6,{clampTimerDelay:_0x5eab9c}=requireOkdbTimers(),{EVENTS:_0x36c0e7,CHANGE_ACTIONS:_0x220f63}=requireOkdbEnums(),{LOOP:_0x5826f5}=requireOkdbLoopMonitor(),_0x531a35=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x37378f=0x5,_0x2f13c2=0x2710;class _0x43f62d extends _0x26993c{constructor(_0x2a26b4,_0x572d06={}){const _0x2721df=_0x5df8;super(),this[_0x2721df(0x11c)]=_0x2a26b4,this[_0x2721df(0x487)]=_0x572d06['quantum']??_0x531a35,this[_0x2721df(0x710)]=_0x572d06[_0x2721df(0x6b2)]??_0x37378f,this['_dedupeMax']=_0x572d06[_0x2721df(0xdd)]??_0x2f13c2,this['_started']=![],this['_cursors']=new Map(),this[_0x2721df(0x788)]=new Map(),this['_pending']=new Map(),this[_0x2721df(0x7c4)]=null,this['_draining']=![],this[_0x2721df(0x7be)]=new Set(),this[_0x2721df(0x16c)]=new Set(),this[_0x2721df(0x3f7)]=_0x546ee7=>this[_0x2721df(0x17f)](_0x546ee7),this[_0x2721df(0x2ec)]=_0x67e0bf=>this[_0x2721df(0x193)](_0x67e0bf),this['_onPoke']=_0x521ffa=>this[_0x2721df(0x52b)](_0x521ffa),this[_0x2721df(0x657)]=()=>this['stop']();}[_0x13ab2b(0x6ac)](){const _0x51d215=_0x13ab2b;if(this[_0x51d215(0x355)])return;this['_started']=!![];for(const [_0x2efaa5,_0x52ad3e]of this[_0x51d215(0x11c)][_0x51d215(0x2e5)]){if(_0x2efaa5[_0x51d215(0x67b)]('~'))continue;try{_0x52ad3e[_0x51d215(0x182)]();}catch{}}for(const [_0x57b7e7,_0x593b7b]of this[_0x51d215(0x11c)][_0x51d215(0x2e5)]){if(_0x57b7e7[_0x51d215(0x67b)]('~'))continue;try{this[_0x51d215(0x788)][_0x51d215(0x5af)](_0x57b7e7,_0x593b7b[_0x51d215(0x4c5)]()||0x0);}catch{}}const {events:_0x5be6fc}=this['okdb'];_0x5be6fc['on'](_0x36c0e7[_0x51d215(0x231)],this[_0x51d215(0x2ec)]),_0x5be6fc['on'](_0x36c0e7[_0x51d215(0x510)],this[_0x51d215(0x3f7)]),_0x5be6fc['on'](_0x36c0e7[_0x51d215(0x14e)],this['_onItem']),_0x5be6fc['on'](_0x36c0e7[_0x51d215(0x472)],this['_onItem']),_0x5be6fc['on'](_0x36c0e7[_0x51d215(0x433)],this[_0x51d215(0x336)]),_0x5be6fc[_0x51d215(0x511)](_0x36c0e7[_0x51d215(0x7bc)],this[_0x51d215(0x657)]);}[_0x13ab2b(0x7af)](){const _0x3a389d=_0x13ab2b;if(!this['_started'])return;this[_0x3a389d(0x355)]=![];const {events:_0x203f38}=this['okdb'];_0x203f38[_0x3a389d(0x2b9)](_0x36c0e7[_0x3a389d(0x231)],this[_0x3a389d(0x2ec)]),_0x203f38[_0x3a389d(0x2b9)](_0x36c0e7[_0x3a389d(0x510)],this[_0x3a389d(0x3f7)]),_0x203f38[_0x3a389d(0x2b9)](_0x36c0e7[_0x3a389d(0x14e)],this['_onItem']),_0x203f38[_0x3a389d(0x2b9)](_0x36c0e7[_0x3a389d(0x472)],this['_onItem']),_0x203f38[_0x3a389d(0x2b9)](_0x36c0e7[_0x3a389d(0x433)],this[_0x3a389d(0x336)]);try{_0x203f38[_0x3a389d(0x2b9)](_0x36c0e7[_0x3a389d(0x7bc)],this['_onStop']);}catch{}this[_0x3a389d(0x7c4)]&&(clearTimeout(this[_0x3a389d(0x7c4)]),this[_0x3a389d(0x7c4)]=null),this[_0x3a389d(0x1d9)][_0x3a389d(0x30f)](),this['_cursors'][_0x3a389d(0x30f)](),this[_0x3a389d(0x788)][_0x3a389d(0x30f)](),this['_seen'][_0x3a389d(0x30f)](),this[_0x3a389d(0x16c)][_0x3a389d(0x30f)]();}[_0x13ab2b(0x2d8)](_0x5637e4,_0x229140,_0x1e5e39,_0x23efd5){return _0x5637e4+'\x00'+_0x229140+'\x00'+_0x1e5e39+'\x00'+_0x23efd5;}['_markSeen'](_0x3aca41,_0x50c918,_0x4887df,_0x224c88){const _0xcd244e=_0x13ab2b,_0x3278d4=this['_dedupeKey'](_0x3aca41,_0x50c918,_0x4887df,_0x224c88);if(this[_0xcd244e(0x7be)][_0xcd244e(0x37b)](_0x3278d4))return![];this['_seen'][_0xcd244e(0x241)](_0x3278d4);if(this['_seen'][_0xcd244e(0x415)]>this[_0xcd244e(0x1d8)]){const _0x1db351=this[_0xcd244e(0x7be)][_0xcd244e(0x7d4)]()['next']()['value'];this[_0xcd244e(0x7be)]['delete'](_0x1db351);}return!![];}['_handlePending'](_0x23a01f){const _0x1fc824=_0x13ab2b;if(!this[_0x1fc824(0x355)]||!_0x23a01f)return;const {env:_0x11c13f,type:_0x1b9800,key:_0x3de01a,clock:_0x2fe99a}=_0x23a01f;if(_0x11c13f==null||_0x1b9800==null||_0x3de01a==null)return;if(typeof _0x11c13f===_0x1fc824(0x677)&&_0x11c13f['startsWith']('~'))return;if(typeof _0x1b9800===_0x1fc824(0x677)&&_0x1b9800[_0x1fc824(0x67b)]('~'))return;this[_0x1fc824(0x16c)][_0x1fc824(0x241)](this[_0x1fc824(0x2d8)](_0x11c13f,_0x1b9800,_0x3de01a,_0x2fe99a)),this[_0x1fc824(0x16c)]['size']>this['_dedupeMax']&&this[_0x1fc824(0x16c)]['delete'](this['_pendingLocal'][_0x1fc824(0x7d4)]()[_0x1fc824(0x659)]()['value']);}[_0x13ab2b(0x17f)](_0x592b2b){const _0x4c15b8=_0x13ab2b;if(!this[_0x4c15b8(0x355)]||!_0x592b2b)return;const {env:_0x9688c6,type:_0x3de563,key:_0x1ab829,clock:_0x718c23,origin:_0x2012b3,action:_0x1ae541,newValue:_0x210daa,oldValue:_0x111909}=_0x592b2b;if(_0x9688c6==null||_0x3de563==null||_0x1ab829==null)return;if(typeof _0x9688c6===_0x4c15b8(0x677)&&_0x9688c6['startsWith']('~'))return;if(typeof _0x3de563===_0x4c15b8(0x677)&&_0x3de563[_0x4c15b8(0x67b)]('~'))return;this[_0x4c15b8(0x16c)][_0x4c15b8(0x5cb)](this[_0x4c15b8(0x2d8)](_0x9688c6,_0x3de563,_0x1ab829,_0x718c23));if(!this['_markSeen'](_0x9688c6,_0x3de563,_0x1ab829,_0x718c23))return;const _0x59f749=_0x1ae541===_0x220f63[_0x4c15b8(0x1c3)]?_0x4c15b8(0x4a1):_0x4c15b8(0x77a);this[_0x4c15b8(0x663)]('change',{'env':_0x9688c6,'type':_0x3de563,'key':_0x1ab829,'op':_0x59f749,'clock':_0x718c23,'origin':_0x2012b3,'value':_0x59f749==='remove'?null:_0x210daa,'prevValue':_0x111909});}['_handlePoke'](_0x380aa8){const _0xbbec51=_0x13ab2b;if(!this['_started'])return;if(!_0x380aa8||typeof _0x380aa8[_0xbbec51(0x100)]!==_0xbbec51(0x677)||typeof _0x380aa8[_0xbbec51(0x705)]!==_0xbbec51(0x677))return;const {env:_0x25a3b4,type:_0x123dcd}=_0x380aa8;if(_0x25a3b4[_0xbbec51(0x67b)]('~')||_0x123dcd[_0xbbec51(0x67b)]('~'))return;this[_0xbbec51(0x1d9)][_0xbbec51(0x5af)](_0x25a3b4+'\x00'+_0x123dcd,{'env':_0x25a3b4,'type':_0x123dcd}),this[_0xbbec51(0x51e)]();}[_0x13ab2b(0x51e)](){const _0x15a83d=_0x13ab2b;if(this[_0x15a83d(0x7c4)])return;const _0x50df5a=()=>{const _0x35a427=_0x15a83d;this[_0x35a427(0x7c4)]=null,this[_0x35a427(0x7a3)]()[_0x35a427(0x22b)](()=>{});};this[_0x15a83d(0x7c4)]=setTimeout(_0x50df5a,_0x5eab9c(this[_0x15a83d(0x710)]));}async[_0x13ab2b(0x7a3)](){const _0x3204e6=_0x13ab2b;if(this['_draining']){this[_0x3204e6(0x51e)]();return;}this['_draining']=!![];try{const _0x5de5ce=[...this[_0x3204e6(0x1d9)][_0x3204e6(0x7d4)]()];this[_0x3204e6(0x1d9)][_0x3204e6(0x30f)]();let _0x400c71=![];for(const {env:_0x53a8fb,type:_0x59ffaa}of _0x5de5ce){try{const _0x269411=await this['_drainOne'](_0x53a8fb,_0x59ffaa);if(_0x269411)_0x400c71=!![];}catch{this[_0x3204e6(0x1d9)][_0x3204e6(0x5af)](_0x53a8fb+'\x00'+_0x59ffaa,{'env':_0x53a8fb,'type':_0x59ffaa}),_0x400c71=!![];}}if(_0x400c71||this[_0x3204e6(0x1d9)][_0x3204e6(0x415)]>0x0)this[_0x3204e6(0x51e)]();}finally{this[_0x3204e6(0x749)]=![];}}async['_drainOne'](_0xcf8947,_0x19ad41){const _0x2eaeac=_0x13ab2b,_0x21adce=await this[_0x2eaeac(0x11c)][_0x2eaeac(0x3b0)](_0xcf8947),_0x4b7e34=_0xcf8947+'\x00'+_0x19ad41;!this[_0x2eaeac(0x6f1)]['has'](_0x4b7e34)&&(!this[_0x2eaeac(0x788)]['has'](_0xcf8947)&&(_0x21adce['_enableChangelog'](),this[_0x2eaeac(0x788)][_0x2eaeac(0x5af)](_0xcf8947,_0x21adce[_0x2eaeac(0x4c5)]()||0x0)),this[_0x2eaeac(0x6f1)]['set'](_0x4b7e34,this['_baselines'][_0x2eaeac(0x759)](_0xcf8947)));const _0x5f3764=this[_0x2eaeac(0x6f1)][_0x2eaeac(0x759)](_0x4b7e34),_0x3652c4=_0x21adce[_0x2eaeac(0x4c5)](_0x19ad41)||0x0;if(_0x3652c4<=_0x5f3764)return![];const _0x273f1d=_0x5f3764+this[_0x2eaeac(0x487)],_0x8a2de2=Math[_0x2eaeac(0x6fa)](_0x3652c4,_0x273f1d),_0x3990db=_0x5826f5[_0x2eaeac(0x78d)]?_0x5826f5['now']():0x0,_0x4bd341=Array[_0x2eaeac(0x320)](_0x21adce[_0x2eaeac(0x591)](_0x19ad41,_0x5f3764+0x1,_0x8a2de2));let _0x5af8e8=_0x5f3764;for(const _0x2e0bd3 of _0x4bd341){const {clock:_0x28315f,key:_0xf80d50,action:_0x37e2f9,origin:_0x227544}=_0x2e0bd3;if(_0x28315f>_0x5af8e8)_0x5af8e8=_0x28315f;if(_0xf80d50==null)continue;if(this[_0x2eaeac(0x16c)][_0x2eaeac(0x37b)](this[_0x2eaeac(0x2d8)](_0xcf8947,_0x19ad41,_0xf80d50,_0x28315f)))continue;if(!this[_0x2eaeac(0xe9)](_0xcf8947,_0x19ad41,_0xf80d50,_0x28315f))continue;let _0x4885b6,_0x50bf1c;if(_0x37e2f9===_0x220f63[_0x2eaeac(0x1c3)])_0x4885b6=_0x2eaeac(0x4a1),_0x50bf1c=null;else{const _0x131c11=_0x21adce[_0x2eaeac(0x759)](_0x19ad41,_0xf80d50);_0x131c11==null?(_0x4885b6=_0x2eaeac(0x4a1),_0x50bf1c=null):(_0x4885b6=_0x2eaeac(0x77a),_0x50bf1c=_0x131c11);}this[_0x2eaeac(0x663)](_0x2eaeac(0x2f0),{'env':_0xcf8947,'type':_0x19ad41,'key':_0xf80d50,'op':_0x4885b6,'clock':_0x28315f,'origin':_0x227544,'value':_0x50bf1c});}if(_0x5826f5[_0x2eaeac(0x78d)])_0x5826f5[_0x2eaeac(0x60d)]('feed:'+_0xcf8947+':'+_0x19ad41,_0x5826f5['now']()-_0x3990db,'n='+_0x4bd341[_0x2eaeac(0x306)]);return this['_cursors'][_0x2eaeac(0x5af)](_0x4b7e34,Math[_0x2eaeac(0x1fa)](_0x5af8e8,_0x8a2de2)),_0x21adce[_0x2eaeac(0x4c5)](_0x19ad41)>_0x8a2de2;}['status'](){const _0x28588f=_0x13ab2b;return{'started':this['_started'],'quantum':this[_0x28588f(0x487)],'flushDebounce':this['_flushDebounce'],'cursors':Object[_0x28588f(0x5d5)]([...this[_0x28588f(0x6f1)][_0x28588f(0x5c7)]()]['map'](([_0x32f888,_0x52385f])=>[_0x32f888['replace']('\x00',':'),_0x52385f])),'pending':this[_0x28588f(0x1d9)][_0x28588f(0x415)],'seen':this['_seen']['size']};}}return _0x43f62d[_0x13ab2b(0x319)]=_0x531a35,okdbChangefeed={'OKDBChangefeed':_0x43f62d},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x48d316=_0x30dd4b;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x11dc71}=requireOkdbEnums(),_0x467c6d=new Set([_0x11dc71[_0x48d316(0x510)],_0x11dc71[_0x48d316(0x14e)],_0x11dc71[_0x48d316(0x472)]]),{ENGINE_EVENTS:_0x112139}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x2739e4}=requireEnums(),{QUEUE_EVENTS:_0x51a9a2}=requireOkdbQueueValidate(),_0x298ad7=Object[_0x48d316(0x7d4)](_0x11dc71),_0x47bd0d=Object['values'](_0x112139)[_0x48d316(0x3e7)](_0x2c58d2=>'engine:'+_0x2c58d2),_0x110c40=Object[_0x48d316(0x7d4)](_0x2739e4),_0x2ebdae=Object[_0x48d316(0x7d4)](_0x51a9a2),_0x491388=['processor:ready',_0x48d316(0x4b2),'processor:error',_0x48d316(0x1c0),_0x48d316(0x57f),_0x48d316(0x52f)],_0x3edd58=[..._0x298ad7,..._0x47bd0d,..._0x110c40,..._0x2ebdae,..._0x491388,_0x48d316(0x4d2)],_0x274f57=new Set(_0x3edd58),_0x3196ce=new Set([_0x11dc71[_0x48d316(0x510)],_0x11dc71[_0x48d316(0x14e)],_0x11dc71[_0x48d316(0x472)],_0x11dc71['TXN_START'],_0x11dc71[_0x48d316(0x716)],_0x11dc71[_0x48d316(0x1e4)],_0x11dc71[_0x48d316(0x540)],_0x11dc71[_0x48d316(0x49b)],_0x2739e4[_0x48d316(0x224)],_0x2739e4['INDEXER_DOC_FAILED'],_0x2739e4[_0x48d316(0x435)],_0x2739e4[_0x48d316(0x5ef)],_0x48d316(0x4b2)]),_0x5c57d7=_0x3edd58[_0x48d316(0x3c0)](_0x5d2b22=>_0x5d2b22===_0x48d316(0x4d2)||!_0x3196ce[_0x48d316(0x37b)](_0x5d2b22)),_0x931031=0x14,_0x36ce8b=0xc8;class _0x2a014d{constructor(_0x1f97fa,_0x286940={}){const _0x42832e=_0x48d316;this[_0x42832e(0x11c)]=_0x1f97fa,this[_0x42832e(0x234)]=_0x286940[_0x42832e(0x19d)]??_0x931031,this[_0x42832e(0x17b)]=_0x286940['ringSize']??_0x36ce8b,this[_0x42832e(0x287)]=new Set(),this['_buffer']=[],this[_0x42832e(0x197)]=[],this[_0x42832e(0x48a)]=null,this[_0x42832e(0x4af)]=![],this[_0x42832e(0x426)]=null,this[_0x42832e(0x16a)]=null;}[_0x48d316(0x7b7)](){const _0x2935fc=_0x48d316;if(this[_0x2935fc(0x4af)])return;this['_attached']=!![];const {okdb:_0x3a62d7}=this;this[_0x2935fc(0x48a)]=_0x3a62d7[_0x2935fc(0x4d2)][_0x2935fc(0x7b7)](_0x32c842=>this['_push'](_0x2935fc(0x4d2),_0x32c842));for(const _0x5bfff3 of _0x3edd58){if(_0x5bfff3===_0x2935fc(0x4d2))continue;const _0x52cbf3=_0x467c6d[_0x2935fc(0x37b)](_0x5bfff3),_0x4d528a=_0x3f4df8=>{const _0x4e35c5=_0x2935fc;if(_0x52cbf3&&this[_0x4e35c5(0x426)])return;this[_0x4e35c5(0x523)](_0x5bfff3,_0x3f4df8??{});};_0x3a62d7['events']['on'](_0x5bfff3,_0x4d528a),this[_0x2935fc(0x197)][_0x2935fc(0x150)]({'event':_0x5bfff3,'handler':_0x4d528a});}this[_0x2935fc(0x657)]=()=>this[_0x2935fc(0x385)](),_0x3a62d7['events'][_0x2935fc(0x511)](_0x11dc71[_0x2935fc(0x7bc)],this[_0x2935fc(0x657)]);}['detach'](){const _0x20df82=_0x48d316;if(!this[_0x20df82(0x4af)])return;if(this[_0x20df82(0x657)]){try{this['okdb'][_0x20df82(0x3a0)][_0x20df82(0x2b9)](_0x11dc71[_0x20df82(0x7bc)],this[_0x20df82(0x657)]);}catch{}this['_onStop']=null;}this[_0x20df82(0x48a)]?.(),this[_0x20df82(0x48a)]=null;for(const {event:_0x67dcfd,handler:_0x14326e}of this['_listeners']){try{this['okdb'][_0x20df82(0x3a0)][_0x20df82(0x2b9)](_0x67dcfd,_0x14326e);}catch{}}this[_0x20df82(0x197)]=[];for(const _0x2ad8a2 of this[_0x20df82(0x287)]){try{_0x2ad8a2[_0x20df82(0x7de)]?.();}catch{}}this['_connections'][_0x20df82(0x30f)](),this['detachFeed'](),this[_0x20df82(0x4af)]=![];}[_0x48d316(0x5b3)](_0x155cad){const _0x5e7f11=_0x48d316;if(!_0x155cad||this[_0x5e7f11(0x426)]===_0x155cad)return;this[_0x5e7f11(0x739)](),this[_0x5e7f11(0x426)]=_0x155cad,this['_onFeedChange']=_0x38c6fa=>{const _0x5b8cb8=_0x5e7f11;if(!_0x38c6fa)return;const _0x1be541=_0x38c6fa['op']===_0x5b8cb8(0x4a1)?_0x11dc71[_0x5b8cb8(0x472)]:_0x11dc71[_0x5b8cb8(0x14e)];this['_push'](_0x1be541,_0x38c6fa);},_0x155cad['on']('change',this['_onFeedChange']);}['detachFeed'](){const _0x18d0a5=_0x48d316;if(this[_0x18d0a5(0x426)]&&this[_0x18d0a5(0x16a)])try{this[_0x18d0a5(0x426)][_0x18d0a5(0x2b9)](_0x18d0a5(0x2f0),this[_0x18d0a5(0x16a)]);}catch{}this['_feed']=null,this[_0x18d0a5(0x16a)]=null;}[_0x48d316(0x7e9)](_0x2ef820,_0x102d11){const _0x5e4b19=_0x48d316;if(!_0x274f57['has'](_0x2ef820))return;this[_0x5e4b19(0x523)](_0x2ef820,_0x102d11??{});}['subscribe'](_0x39f9fc,_0x3e092e,_0x1c9b78){const _0x4b7e37=_0x48d316;if(this['_connections'][_0x4b7e37(0x415)]>=this[_0x4b7e37(0x234)])return _0x3e092e(_0x4b7e37(0x7c9),{'message':'Too\x20many\x20concurrent\x20connections','code':_0x4b7e37(0x256)}),()=>{};const _0x30f3a4=this[_0x4b7e37(0x535)](_0x39f9fc),_0x3d16c5={'send':_0x3e092e,'filter':_0x30f3a4,'close':_0x1c9b78??null};this[_0x4b7e37(0x287)][_0x4b7e37(0x241)](_0x3d16c5);for(const {event:_0x4acff8,data:_0x3e90ce}of this[_0x4b7e37(0x186)]){if(_0x30f3a4[_0x4b7e37(0x37b)](_0x4acff8))try{_0x3e092e(_0x4acff8,_0x3e90ce);}catch{}}return()=>this[_0x4b7e37(0x287)]['delete'](_0x3d16c5);}['ensureFeed'](){const _0x2b36fe=_0x48d316;if(this[_0x2b36fe(0x426)])return this[_0x2b36fe(0x426)];const {OKDBChangefeed:_0x2a012a}=requireOkdbChangefeed(),_0x2107cd=new _0x2a012a(this[_0x2b36fe(0x11c)]);_0x2107cd[_0x2b36fe(0x6ac)](),this[_0x2b36fe(0x5b3)](_0x2107cd);if(this[_0x2b36fe(0x11c)]&&!this['okdb'][_0x2b36fe(0x430)])this['okdb'][_0x2b36fe(0x430)]=_0x2107cd;return this[_0x2b36fe(0x426)];}get[_0x48d316(0x2a9)](){const _0x1ea554=_0x48d316;return this[_0x1ea554(0x287)]['size'];}['stats'](){const _0x59e566=_0x48d316;return{'connections':this[_0x59e566(0x2a9)],'bufferSize':this[_0x59e566(0x186)]['length'],'attached':this['_attached'],'allEvents':_0x3edd58[_0x59e566(0x306)],'defaultEvents':_0x5c57d7[_0x59e566(0x306)]};}static get[_0x48d316(0x3db)](){return _0x3edd58;}static get[_0x48d316(0x4be)](){return _0x5c57d7;}static get[_0x48d316(0x38c)](){return[..._0x3196ce];}[_0x48d316(0x535)](_0x187806){const _0xc48aef=_0x48d316;if(!_0x187806||!_0x187806[_0xc48aef(0x306)])return new Set(_0x5c57d7);const _0xfc228e=_0x187806[_0xc48aef(0x3c0)](_0xf6d5c1=>_0x274f57[_0xc48aef(0x37b)](_0xf6d5c1));return new Set(_0xfc228e[_0xc48aef(0x306)]?_0xfc228e:_0x5c57d7);}[_0x48d316(0x523)](_0x2719da,_0x224139){const _0x40c07f=_0x48d316,_0x50e209={..._0x224139,'_ts':_0x224139?.['_ts']??_0x224139?.['ts']??Date['now']()};this['_buffer']['push']({'event':_0x2719da,'data':_0x50e209});if(this[_0x40c07f(0x186)][_0x40c07f(0x306)]>this[_0x40c07f(0x17b)])this['_buffer'][_0x40c07f(0x615)]();for(const _0x2570f1 of this[_0x40c07f(0x287)]){if(_0x2570f1[_0x40c07f(0x3c0)][_0x40c07f(0x37b)](_0x2719da))try{_0x2570f1[_0x40c07f(0x221)](_0x2719da,_0x50e209);}catch{}}}}return okdbRelay=_0x2a014d,okdbRelay;}var hasRequiredLib;function _0x40a8(){const _0x41f7ea=['runtimeDeclarations','_cursors','flushMaxWait','geoConfig','scheduled','getHistory','_processorStops','compareKeys','clearAsync','readFieldMany','min','applyOps','\x22\x20not\x20found\x20in\x20~envs','outgoing','engineType','~ttl:key',':txnRange','job\x20must\x20be\x20object','_pdb','ttlStats','getGcHorizon','type','_subsV2','ctxEmit','_timer','_closeEnvLocally','admin','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','state','uninstalled','stopHandle','registerTemplate','_flushDebounce','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','removeSync','validateBlobIntegrity','child','Plugin\x20must\x20have\x20a\x20name','TXN_END','_debounceTimer','nodeKeys','processorsParticipating','~processes:cmd','nodeKey','bulkRemoveChunk','BAD_PLUGIN','$defs','okdb-','ENGINE_DRIVER_ALREADY_REGISTERED','tools','job.buckets[].id\x20must\x20be\x20non-empty\x20string','ms/','_customReducers','args','Type\x20\x22','Plugin\x20\x27','changeToClockDb','end','addJobType','_stopFor','worker','initialize','_sync','path','removed','getCursor','isSync','job.bucket\x20must\x20be\x20string|null','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','_changeToClockDb','openDB','index:registered','_pokeListener','detachFeed','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','_indexBuilds','files.upload:\x20stream','json','vector','match','log\x20entry\x20message\x20required','Referenced\x20type\x20\x27','setKick','Date','stateInfo','doesExist','_admissionTimer','rowKey','\x22\x20to\x20enable\x20it.','_draining','pipelines','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','inFlight','_rbuf','native','ctxLog','$gt','_ensureTypeEnv',':\x20key\x20[','registerEmbedderFactory','INVALID_SCHEMA','_settleRead','samplePayloads','authenticated','indexer','get','getOpenWarning','retry_delay','Version\x20mismatch\x20for\x20','Server','utf8','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','index','processor:\x20module\x20\x27','setUint32','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','system','settledTickets','SEARCH','_range','ctxRelease','listIndexKeys','getIndexStatus','busEmit','__absent','balanced','putSync','OKDBNotFoundError','durableRetryFailed','lmdb','formerIds','STOPPED','_warnUnknownOptions','handlerName','bootSyncedViews','Invalid\x20primary\x20key\x20type:\x20','compare','__after','put','registerHandler:\x20fn\x20must\x20be\x20a\x20function','_durableWorkerStats','details','attachConsole','flatMap','sift','instance','job_type.defaults\x20must\x20be\x20object|null','listening','migrate','~proc:state','job.tags\x20must\x20be\x20array','recommended','_baselines','geoQuery','dropIndex','_pressure','listTemplates','enabled','join','countByIndex','checkSignals','effective','noteListenAddr','system:clock_change','_refIndexDb','fts:registered','summary','__okdb','itemsGroups','flushTicket','_busFacade','interest','embedder\x20is\x20gone','setPeersFn','queue:clear-progress','getUniqueViolation','_ack','processorHold','done_ttl','_drain','utf8Write','INVALID_VALUE','setSchema','isReader','$streamId','_stream','payload','pump','removeBucket','inBatch','localViewNames','stop','_reconcilePeer','getFloat64','_set','ref','__ttlCancelledGen','item','_durableEmbedderInfo','attach','(source)\x20=>\x20{','FTS_READY_TIMEOUT','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','__cmd','SYSTEM_STOPPED','_lookupByName','_seen','buildOwnRow','constructor','updated_at','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','patchDeclaration','_flushTimer','_oauthConfig','expiresAt','uninstall','bucket_tokens','relay:error','markJobProgress','prefetch','_modeApplied','markSnapshotComplete','bucket.tokens\x20cannot\x20exceed\x20capacity','must\x20be\x20an\x20object;\x20got\x20null','_jsSchemas','\x20=\x20finishUtf8(','for','some','values','hasNativeBatch','dirname','$nor','callAsync','job_type.','mean','_kbuf','release','runtimeState','close','durableTierLag','wake','engineStart','nidFor','isActive',':useReadTransaction','created_at','offset','_registrations','node','pushEphemeral','bridge','acquired','refreshTtlBatch','OKDBVersionMismatchError','_peerDb','limits','chunk\x20strategy\x20must\x20be\x20a\x20function','registerIndex','_ackDb','viewOp','job.idempotency_key\x20must\x20be\x20string|null','$in','exportName','Engine\x20template\x20build()\x20is\x20required:\x20','apiCall','bucket.updated\x20must\x20be\x20number','_envSyncStop','indexContent','a\x20non-empty\x20string','dedupeMax','lastClock','\x22\x20is\x20used\x20by:\x20','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','getEngine','resumeOpts','durableRetryDoc','getViolation','dataEnv','rollback','processor:\x20module.path\x20is\x20required','_blobStatusDb','_markSeen','setPrototypeOf','Cannot\x20openEnv(\x22','READER_HELD_ACROSS_AWAIT','createPipeline','_jsFactories','_http','writeBlob','gc.','bootSyncedPipelines','654924WSSKLG','listVectorStores','_sinks','embeddings:embed:settled','registerFts','_rebuild','total','dataView','key','_getType','TXN_ERROR','active','\x22\x20must\x20have\x20a\x20start()\x20method','env','slice','fields','engine','workerState','job_type.payload_schema\x20must\x20be\x20object|null','resetCursor','licenses','targetKey','_facade','_readViewExpired','node:events','$all','Foreign\x20key\x20violation:\x20','processors','oauth','isEnabled','rebuild','_put','listFtsEnvs','_readerCheckInterval','index:ready','sweepExpired','_adminRelay','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','health','_macro','loadedPath','okdb','embedder\x20request\x20still\x20pending','_startAutoCompactCheck','done','bucket\x20too\x20long','installed','status_message','_patch','hasStopFn','setMode','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','rows','family','empty\x20string','_deliver','bucketsDb','_registerType','spki','host','test','syncLock','forEach','Feature\x20not\x20available\x20on\x20free\x20tier:\x20',':\x20expected\x20','advanceHlcOnRecv','endIndex','patchSelf','job.id\x20must\x20be\x20string','listen','OKDBProcessor','system:env_release','readString\x20}','_reconcile','repair','TYPE_ALREADY_REGISTERED','_ensureTokensType','job_type.defaults.','disable','pendingResponses','_emit','exclusiveStart','setReadBuffer','internal','\x20===\x204)\x0a\x09\x09\x09\x09','taken','announceEnqueued','Index\x20\x22','cookies','localViewStats','ms\x20p99=','ITEM_UPDATE','a\x20string','push','_wsettle','.\x20Valid:\x20','_shouldApplyChange','enableAll','autoCompactState','_setPeerState','isBuffer','storeHasDiff','retry','restart','_blobsDir','_pokeHandler','_logChange','fingerprint','/([^/]+)','create','abort','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','whenSettled','_detachConsole','reject','sha256','dirty','PUT','openEnv','_onFeedChange','_searchWithScores','_pendingLocal','indexer\x20engine\x20not\x20running:\x20\x22','DEFAULT_TTL_MS','getSelfNode','dbs','throw','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','ttl:set','clearTtl','_native','loaded','_ensureVectorStore','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','allowUnsafe','schema:set','_ringSize','offWindow','subscriptions','Transaction\x20already\x20closed','_handleInProcess','retryable','existsSync','_enableChangelog','unknown\x20promise\x20token','undefined','explainIndex','_buffer','query','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','createReadStream','vec:','_isExpired','resetView','assign','processes','startIndex','recordPeerAck','embeddings:indexer:flushed','new','_handlePending','transaction','_ensureEnv','ctrl','_listeners','actionCount','catalog','_addr','getUint32','_stateDb','maxConnections','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','sessionsForKey','STARTING','_syncLock','__ttlByExpiry','_closed','_enqueueInTxn','isInteger','connected','storage\x20adapter\x20has\x20no\x20method\x20','code','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','job.error_stack\x20must\x20be\x20string|null','dropFts','hybridQuery','bucket','byIndex','\x20references\x20','Invalid\x20onDelete\x20rule\x20\x27','_writer','split','EMBEDDER','heartbeat','startAutoCompactCheck','isFinite','ERROR','pending','bus:env_release','inactive','getSession','resolveField:\x20resolver\x20must\x20be\x20a\x20function','onLicenseExpired','storeGetDiffsInRange','priority','processor:paused','processorsStop','_status','REMOVE','then','getRaw','target','__notImplementedNative','embeddings:pipeline:ready','previewTemplate','_rootDb','notes','listProviders','items','namespace','valuesForKey','isNaN','EMBED_PENDING','_id','_closeReadTransaction','includes','_lock','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','pokeHandler','_dedupeMax','_pending','sourceKey','offsetOf','_retryPending','event','onDelete','resumed','NativeLock','createEmbedder','aborted','default','TXN_ROLLBACK','ingest','__HOLD__','unpin','remoteAddress','_makeLazyVectorAdapter','function','selfKey','paused','exportEnvsBuf','process()\x20entry\x20\x22','_keepAlive','readTransaction','tokens','drivers','_sweepInProgress','proc','refill_every','createPublicKey','addInterest','handleDurableClock','registerHandler','max','_deliverEvent','no_action','REVERSE_INDEX','resetFts','~processes:desired','_tickCallback','mcp','_viewCache','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','item:remove','_ttlByKey','iterable','hasIndex','bootSyncedViewsInline','sseClose','dropType','node:path','license:added','job\x20id\x20required','_subscribeEvent','_license','index:','context','exportBuf','compactStorage','listRuns','_locks','registerPreparer','resetIndex','object','replaceInterests','workers','\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.','createLoginState','indexReady','mode','setStorageResolver','reconcile','send','markJobHeartbeat','clearSync','INDEXER_DOC_DONE','getEmbedderSchema','remote','queue.worker(\x27','dir','listBlobStatus','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','catch','api','bumpVersion','privateKey','meta','dup','ITEM_PENDING','clockToChangeDb','removeJobType','_maxConnections','return','tag\x20too\x20long','refill_amount','install','Map','_indexBuild','createQueryTester','replace','storeEnvPath','retryJob','uninstallEngine','Query\x20operator\x20\x22','add','markJobFail','clone','setDeltaLimit','setDefaultTTL','pipelineFamily','defaults','fts','_role','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','embeddings:indexer:doc:done','reconcilePeerPull','assertStartAllowed','job.buckets\x20must\x20be\x20array|null','registerExtractor','wait','let\x20position;\x20let\x20readString\x20=\x20','listPath','getKeys','bootLogMark','OKDBInvalidPrimaryKeyError','RELAY_FULL','File\x20not\x20found:\x20','newListener','db.processors.','INVALID_ARGUMENT','itemsPlan','\x22\x20requires\x20a\x20`handler`\x20function','backoff_multiplier','validate','bus:type_drop','_refCache','resumeJobType','sortedDb','job_type.payload_schema.enforce\x20must\x20be\x20boolean','detachConsole','OKDBError','processor','getBucket','OKDBIndexHasConsumersError','\x27\x20on\x20type\x20\x27','system:ready','nextExpiry','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','_np','token','\x22\x20must\x20be\x20a\x20plain\x20object','SUB_ENV','lastTxnId','resolution','returnRecoverableErrors','failures','_features','useVersions','capacity','tag','raw','_ttlTimeout','req','REF_VIOLATION_RESOLVED','Array.from)\x20before\x20any\x20await.','ensure','stream','blobPath','\x20>=\x200x80)\x20','msg','resolveField:\x20field\x20required','signalWant','_runRecord','process(entries)\x20requires\x20at\x20least\x20one\x20entry','_connections','pumpEnvSync','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','forceAfterMs','existing','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','~file:blob_status','_callPacked','turn','tierList','granId','_txnBuf','transaction\x20commit\x20failed','address','durableCursorFloor','exports','removeListener','pid','listTTL','index:progress','OKDB','describeIndexes','_handle','restrict','OKDBForeignKeyDeleteError','OKDBInvalidIndexKeyError','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','Storage\x20resolver\x20must\x20be\x20a\x20function','_startClaimedSoon','_systemEnv','stor','records','_ttlCompositeKey','schema','connectionCount','syncBlobs','refs','logCap','ref:violation','embed-worker','clearDefaultTTL','OKDBSchemaCollectionError','__warned','queue:removed','getAll','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','Unknown\x20transaction\x20action:\x20','status','definition','getSecurityNotices','off','2430918nylgte','description',':\x20unknown\x20option\x20\x27','_dupArg','_logEnv','prevDb','err','_pendingOps','timer','routes','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','_detachLogSink','$payload','isWriter','allocUnsafeSlow','system:stopped','job.cron\x20must\x20be\x20string|null','_listening','durableClock','_clockListener','$lte','sseSend','info','HTTP_ERROR','storageStats','orchestratorStarted','Cannot\x20set\x20enforce\x20schema\x20on\x20','ttlTimer','removeInterest','claim\x20requires\x20non-empty\x20type','_dedupeKey','stopAll','_isReader','\x22\x20not\x20found','VERSION_MISMATCH','setJobTypeSchema','TypeError','isOpenForIp','set_null','setKeyBuffer','flushQuantum','enqueue','failed','_envs','value','ensureType','_waitNative','keys','maxMs','reducers','_onPending','unique:violation',':data','admission','change','Referenced\x20key\x20\x27','_run','freeze','log\x20entry\x20fields\x20must\x20be\x20object|null','ttlState','listRefViolations','type:registered','_settleWrite','envSize','$or','_defaultEnvObj','stateNames','_pumper','getAuthOptions','_localViews','hasOwnProperty','UNKNOWN_RANGE_OPTION','loginSelect','9221480sCWSCK','~files','backupRoot','length','sourceType','\x27:\x20','durableDoc','_doHooks','ENGINE_INVALID_TEMPLATE','\x20dropped\x20(buffer\x20full)','blobsDir','tolerant','clear','_closedHandle','envNames','includeViolations','resolve',':emb:','buildStep','replaceMember','childTransaction','setTtl','CHANGEFEED_QUANTUM','clients',':index','getEntry','cause','importBuf','level','from','acquiredAt','~system','apply','describeIndex','type:drop','isOAuthEmailAllowed','\x20must\x20be\x20','customReducerNames','loop-lag\x20','patchConfig','WORKERS_REMOVED','sweepOrphanLogs','$not','getIndexMeta','_ensure','useReadTransaction','name','_listenAddr','_openLocalPeerDb','regInfo','allSettled','_onPoke','current','isWellFormed','_claimGated','$gte','storage\x20adapter\x20is\x20gone','setClaiming','$and','removes','describeTypeDetailed','tries','getDefaultTTL','login','txn','removeJob','stderr','_initialize','max_concurrency','range','_scheduleTTLSweep','return\x20fromCharCode(','stringify','_isOpen','getNodeRecord','./native-loader.js','awaitIdle','planUpdateJob','SCHEMA_VALIDATION_FAILED','ftsQuery','listLinks','puts','_started','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','_admissionStarted','origin','session','fts:drop','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','validateRouteInput','storeGetHeadCount','trunc','ready','typeStats','KNOWN_OPTIONS','subarray','_syncExpiresAtField','_low','ttlMs','getStateAt','Database\x20already\x20opened/closed','index:reset','setProcessingConfig','validateOidcAccessToken','action','~fts:envs','getPrototypeOf','PLUGIN_ALREADY_REGISTERED','ONLINE','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','_clearChunked','sweepExpiredTTL','enableNullTermination','resolveField','buckets','limit','continueIteration','createEngine','sync','running','has','job.','CREATED','claim_expires','__peers','batch','_readBuf','vecPut','type:','tryAcquire','detach','describeAllTypes','(worst\x20','REF_VIOLATION','appendJobLog','toJSON','resolveBackupDest','HIGH_FREQ_EVENTS','registerModel','_assertFiles','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','OKDBSchemaValidationError','registerViewReducer','setWake','snapshotScan','getJobType','_logsDb','randomUUID','lockHeld','emb','~queue_jobs','_envWide','durability','call','inNativeCall','dropped','queue','events','module','\x22\x20tokens\x20must\x20be\x20>=\x201','setLastClock','getResolvedOptions','pumping','__ttlByKey','setCursor','setFlushNotify','BAD_PARAM','vector-search','registerReducer','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','getTypeCount','toLowerCase','$exists','_openEnvLazy','setNative','_info','MCP_ERROR','_create','gen','bigint','_getFast','10PKdzha','TXN_ENV_MISMATCH','\x20which\x20does\x20not\x20exist','_bootLog','readField','patch','__lock','_compactLock','filter','\x22)\x20before\x20open()','reconcileDesired','$ref','reset','floor','getValues','listIndexes','txn:start','regObject','hasUniqueViolations','reconcilePeer','deleted','$ne','$where','_nextExpiry','driver','Environment\x20\x22','getTemplate','docs','__esModule','delta_limit','dropAll','completeJob','options','_validateOidcAccessToken','process(filter)','ALL_EVENTS','fromCharCode','scopedName','INVALID_OPTIONS','repairBlobRefs','encodeInto','_wrap','creating','BAD_HOST','system:env-sync','job\x20type\x20must\x20be\x20object','registerEnv','map','Symbol.asyncIterator','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','setLogSink','importBlobs','ttl:expired','_viewState','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment',',\x20got\x20','HIGH_SENTINEL','createdBy','mapSize','toBufferKey','engines','byteLength','servers','_onItem','functions','message','consumeLoginState','INACTIVE','handle','getLegacyCursor','_durableEngineDoc','queue:log','reducer','killWorker','applyChange','asArray','properties','(?:','refTrackingDbs','view','isRunning','dropSchema','okdb.noFast','21342541JOyzui','[log-sink]\x20','_envIndexDb','job_type.payload_schema.definition\x20must\x20be\x20object','stopped','removeLink','resumeAllAfterDrain','dupSort','hasBody','Embedder\x20factory\x20must\x20be\x20a\x20function','size','_nodePrivateKey','write\x20batch:\x20missing\x20result','instanceTimerArmed','INVALID_TYPE_NAME','describeAllTypesDetailed','disableAll','setPeerState','_defaultEnv','HTTP_CLUSTER_REMOVED','_makeIterator','storeEnvName','Engine\x20driver\x20already\x20registered:\x20\x22','durableEmbedderInfo','job.priority\x20must\x20be\x20int',')\x0a\x09\x09}\x0a\x09\x09','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','_feed','embedBatch','when','getCount','unresolveField','20CoZzCp','createSearch','node:crypto','addBucket','_unknownOptionsWarned','_changefeed','registerChunkStrategy','_handlerName','SYSTEM_POKE','timerArmed','INDEXER_DOC_QUEUED','listViolations','~ttl:expiry','write','areIndexesReady','system:type_drop','makeOkdb','describeChunk','getStatus','createAndStartEngine','embedder','opts','view:progress','views','load','__syncOverride','inspect','run','onDone','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','kickOwnedBy','\x27\x20is\x20not\x20a\x20function','label','body','\x0a\x09\x09let\x20','cleanup','duplicate\x20bucket:\x20','_store','draining','importFromStream','ensureDesired','node:cluster','processorsStatus','msgpackr','autoCompactTimerArmed','stopWorkerAbort','async','_buf','$regex','INVALID_STATE','typesDb','OKDBUniqueConstraintError','buffer','drainJobType','Database\x20not\x20started','ref:violation_resolved','payload_schema','timeMachine','getStats','now','lookupByTokenHash','setTTL','created','readerCheckIntervalMs','authenticateRequest','_isOpenForIp','types','_allEnvsWithFiles','signal','isArray','_tx','ITEM_REMOVE','_ensureDbs','callPacked','_ttlState','vecRemove','der','durableMarkDelete','algorithm\x20is\x20gone','OKDBAlreadyExistsError','STARTED','limitOf','nextTick','getMany','near','_buckets','quantum','streamByHash','exportToStream','empty\x20array','spec','storeGetConfig','_quantum','46744oDgosN','debounceTimer','_detachLog','okdb._openEnvLazy:\x20env\x20\x22','HTTP\x20','_workers','pop','getRecord','durableDocs','Type\x20\x27','_meta','5367NRzZvP','max_tries','__logsDb','root','registerDriver','itemsDb','hasEmbedderFactory','_asArray','INDEX_PROGRESS','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','callStatic','stopView','getIndex','node:http','remove','_getRaw','_statusEnv','callBatch','flushPoll','process','getDefinition','PLUGIN_NAME_CONFLICT','maxExtra','toISOString','tryClaimTokens','attachOKDB','enforced','upsertLink','_attached','envName','immediate','processor:progress','version','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','_log','createSession','algorithm\x20has\x20no\x20method\x20','~log_entry',';return\x20{','_plugins','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','envsWithFiles','DEFAULT_EVENTS','_db','env:opened','OKDBForeignKeyError','_advanceHlcOnRecv','@harperdb/extended-iterable:skip','setModeApplied','getClock','Error','select','pauseJobType','bus:proc','actions','byLabel','getByPrefix','job.status_message\x20must\x20be\x20string|null','stats','\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','closeEnvLocally','authOpen','log','prototype','upload','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','concat','captureStackTrace','INDEXER','embedderNew','INVALID_PRIMARY_KEY','hasType','Index\x20\x27','_timerHandle','continueOnRecoverableError','storeEnv','nativeBinaryPath','viewDb','_localViewApi','_inlineClosureWarned','setPosition(p)\x20{\x20position\x20=\x20p\x20},','count','uploadTxn','exportJSON','enqueueClaim','getMeta','forgetDb','createWorker','ENGINE_DRIVER_MISSING_START','SKIP','features','build','registerQuantum','finish','prefix','setBridge','queue:retry','forceResync','startClaimed','13015557AKmRUR','_tids','ceil','vectorStoreStats','REBUILD_IN_PROGRESS','_typeKeys','TXN_INVALID_OP','_undoHooks','unref','isBun','getRange','FOREIGN_KEY_VIOLATION','PLUGIN_DEPENDENCY_MISSING','~ref_violations','cancelJob','_teardownNative','getUniqueViolations','1827NMcEGO','findOwner','use\x20engines.registerDriver()','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','INDEX_NOT_REGISTERED','prepareTxnEnqueue','removeEnvironment','plugins','ITEM_CREATE','once','UNIQUE_CONSTRAINT','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','idempotency_key','callRows','FIELD_RESOLVER_PENDING','getJobLogs','sort','maxBodyBytes','getPeerAcks','FOREIGN_KEY_DELETE_RESTRICTED','removeResolver','resolveModelDims','_scheduleFlush','_okdbAdminAttached','inputSchema','onWindow','defineProperty','_push','Missing\x20plugin:\x20','lookupByName','registerBucketProjection','iterator','ExtendedIterable','isCoordinator','searchWithScores','_handlePoke','_getNodeRecord','diag','DONE','processor:retry','okdb-node:\x20unknown\x20callback\x20id\x20','compaction','usedBy','reg','_release','_resolveFilter','auth','OKDBInvalidValueError','system:drain','read','engine\x20api\x20has\x20no\x20method\x20\x27','materializer','TXN_START','isBootstrap','getPeerState','_wb','SYSTEM_CLOCK_CHANGE','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','true','hlc','isOrchestrator','queue:clear-done','clearFailed','setAddress','_ensurePeerState','_timerObjs','_startAdmission',')\x20+\x20readString(source)}','_fail','bus','env:removed','gateQuanta','~processes','_build','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','equal','flush','Unknown\x20OKDB\x20transaction\x20error','transactionSync','_tokenSecret','_settled','server','__sync:peer_state','FTS_FLUSH_TIMEOUT','SCHEMA_COLLECTION_INVALID','parseBearer','issueToken','feature','vector-search\x20engine\x20not\x20running:\x20\x22','error','error_stack','requires','queue:failed','getBlobStatus','_blobPath','pin','setAutoCompact','errors','reduce','_settle','free','license:invalid','inline','Cannot\x20delete\x20','use','setClaimGated','assertCreateAllowed','onUndo','system:proc','hasApi','RangeError','storeGetTotalHeadCount','createHash','$pending','snapshot','__sync:acks','removeJobTypeSchema','searchDocs','_tools','processor:resumed','formerOrigins','getInt32','shutdownTimeout','preview','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','mapError','handler','engineUninstall','_uid','QUERY_OPERATOR_FORBIDDEN','\x27,\x20cannot\x20map\x20to\x20\x27','$mod','\x20=\x20source[position++]\x0a\x09\x09if\x20(','record','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','config','isSetupMode','getChanges','_root','_write','_writerWatchdogInterval','chunks','busState','~fts:','~sub','embeddings:strategy:registered','INDEX_HAS_CONSUMERS','listBuckets','3.0.0','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','files','ensurePeerState','resolvedFields','tags','doc','job.claim_expires\x20must\x20be\x20number|null','\x27\x20doesn\x27t\x20exist','updateBucket','reidentify','writerStatus','hasChangelog','MAX_SAFE_INTEGER','LICENSE_FEATURE_DISABLED','bucket\x20id\x20required','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','tick','TXN_INVALID_OPS','set','removeTxn','isHeld','setMaxListeners','attachFeed','inflight','symbol','time-machine:','dropping','array','cursor','node:fs','\x27\x20export\x20\x27','listTypes','killAll','refreshThresholdMs','processor:\x20quantum.module\x20must\x20be\x20a\x20string','_commitSessionMutation','registerType','envPath','~queue_payloads','getPosition()\x20{\x20return\x20position\x20},','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','toMs','entries','listModels','bind','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','delete','~log','_callMacro','iterate','job','lastError','statusOpen','unreg','resume','_typesDb','fromEntries','schema:drop','clearDone','_read','reason','\x20must\x20be\x20number','updated','online','_lazyPinned','OKDBTypeAlreadyRegisteredError','_hlc','kick','bucket\x20must\x20be\x20object','warn','params','claimed','calculateDelta','stack','asyncIterator','exportEnvsToStream','buckets\x20must\x20be\x20array\x20or\x20string','createWriteStream','autoCompact','T_SESSION','_env','byteOffset','DOC_STATUS_CHANGE','TXN_CLOSED','_handles','resolveField:\x20type\x20required','MAXIMUM_KEY','isWorker','okdb-node:\x20unknown\x20bridge\x20op\x20','role','\x27\x20already\x20registered','data','turns','update','bucket.capacity\x20must\x20be\x20int\x20>=\x200','guardSnapshotIterable','queue:rescheduled','item:update','authorization','registerIndexDeferred','indexOf','pause','drop','finished','docEntry','exists','charCodeAt','WriteBatch','ensure:\x20type\x20is\x20required','\x20does\x20not\x20exist','durableMarkFail','item:pending','note','pauseAllAndDrain','group','_windowCbs','addSSE','_txnIdAtSnapshot','bus:drain','markJobComplete','shift','quarantined','subscribe','failJob','ensureTokensType','references','_autoCompactTimer','retryFailed','cascade','field:resolver_registered','node:perf_hooks','_nm','unique','528UbNHGD','invalid\x20job_type.status:\x20','digest','~queue_logs','_hybridQuery','embeddings:indexer:doc:queued','enable','fts:reset','isWanted','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','getRunningEngine','_assertRangeOptions','evict','__ref_index','OKDBTypeNotRegisteredError','hasEnv','started','\x20(required\x20by\x20','job.finished\x20must\x20be\x20number|null','_OPTION_HINTS','listRoutes','getLoginConfig','holder','getRefViolation','unpack','_rawTxnBuf','_isFar','_clockToChangeDb','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.','gcOrphanedBlobs','getSchema','sessionId','afterTurn','\x20actions=','listNodes','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','durableEngineDoc','Buffer','_subscribed','peers','Blob\x20not\x20found:\x20','starting','null','pinned','_durableIndexerStats','_quantumGate','clearScan','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','embeddings','_callRows','_update','resolveData','hook','_onStop','http','next','\x27\x20at\x20','STOPPING','resetReadTxn','okdb.http.listen(port)\x20in\x20each\x20worker.','recordRun','streamClose','non-empty\x20string','socket','targetType','emit','lock','status_code','embeddings:doc:status_change','dims','import','setInt32','logChange','onDo','job.tag\x20must\x20be\x20string|null','listAlgorithms','INVALID_INDEX_KEY','\x20already\x20exists','open','OKDBIndexNotRegisteredError','$lt','flushTimeoutError','emitProc','_sweepOrphanLogs','keyFor','string','compact','Engine\x20driver\x20for\x20\x22','node:stream','startsWith','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','fromBufferKey','_key','cursorKey','startNewEnginesFromSync','encoder','number','register','runGc','clock','export','staticCall','readKey','_staticCall','list','releaseClaim','_assertOpen','TXN_INVALID_ACTION','reverse','normalizeOAuthAuthResult','resetting','_running','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','_subsV2Obj','resetIndexBegin','callRows:\x20unexpected\x20row\x20stride\x20','resetIndexFinish','debug','registerQuantum:\x20load\x20must\x20be\x20a\x20function','addRaw','processEverything()','fts:','createIndexer','isLoopbackIp','Embedder\x20factory\x20for\x20\x22','_emitProc','search','primaryOkdb','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','OKDBIndexAlreadyRegisteredError','fieldPath','a\x20Buffer\x20or\x20readable\x20stream','commit','kind','headers','getTTL','durableMarkDone','spawn','start','_call','processRest()','_desired','_path','MINIMUM_KEY','flushDebounce','boolean','_sub','pageSize','endsWith','_nodePublicKey','embed','pressure','_getPeerState','drain','__adminRelay','txnDone','updateJob','find','INDEX_ALREADY_REGISTERED','ttl','flushed','ctxHeartbeat','preparer\x20must\x20be\x20a\x20function','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','node:util','getJob','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','ensureTypeEnv','getMaxBodyBytes','storeGetDiffs','grouped','claim_id','drainDeadlineMs','clearTTL','registerAlgorithmFactory','toFixed','bus:poke','durableRebuild','inclusiveEnd','percentile','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','getEmbedderFactory','__stateDb','extend','unregisterTarget','index:drop','_formerOrigins','claim','getOidcDiscovery','_isWriter','_report','field\x20resolver\x20request\x20still\x20pending','_afterDurable','createEnvironment','isSnapshotComplete','listPeers','streamRead','fetchPeer','backup','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','invalid\x20job.status:\x20','_lookupByTokenHash','_remove','alg','(?:/(.*))?','isDeepStrictEqual'];_0x40a8=function(){return _0x41f7ea;};return _0x40a8();}function requireLib(){const _0x41c2ef=_0x30dd4b;if(hasRequiredLib)return lib[_0x41c2ef(0x296)];return hasRequiredLib=0x1,function(_0x2be9d2){const _0x3d9eaa=_0x41c2ef,_0x4cc51d=require$$0$6,{load:_0x552f96}=require$$1$1,_0x4f7235=requireBridge(),_0x5aa0b3=requireWritebatch(),{Pumper:_0x256527}=requirePump(),{OKDBEnv:_0x5c0887,HIGH_SENTINEL:_0x5ed884}=requireEnv(),{reclass:_0x4678d3,NotImplementedNative:_0x22e9cb,OKDBError:_0x1fe4d0}=requireErrors(),{notImplemented:_0x1bb4c0}=requireUnsupported(),{OKDBHttp:_0x16df13}=requireHttp(),{OKDBFts:_0x3cdc84}=requireFts(),{OKDBEmbeddings:_0x4a980f}=requireEmbeddings(),{OKDBAuth:_0x3f83e2}=requireAuth(),{OKDBSync:_0x4a09ea}=requireSync(),{OKDBMigrate:_0xfb1e19}=requireMigrate(),{OKDBFunctions:_0xb116f9}=requireFunctions(),{OKDBMcp:_0x1c6454}=requireMcp(),{OKDBEngines:_0x43b9a3,OKDBPipelines:_0x1c8890}=requireEngines(),{makeMeta:_0x246ea1,makeLicenses:_0x40a26a,makeLicenseChecker:_0x2ceac8,makeProcesses:_0x4e3393}=requireSys();let _0x30fee6=null;function _0x3d186f(_0x5f7fad){const _0x415f63=_0x5df8;if(!_0x30fee6){const {Unpackr:_0x46a293}=require$$18;_0x30fee6=new _0x46a293({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x30fee6[_0x415f63(0x63a)](_0x5f7fad);}let _0x5c7e10=null;function _0x1d206e(_0x44cddb,_0x421fe8){const _0xe9451=_0x5df8;if(!_0x5c7e10){const {Unpackr:_0x122c4c}=require$$18;_0x5c7e10=new _0x122c4c({'copyBuffers':!![]});}return _0x5c7e10[_0xe9451(0x63a)](_0x44cddb,_0x421fe8);}const {encodeKey:_0x52f3b9,KEY_BUF_SIZE:_0x10f611,NO_FAST:_0x50e8b5}=requireKeyenc(),_0x22d5b2=0x40*0x400,_0x4c524d=0x4*0x400*0x400;function _0x21c542(_0x3561a0,_0x15e04a){const _0x1aaaae=_0x5df8,_0x1b70c3=_0x3561a0[0x2],_0x2bcff0=_0x1b70c3?(_0x3561a0['length']-0x3)/Math['abs'](_0x1b70c3):0x0,_0x109752=new Array(_0x2bcff0);let _0x1d847d=0x3;if(_0x1b70c3===0x2){for(let _0x2ee916=0x0;_0x2ee916<_0x2bcff0;_0x2ee916++,_0x1d847d+=0x2)_0x109752[_0x2ee916]={'key':_0x3561a0[_0x1d847d],'value':_0x3561a0[_0x1d847d+0x1]};}else{if(_0x1b70c3===0x3){for(let _0x5a5171=0x0;_0x5a5171<_0x2bcff0;_0x5a5171++,_0x1d847d+=0x3)_0x109752[_0x5a5171]={'key':_0x3561a0[_0x1d847d],'value':_0x3561a0[_0x1d847d+0x1],'version':_0x3561a0[_0x1d847d+0x2]};}else{if(_0x1b70c3===-0x2){for(let _0x3d6de3=0x0;_0x3d6de3<_0x2bcff0;_0x3d6de3++,_0x1d847d+=0x2)_0x109752[_0x3d6de3]={'clock':_0x3561a0[_0x1d847d],..._0x3561a0[_0x1d847d+0x1]};}else{if(_0x1b70c3===0x4){for(let _0x9cd387=0x0;_0x9cd387<_0x2bcff0;_0x9cd387++,_0x1d847d+=0x4)_0x109752[_0x9cd387]={'key':_0x3561a0[_0x1d847d],'value':_0x3561a0[_0x1d847d+0x1],'version':_0x3561a0[_0x1d847d+0x2],'indexKey':_0x3561a0[_0x1d847d+0x3]};}else{if(_0x2bcff0)throw new Error(_0x1aaaae(0x695)+_0x1b70c3);}}}}return _0x15e04a?[_0x3561a0[0x0],_0x109752,_0x3561a0[0x1]]:_0x109752;}let _0x3e436a=null;function _0x134e1c(_0x2e51d0,_0xcfa1c8,_0x58c103){const _0x40e2e0=_0x5df8;if(!_0x3e436a)_0x3e436a=requireDist()[_0x40e2e0(0x688)];const _0x1c110a=new DataView(_0x2e51d0['buffer'],_0x2e51d0[_0x40e2e0(0x5ee)],_0xcfa1c8),_0x231310=_0x1c110a[_0x40e2e0(0x19b)](0x10,!![]),_0x1cd783=new Array(_0x231310);let _0x41dfca=0x14;for(let _0x5877da=0x0;_0x5877da<_0x231310;_0x5877da++){const _0x591152=_0x2e51d0[_0x41dfca]|_0x2e51d0[_0x41dfca+0x1]<<0x8;_0x41dfca+=0x2,_0x1cd783[_0x5877da]=_0x3e436a(_0x2e51d0,_0x41dfca,_0x41dfca+_0x591152),_0x41dfca+=_0x591152;}return _0x58c103?[_0x1c110a['getFloat64'](0x0,!![]),_0x1cd783,_0x1c110a[_0x40e2e0(0x7b1)](0x8,!![])]:_0x1cd783;}const _0x9da867=requireOkdbLogger(),_0x29aea5=requireOkdbPlugins(),{OKDB_STATE:_0x430db6,EVENTS:_0x17b570}=requireOkdbEnums(),_0x252c5d=requireStatics();let _0xa33d0f=null,_0x17015e=![],_0x4f668b=0x1;const _0x2e1676=new Map(),_0x3e5920=new Set(['FIELD_RESOLVER_PENDING',_0x3d9eaa(0x1d1)]),_0xb1fd1=_0x69fa74=>!!_0x69fa74&&_0x3e5920[_0x3d9eaa(0x37b)](_0x69fa74['code']),_0x3095f6=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x215284(){const _0x197cc3=_0x3d9eaa;!_0x17015e&&(_0xe405c1()[_0x197cc3(0x4f3)](_0x4f7235[_0x197cc3(0x7ea)]),_0x5aa0b3[_0x197cc3(0x238)](_0xe405c1()),_0x17015e=!![]);}function _0xe405c1(){if(!_0xa33d0f)_0xa33d0f=_0x552f96();return _0xa33d0f;}class _0x17bcf3 extends Map{constructor(_0x3f5b0c){const _0x5fcff3=_0x3d9eaa;super(),this[_0x5fcff3(0x4bf)]=_0x3f5b0c;}[_0x3d9eaa(0x72e)](){const _0x2bfb64=_0x3d9eaa,_0x379263=this[_0x2bfb64(0x4bf)];if(!_0x379263[_0x2bfb64(0x34c)])return;let _0x376b58;try{_0x376b58=_0x379263[_0x2bfb64(0x6ad)]('db',null,_0x2bfb64(0x311),[],![]);}catch{return;}for(const _0x1719b5 of _0x376b58)if(!super['has'](_0x1719b5)&&_0x379263[_0x2bfb64(0x6ad)]('db',null,_0x2bfb64(0x631),[_0x1719b5],![]))_0x379263['_ensureEnv'](_0x1719b5);}[_0x3d9eaa(0x759)](_0x3fcb30){const _0x2090b1=_0x3d9eaa,_0x49675e=super[_0x2090b1(0x759)](_0x3fcb30);if(_0x49675e!==undefined||typeof _0x3fcb30!==_0x2090b1(0x677))return _0x49675e;const _0x440be8=this['_db'];if(_0x3fcb30==='~processes')return _0x440be8[_0x2090b1(0x34c)]?_0x440be8[_0x2090b1(0x18e)]['_statusEnv']??undefined:undefined;if(_0x440be8['_isOpen']&&_0x440be8[_0x2090b1(0x6ad)]('db',null,_0x2090b1(0x631),[_0x3fcb30],![]))return _0x440be8[_0x2090b1(0x195)](_0x3fcb30);if(_0x440be8[_0x2090b1(0x34c)]&&typeof _0x3fcb30===_0x2090b1(0x677)&&!_0x3fcb30[_0x2090b1(0x67b)]('~')){_0x440be8[_0x2090b1(0x6ad)]('db',null,_0x2090b1(0x288),[],![]);if(_0x440be8[_0x2090b1(0x6ad)]('db',null,'hasEnv',[_0x3fcb30],![]))return _0x440be8['_ensureEnv'](_0x3fcb30);}return undefined;}[_0x3d9eaa(0x37b)](_0x5852ec){const _0x48a09c=_0x3d9eaa;return this[_0x48a09c(0x759)](_0x5852ec)!==undefined;}get[_0x3d9eaa(0x415)](){const _0x3438c7=_0x3d9eaa;return this[_0x3438c7(0x72e)](),super[_0x3438c7(0x415)];}[_0x3d9eaa(0x2e9)](){const _0x5ef49d=_0x3d9eaa;return this[_0x5ef49d(0x72e)](),super[_0x5ef49d(0x2e9)]();}[_0x3d9eaa(0x7d4)](){const _0x51de18=_0x3d9eaa;return this[_0x51de18(0x72e)](),super[_0x51de18(0x7d4)]();}[_0x3d9eaa(0x5c7)](){const _0x2cca41=_0x3d9eaa;return this[_0x2cca41(0x72e)](),super[_0x2cca41(0x5c7)]();}[_0x3d9eaa(0x131)](_0x59de0e,_0x5a26f2){const _0x20741d=_0x3d9eaa;return this[_0x20741d(0x72e)](),super[_0x20741d(0x131)](_0x59de0e,_0x5a26f2);}[Symbol[_0x3d9eaa(0x527)]](){const _0x256307=_0x3d9eaa;return this[_0x256307(0x72e)](),super[Symbol[_0x256307(0x527)]]();}}class _0x5102b3{constructor(_0x28db2c,_0x9e99af={}){const _0x2587fe=_0x3d9eaa,_0x55231c=_0xe405c1();this[_0x2587fe(0x72f)]=_0x28db2c,this['_uid']=_0x4f668b++,this[_0x2587fe(0x67e)]='db'+this[_0x2587fe(0x588)],this[_0x2587fe(0x3d8)]={..._0x252c5d[_0x2587fe(0x247)],..._0x9e99af,'auth':_0x9e99af[_0x2587fe(0x536)]?{..._0x9e99af[_0x2587fe(0x536)]}:undefined,'lmdb':{..._0x9e99af[_0x2587fe(0x771)]||{}}},this['events']=new _0x4cc51d(),this[_0x2587fe(0x3a0)][_0x2587fe(0x5b2)](0x0),this[_0x2587fe(0x648)]=new Set(),this['events']['on'](_0x2587fe(0x258),_0x3a561f=>this['_subscribeEvent'](_0x3a561f)),this[_0x2587fe(0x4d2)]=new _0x9da867(this),this[_0x2587fe(0x4d2)][_0x2587fe(0x77e)](),_0x4f7235['registerTarget'](this[_0x2587fe(0x67e)],{'_deliver':(_0xb49f03,_0x3965e9)=>this[_0x2587fe(0x1fb)](_0xb49f03,_0x3965e9),'_log':_0x1a40d2=>{const _0x4709b7=_0x2587fe;if(this[_0x4709b7(0x3bb)])this[_0x4709b7(0x3bb)]['push'](_0x1a40d2);const _0x2a8f2d=_0x1a40d2&&_0x1a40d2[_0x4709b7(0x31f)];if(_0x2a8f2d&&Object[_0x4709b7(0x4d3)][_0x4709b7(0x300)][_0x4709b7(0x39c)](this[_0x4709b7(0x4d2)],_0x2a8f2d)&&typeof this[_0x4709b7(0x4d2)][_0x2a8f2d]===_0x4709b7(0x1ea)){const _0x511561=_0x1a40d2[_0x4709b7(0x211)];return this[_0x4709b7(0x4d2)][_0x2a8f2d](_0x1a40d2[_0x4709b7(0x282)],{..._0x1a40d2['meta']||{},..._0x511561&&typeof _0x511561==='object'?_0x511561:{}});}return this[_0x4709b7(0x4d2)][_0x4709b7(0x1e5)](_0x1a40d2);}}),_0x215284();try{const _0x5d1cb5={};if(typeof'true'===_0x2587fe(0x184)||_0x2587fe(0x542)!==_0x2587fe(0x542));this[_0x2587fe(0x175)]=new _0x55231c['Native'](_0x28db2c,{..._0x9e99af,'_clusterWorker':require(_0x2587fe(0x454))[_0x2587fe(0x5f4)],..._0x5d1cb5},this[_0x2587fe(0x67e)]);}catch(_0x48a33b){_0x4f7235['unregisterTarget'](this[_0x2587fe(0x67e)]);throw _0x4678d3(_0x48a33b);}this[_0x2587fe(0x70c)]=_0x430db6['CREATED'],this[_0x2587fe(0x34c)]=![],this[_0x2587fe(0x2e5)]=new _0x17bcf3(this),this[_0x2587fe(0x2fd)]=new _0x256527({'pump':()=>this['_native'][_0x2587fe(0x7ab)]()}),this[_0x2587fe(0x53f)]=new _0x5aa0b3[(_0x2587fe(0x608))](this),this[_0x2587fe(0x2fd)][_0x2587fe(0x642)]=()=>_0x4f7235[_0x2587fe(0x790)](),_0x4f7235[_0x2587fe(0x742)](()=>this['_pumper'][_0x2587fe(0x7e0)](),this),_0x2e1676[_0x2587fe(0x5af)](this[_0x2587fe(0x588)],this),this[_0x2587fe(0x275)]={},_0x4f7235['setCurrentDb'](this),this[_0x2587fe(0x248)]=new _0x3cdc84(this),this[_0x2587fe(0x652)]=new _0x4a980f(this),this['engines']=new _0x43b9a3(this,null,null),this[_0x2587fe(0x74a)]=new _0x1c8890(this,null),this[_0x2587fe(0x22f)]=_0x246ea1(this),this[_0x2587fe(0x107)]=_0x40a26a(this),this['_license']=_0x2ceac8(this),this[_0x2587fe(0x18e)]=_0x4e3393(this),this[_0x2587fe(0x10e)]=_0x31675c(this),this[_0x2587fe(0x50f)]=new _0x29aea5(this),this[_0x2587fe(0x658)]=new _0x16df13(this),this['sync']=new _0x4a09ea(this),this[_0x2587fe(0x536)]=new _0x3f83e2(this),this[_0x2587fe(0x3f8)]=new _0xb116f9(this,null),this['mcp']=new _0x1c6454(this),this[_0x2587fe(0x70a)]=_0x9e99af&&_0x9e99af[_0x2587fe(0x70a)]===![]?null:_0x1bb4c0(_0x2587fe(0x70a)),this[_0x2587fe(0x22c)]=_0x1bb4c0('api'),this[_0x2587fe(0x784)]=new _0xfb1e19(this);}[_0x3d9eaa(0x6ad)](_0x5211bb,_0x2e0288,_0x9fa5f,_0x1cc08a,_0x17845f=!![]){const _0xd9a21a=_0x3d9eaa;if(_0x17845f&&this[_0xd9a21a(0x53f)]&&this[_0xd9a21a(0x53f)]['queue']['length'])this[_0xd9a21a(0x53f)][_0xd9a21a(0x6a6)]();try{return this[_0xd9a21a(0x175)][_0xd9a21a(0x39c)](_0x5211bb,_0x2e0288,_0x9fa5f,_0x1cc08a);}catch(_0x2cba6a){throw _0x4678d3(_0x2cba6a);}finally{if(_0x17845f)this[_0xd9a21a(0x2fd)][_0xd9a21a(0x7e0)]();}}[_0x3d9eaa(0x28e)](_0x3e236f,_0x527b99,_0x1965ff,_0x5d1c9d){const _0x338671=_0x3d9eaa;let _0x3a6e8d;try{_0x3a6e8d=this['_native'][_0x338671(0x474)](_0x3e236f,_0x527b99,_0x1965ff,_0x5d1c9d);}catch(_0x1b27c3){throw _0x4678d3(_0x1b27c3);}return _0x3a6e8d instanceof Uint8Array?_0x3d186f(_0x3a6e8d):_0x3a6e8d[0x0];}[_0x3d9eaa(0x381)](_0x28cb53){const _0x1bee2e=_0x3d9eaa;let _0x5dcabd=this[_0x1bee2e(0x74d)];if(_0x5dcabd&&_0x28cb53<=_0x5dcabd['length'])return _0x5dcabd;let _0x5dbfeb=_0x5dcabd?_0x5dcabd['length']:_0x22d5b2;while(_0x5dbfeb<_0x28cb53)_0x5dbfeb*=0x2;if(_0x5dbfeb>_0x4c524d)return _0x5dcabd;return _0x5dcabd=this[_0x1bee2e(0x74d)]=Buffer['allocUnsafeSlow'](_0x5dbfeb),this['_native'][_0x1bee2e(0x145)](_0x5dcabd),_0x5dcabd;}[_0x3d9eaa(0x4a2)](_0x5c399c,_0xe0072b,_0x37659a){const _0x9c33b8=_0x3d9eaa;if(!this[_0x9c33b8(0x74d)])this['_readBuf'](0x0);const _0xe81b1e=this[_0x9c33b8(0x175)][_0x9c33b8(0x1c5)](_0x5c399c,_0xe0072b,_0x37659a);if(typeof _0xe81b1e===_0x9c33b8(0x682))return _0x1d206e(this['_rbuf'],_0xe81b1e);if(_0xe81b1e===undefined||_0xe81b1e===null)return _0xe81b1e;return this[_0x9c33b8(0x381)](_0xe81b1e[_0x9c33b8(0x306)]),_0x1d206e(_0xe81b1e);}[_0x3d9eaa(0x3b7)](_0x4b632b,_0x3e6734,_0x409ddf){const _0x2fc489=_0x3d9eaa;let _0x1b3f07=this[_0x2fc489(0x7db)];if(!_0x1b3f07){_0x1b3f07=this[_0x2fc489(0x7db)]=Buffer[_0x2fc489(0x2c8)](_0x10f611),this['_native'][_0x2fc489(0x2e1)](_0x1b3f07),this[_0x2fc489(0x4f8)]=new Map();if(!this[_0x2fc489(0x74d)])this[_0x2fc489(0x381)](0x0);}const _0xcae802=_0x52f3b9(_0x409ddf,_0x1b3f07);if(_0xcae802<0x0)return _0x50e8b5;let _0x1f9c4b=this[_0x2fc489(0x4f8)][_0x2fc489(0x759)](_0x4b632b);if(_0x1f9c4b===undefined)this[_0x2fc489(0x4f8)]['set'](_0x4b632b,_0x1f9c4b=new Map());let _0x510134=_0x1f9c4b[_0x2fc489(0x759)](_0x3e6734);if(_0x510134===undefined)_0x1f9c4b[_0x2fc489(0x5af)](_0x3e6734,_0x510134=this[_0x2fc489(0x175)]['typeId'](_0x4b632b,_0x3e6734));if(_0x510134<0x0)return _0x50e8b5;const _0x2fcfbb=this[_0x2fc489(0x175)]['getFast'](_0x510134,_0xcae802);if(typeof _0x2fcfbb===_0x2fc489(0x682))return _0x1d206e(this[_0x2fc489(0x74d)],_0x2fcfbb);if(_0x2fcfbb===undefined||_0x2fcfbb===null)return _0x2fcfbb;return this[_0x2fc489(0x381)](_0x2fcfbb[_0x2fc489(0x306)]),_0x1d206e(_0x2fcfbb);}[_0x3d9eaa(0x653)](_0x3ca4df,_0x5deea5,_0x4cc458){const _0x54f66b=_0x3d9eaa;if(!this[_0x54f66b(0x74d)])this['_readBuf'](0x0);let _0x59a97f;try{_0x59a97f=this[_0x54f66b(0x175)][_0x54f66b(0x515)](_0x3ca4df,_0x5deea5,_0x4cc458);}catch(_0x266025){throw _0x4678d3(_0x266025);}const _0x791664=_0x5deea5==='pinned',_0x3c9dcc=_0x791664?_0x4cc458[0x1]:_0x5deea5;let _0x312c2d=this[_0x54f66b(0x74d)],_0x483d38=_0x59a97f;if(_0x59a97f instanceof Uint8Array)this[_0x54f66b(0x381)](_0x59a97f[_0x54f66b(0x306)]),_0x312c2d=_0x59a97f,_0x483d38=_0x59a97f[_0x54f66b(0x306)];else{if(typeof _0x59a97f!==_0x54f66b(0x682))return _0x59a97f[0x0];}if(_0x3c9dcc==='getKeys')return _0x134e1c(_0x312c2d,_0x483d38,_0x791664);if(_0x3c9dcc===_0x54f66b(0x47e))return _0x1d206e(_0x312c2d,_0x483d38);return _0x21c542(_0x1d206e(_0x312c2d,_0x483d38),_0x791664);}['_callMacro'](_0x2acafd,_0x10bcc6,_0x2e4b1d,_0x18ecd5,_0x270207=!![],_0xee34e8=!![]){const _0x2b2b0f=_0x3d9eaa,_0x21e8e4=()=>this[_0x2b2b0f(0x11a)](()=>this[_0x2b2b0f(0x6ad)](_0x2acafd,_0x10bcc6,_0x2e4b1d,_0x18ecd5,_0x270207));if(!_0xee34e8)return _0x21e8e4();return this[_0x2b2b0f(0x1dc)](_0x21e8e4);}[_0x3d9eaa(0x1dc)](_0x19b9a1){const _0x2a25d6=_0x3d9eaa;return _0x19b9a1()[_0x2a25d6(0x22b)](async _0x11f7e8=>{const _0x74c0b2=_0x2a25d6;if(!_0xb1fd1(_0x11f7e8))throw _0x11f7e8;const _0x4ccac5=Date[_0x74c0b2(0x466)]()+_0x3095f6;let _0x456567=0x1;while(_0xb1fd1(_0x11f7e8)&&Date[_0x74c0b2(0x466)]()<_0x4ccac5){await new Promise(_0x42c70f=>setTimeout(_0x42c70f,_0x456567)),_0x456567=Math[_0x74c0b2(0x6fa)](_0x456567*0x2,0x14);try{return await _0x19b9a1();}catch(_0x173ced){_0x11f7e8=_0x173ced;}}throw _0x11f7e8;});}[_0x3d9eaa(0x755)](_0x749b67){const _0x2aee70=_0x3d9eaa;if(_0x4f7235[_0x2aee70(0x39d)]())return Promise[_0x2aee70(0x313)](_0x749b67);return new Promise(_0x5c3cdf=>setImmediate(()=>_0x5c3cdf(_0x749b67)));}[_0x3d9eaa(0x2f8)](_0x1cf590){const _0x45d069=_0x3d9eaa;if(_0x4f7235[_0x45d069(0x39d)]())return Promise[_0x45d069(0x313)](_0x1cf590);return this[_0x45d069(0x6e2)]()[_0x45d069(0x1c4)](()=>_0x1cf590);}[_0x3d9eaa(0x6e2)](){return new Promise(_0x3e528a=>setImmediate(()=>{const _0xab8d19=_0x5df8;let _0x3981b7;try{_0x3981b7=this[_0xab8d19(0x175)][_0xab8d19(0x799)]();}catch{return _0x3e528a();}_0x5aa0b3[_0xab8d19(0x163)](_0x3981b7,_0x3e528a);}));}[_0x3d9eaa(0x11a)](_0x2b2e56){return new Promise((_0x5512d3,_0x256a14)=>setImmediate(()=>{try{_0x5512d3(_0x2b2e56());}catch(_0x566e2f){_0x256a14(_0x566e2f);}}));}[_0x3d9eaa(0x689)](_0x3e23e9,_0x94151f,_0x30b47c){return _0x34bd86(_0x3e23e9,_0x94151f,_0x30b47c);}[_0x3d9eaa(0x20e)](_0x2314fd){const _0xd19e84=_0x3d9eaa;if(typeof _0x2314fd!=='string'||this[_0xd19e84(0x648)][_0xd19e84(0x37b)](_0x2314fd)||_0x2314fd===_0xd19e84(0x258)||_0x2314fd===_0xd19e84(0x297))return;this['_subscribed'][_0xd19e84(0x241)](_0x2314fd);try{this[_0xd19e84(0x175)][_0xd19e84(0x39c)](_0xd19e84(0x3a0),null,_0xd19e84(0x617),[this[_0xd19e84(0x67e)],_0x2314fd]);}catch{}}[_0x3d9eaa(0x1fb)](_0x45e3f4,_0x13a3f9){const _0x16bded=_0x3d9eaa;this[_0x16bded(0x3a0)][_0x16bded(0x663)](_0x45e3f4,_0x13a3f9);}async[_0x3d9eaa(0x670)](){const _0x3dfd40=_0x3d9eaa;if(this[_0x3dfd40(0x70c)]===_0x430db6[_0x3dfd40(0x47b)])return;if(this['state']!==_0x430db6[_0x3dfd40(0x37d)])throw new _0x1fe4d0(_0x3dfd40(0x367),_0x3dfd40(0x45c),{'state':this['state']});this[_0x3dfd40(0x70c)]=_0x430db6[_0x3dfd40(0x1a0)],this['_bootLog']=[];try{try{await this[_0x3dfd40(0x11a)](()=>this[_0x3dfd40(0x175)][_0x3dfd40(0x670)]());}catch(_0x3822f4){throw _0x4678d3(_0x3822f4);}}catch(_0x29485f){this[_0x3dfd40(0x70c)]=_0x430db6['STOPPED'],this[_0x3dfd40(0x3bb)]=null,this[_0x3dfd40(0x506)]();throw _0x29485f;}this[_0x3dfd40(0x34c)]=!![],this[_0x3dfd40(0x70c)]=_0x430db6[_0x3dfd40(0x47b)];try{this[_0x3dfd40(0x6ad)]('db',null,'setHostPlugins',[this[_0x3dfd40(0x50f)][_0x3dfd40(0x4bb)][_0x3dfd40(0x3e7)](_0x5edcbb=>_0x5edcbb[_0x3dfd40(0x3a1)]?.[_0x3dfd40(0x331)])['filter'](Boolean)],![]),await this[_0x3dfd40(0x50f)][_0x3dfd40(0x6ac)]();}catch(_0x4e1a8){this['state']=_0x430db6[_0x3dfd40(0x65b)];try{this['_native'][_0x3dfd40(0x7de)]();}catch{}this[_0x3dfd40(0x70c)]=_0x430db6['STOPPED'],this[_0x3dfd40(0x34c)]=![],this['_teardownNative']();throw _0x4e1a8;}for(const _0x486047 of this[_0x3dfd40(0x6ad)]('db',null,'envNames',[],![]))if(!_0x486047[_0x3dfd40(0x67b)]('~'))this[_0x3dfd40(0x195)](_0x486047);try{if(this['_call']('db',null,_0x3dfd40(0x631),[_0x3dfd40(0x5cc)],![])){this['_logEnv']=this[_0x3dfd40(0x195)]('~log');const _0x3372d3=new Set(this[_0x3dfd40(0x4d2)]['_sinks']);this[_0x3dfd40(0x2c5)]=this[_0x3dfd40(0x4d2)]['attachOKDB'](this[_0x3dfd40(0x2be)],this['id']);const _0x4d23ee=[...this[_0x3dfd40(0x4d2)][_0x3dfd40(0xf5)]][_0x3dfd40(0x6bf)](_0x396c88=>!_0x3372d3[_0x3dfd40(0x37b)](_0x396c88)),_0x9bc69=this['_call']('db',null,_0x3dfd40(0x254),[],![]);for(const _0x54a1e6 of(this[_0x3dfd40(0x3bb)]??[])[_0x3dfd40(0x101)](_0x9bc69))_0x4d23ee?.(_0x54a1e6);}}catch{}this[_0x3dfd40(0x3bb)]=null,this[_0x3dfd40(0x175)]['setWake'](()=>this['_pumper'][_0x3dfd40(0x7e0)]()),this[_0x3dfd40(0x2fd)][_0x3dfd40(0x6ac)]();}async['bootRuntimeDeclarations'](){const _0x408fcb=_0x3d9eaa;return this[_0x408fcb(0x5cd)]('db',null,'bootRuntime',[]);}async[_0x3d9eaa(0x7de)](){const _0x17b911=_0x3d9eaa;if(this[_0x17b911(0x70c)]===_0x430db6['STOPPED'])return;if(this[_0x17b911(0x70c)]!==_0x430db6[_0x17b911(0x47b)])throw new _0x1fe4d0(_0x17b911(0x461),_0x17b911(0x45c),{'state':this[_0x17b911(0x70c)]});this[_0x17b911(0x70c)]=_0x430db6[_0x17b911(0x65b)],this[_0x17b911(0x34c)]=![];let _0x166f10=null;if(this[_0x17b911(0x658)][_0x17b911(0x3f6)][_0x17b911(0x306)])try{await this[_0x17b911(0x658)][_0x17b911(0x7de)]();}catch(_0x3c8032){_0x166f10=_0x3c8032;}if(this[_0x17b911(0x6bc)]){try{this[_0x17b911(0x6bc)][_0x17b911(0x739)](),this[_0x17b911(0x6bc)][_0x17b911(0x385)]();}catch{}this[_0x17b911(0x6bc)]=null;}try{this['_changefeed']?.[_0x17b911(0x7af)]?.();}catch{}try{await this[_0x17b911(0x50f)][_0x17b911(0x7af)]();}catch(_0x47477d){_0x166f10=_0x47477d;}for(const _0x589e4b of[...Map[_0x17b911(0x4d3)]['values'][_0x17b911(0x39c)](this[_0x17b911(0x2e5)])]){try{await _0x589e4b[_0x17b911(0x266)][_0x17b911(0x2d9)]();}catch{}try{await _0x589e4b[_0x17b911(0x3f4)][_0x17b911(0x7af)]();}catch{}}for(const _0x5dae85 of[()=>this[_0x17b911(0x379)][_0x17b911(0x7af)](),()=>this[_0x17b911(0x652)][_0x17b911(0x7af)](),()=>this['fts']&&this[_0x17b911(0x248)][_0x17b911(0x7af)]?.()]){try{await _0x5dae85();}catch{}}const _0x1dcaa5=this[_0x17b911(0x3d8)]['shutdownTimeout']??0x7530,_0x44e737=[];for(const _0xd139ea of[...Map[_0x17b911(0x4d3)][_0x17b911(0x7d4)]['call'](this[_0x17b911(0x2e5)])]){if(_0xd139ea[_0x17b911(0x39f)]?.['_workers']?.[_0x17b911(0x415)]>0x0)_0x44e737[_0x17b911(0x150)](_0xd139ea['queue'][_0x17b911(0x2d9)](_0x1dcaa5));}if(_0x44e737['length']>0x0)await Promise[_0x17b911(0x335)](_0x44e737);try{this[_0x17b911(0x2c5)]?.();}catch{}this[_0x17b911(0x2c5)]=null;try{await this[_0x17b911(0x53f)][_0x17b911(0x6bb)]();}catch{}this[_0x17b911(0x2fd)]['stop']();try{await this['_macro'](()=>this[_0x17b911(0x175)][_0x17b911(0x7de)]());}catch(_0x2519cc){_0x166f10=_0x166f10||_0x4678d3(_0x2519cc);}this[_0x17b911(0x70c)]=_0x430db6['STOPPED'],this[_0x17b911(0x506)](),Map['prototype'][_0x17b911(0x30f)][_0x17b911(0x39c)](this[_0x17b911(0x2e5)]);if(_0x166f10)throw _0x166f10;}[_0x3d9eaa(0x506)](){const _0x5d92a2=_0x3d9eaa;this[_0x5d92a2(0x2fd)][_0x5d92a2(0x7af)]();try{this['_native'][_0x5d92a2(0x392)](null);}catch{}try{this[_0x5d92a2(0x175)][_0x5d92a2(0x7dc)]();}catch{}this[_0x5d92a2(0x74d)]=null,this[_0x5d92a2(0x7db)]=null,this[_0x5d92a2(0x4f8)]=null,_0x4f7235[_0x5d92a2(0x6da)](this['_key']),_0x4f7235[_0x5d92a2(0x4ea)](this),_0x2e1676[_0x5d92a2(0x5cb)](this['_uid']);if(_0x4f7235[_0x5d92a2(0x449)](this)){const _0x364be5=[..._0x2e1676[_0x5d92a2(0x7d4)]()][_0x5d92a2(0x48e)]();if(_0x364be5)_0x4f7235[_0x5d92a2(0x742)](()=>_0x364be5[_0x5d92a2(0x2fd)][_0x5d92a2(0x7e0)](),_0x364be5);else _0x4f7235[_0x5d92a2(0x742)](()=>{},null);}}get['id'](){const _0x4b15ed=_0x3d9eaa;return this[_0x4b15ed(0x6ad)]('db',null,'id',[],![]);}['_advanceHlcOnRecv'](_0x4498ac){const _0x555391=_0x3d9eaa;return this[_0x555391(0x100)](_0x555391(0x1e3))['_advanceHlcOnRecv'](_0x4498ac);}get[_0x3d9eaa(0x557)](){const _0x3c148e=_0x3d9eaa;return this[_0x3c148e(0x1ca)][_0x3c148e(0x759)]('__tokenSecret');}get[_0x3d9eaa(0x416)](){return this['sync']['_nodePrivateKey'];}get[_0x3d9eaa(0x6b7)](){const _0x341885=_0x3d9eaa;return this[_0x341885(0x379)]['_nodePublicKey'];}get[_0x3d9eaa(0x706)](){const _0x2d646c=_0x3d9eaa;if(!this['_isOpen']||!this[_0x2d646c(0x6ad)]('db',null,'subsBuilt',[],![]))return undefined;if(!this[_0x2d646c(0x693)]){const _0x1be0dd=requireOkdbSubscriptionsStore(),_0x1d6147=new _0x1be0dd(this,this['options']&&this['options'][_0x2d646c(0x17d)]);_0x1d6147[_0x2d646c(0x6b4)]=this[_0x2d646c(0x100)](_0x2d646c(0x598));const {compileFilter:_0x450f69}=requireOkdbQueryFilter(),_0x67ab7=(_0x2f6eb0,_0x1826c3)=>{if(_0x2f6eb0==null)return![];try{return _0x450f69(_0x2f6eb0)(_0x1826c3);}catch{return![];}};this[_0x2d646c(0x693)]={'store':_0x1d6147,'router':{'_matches':_0x67ab7}};}return this['_subsV2Obj'];}get[_0x3d9eaa(0x249)](){return this['role'];}get[_0x3d9eaa(0x772)](){const _0x18077a=_0x3d9eaa;return this['_call']('db',null,_0x18077a(0x772),[],![]);}get['role'](){const _0x4c3256=_0x3d9eaa;return{...this[_0x4c3256(0x6ad)]('db',null,_0x4c3256(0x5f6),[],![])};}get[_0x3d9eaa(0x4b3)](){const _0x5d5001=_0x3d9eaa;return require$$29[_0x5d5001(0x4b3)];}get['quarantinedEnvs'](){const _0x25c82e=_0x3d9eaa;return this['_call']('db',null,_0x25c82e(0x616),[],![]);}get[_0x3d9eaa(0x2d0)](){const _0x35dd3e=_0x3d9eaa;return this['_call']('db',null,_0x35dd3e(0x2d0),[],![]);}['getResolvedOptions'](){const _0x90437c=_0x3d9eaa;return this[_0x90437c(0x6ad)]('db',null,'resolvedOptions',[],![]);}[_0x3d9eaa(0x52d)](){const _0x317a99=_0x3d9eaa;return this[_0x317a99(0x6ad)]('db',null,_0x317a99(0x52d),[],![]);}async[_0x3d9eaa(0x369)](_0x209593){const _0x4637ea=_0x3d9eaa;this[_0x4637ea(0x68c)](),this[_0x4637ea(0x6ad)]('db',null,_0x4637ea(0x369),[_0x209593],![]);}[_0x3d9eaa(0x6b9)](){const _0x51935b=_0x3d9eaa,_0x35ad8e=Date['now']();if(this['_pressure']&&_0x35ad8e-this[_0x51935b(0x78b)]['at']<0xfa)return this[_0x51935b(0x78b)]['value'];const _0xd1b98e=this[_0x51935b(0x6ad)]('db',null,_0x51935b(0x6b9),[],![]);return this[_0x51935b(0x78b)]={'at':_0x35ad8e,'value':_0xd1b98e},_0xd1b98e;}[_0x3d9eaa(0x68c)](){const _0x5f5ae7=_0x3d9eaa;if(!this['_isOpen'])throw new _0x1fe4d0('Database\x20not\x20started',_0x5f5ae7(0x45c),{'state':this[_0x5f5ae7(0x70c)]});}get[_0x3d9eaa(0x54d)](){const _0x26d42b=_0x3d9eaa;if(this[_0x26d42b(0x70c)]===_0x430db6[_0x26d42b(0x773)]||!this[_0x26d42b(0x34c)])return null;if(this[_0x26d42b(0x6ad)]('db',null,_0x26d42b(0x596),[],![])==null)return null;if(!this[_0x26d42b(0x79a)]){const _0xabd2ee=this;this[_0x26d42b(0x79a)]={get 'state'(){const _0x4ed3c4=_0x26d42b;return _0xabd2ee[_0x4ed3c4(0x6ad)]('db',null,'busState',[],![]);},get 'magic'(){const _0x5223c6=_0x26d42b;return Buffer[_0x5223c6(0x320)](_0x5223c6(0x71f)+_0xabd2ee['id']);},get 'isRunning'(){const _0x320ba2=_0x26d42b;return _0xabd2ee['_call']('db',null,'busState',[],![])===_0x320ba2(0x632);},'emit'(_0x2b480d,_0x3db2af=''){const _0x2143a3=_0x26d42b;_0xabd2ee[_0x2143a3(0x6ad)]('db',null,_0x2143a3(0x76b),[_0x2b480d,String(_0x3db2af)],![]);}};}return this['_busFacade'];}[_0x3d9eaa(0x69f)](_0xf546d1,_0xf9ca64){const _0x36f089=_0x3d9eaa;this[_0x36f089(0x54d)]?.['emit'](_0x36f089(0x4c9),JSON['stringify']({'kind':_0x36f089(0x220),'scope':_0xf546d1,'key':_0xf9ca64}));}get['locks'](){const _0x41c0ef=_0x3d9eaa;return this[_0x41c0ef(0x215)]||(this[_0x41c0ef(0x215)]=new(requireLock())[(_0x41c0ef(0x1e0))](this,_0x41c0ef(0x322),_0x41c0ef(0x764)));}get[_0x3d9eaa(0x1ca)](){const _0x29b8d2=_0x3d9eaa;return this[_0x29b8d2(0x2a4)]?this[_0x29b8d2(0x2a4)]['db']:undefined;}get[_0x3d9eaa(0xda)](){const _0x4958f5=_0x3d9eaa,_0x46dce9=this[_0x4958f5(0x2a4)]?.[_0x4958f5(0x266)];if(!_0x46dce9)return null;const _0x5dae3d=_0x46dce9[_0x4958f5(0x68a)]()[_0x4958f5(0x6bf)](_0x5c6d0b=>_0x5c6d0b[_0x4958f5(0x22f)]?.[_0x4958f5(0x331)]===_0x4958f5(0x3e4));return _0x5dae3d?_0x46dce9[_0x4958f5(0x72b)](_0x5dae3d['id'],_0x5dae3d[_0x4958f5(0x67f)]):null;}get['_systemEnv'](){const _0x1970ae=_0x3d9eaa;return this[_0x1970ae(0x34c)]?this[_0x1970ae(0x2e5)][_0x1970ae(0x759)](_0x1970ae(0x322)):undefined;}[_0x3d9eaa(0x195)](_0x3a95a8){const _0x8fb2b6=_0x3d9eaa;let _0x6c5d95=Map['prototype'][_0x8fb2b6(0x759)]['call'](this['_envs'],_0x3a95a8);if(!_0x6c5d95){_0x6c5d95=new _0x5c0887(this,_0x3a95a8),Map[_0x8fb2b6(0x4d3)]['set'][_0x8fb2b6(0x39c)](this['_envs'],_0x3a95a8,_0x6c5d95);if(_0x3a95a8===_0x8fb2b6(0x1e3))this[_0x8fb2b6(0x2fb)]=_0x6c5d95;}return _0x6c5d95;}[_0x3d9eaa(0x100)](_0x1091e1=_0x3d9eaa(0x1e3)){const _0x5524ad=_0x3d9eaa,_0x16c313=this['_envs'][_0x5524ad(0x759)](_0x1091e1);if(_0x16c313)return _0x16c313;if(this[_0x5524ad(0x34c)]&&this[_0x5524ad(0x6ad)]('db',null,_0x5524ad(0x631),[_0x1091e1],![]))return this[_0x5524ad(0x195)](_0x1091e1);throw new _0x1fe4d0(_0x5524ad(0x3d1)+_0x1091e1+_0x5524ad(0x2db),'ENV_NOT_FOUND');}get[_0x3d9eaa(0x1e3)](){const _0x54da5b=_0x3d9eaa;return this['env'](_0x54da5b(0x1e3));}get[_0x3d9eaa(0x41d)](){const _0x3c3af7=_0x3d9eaa;return this[_0x3c3af7(0x2e5)][_0x3c3af7(0x759)](_0x3c3af7(0x1e3))??this['_defaultEnvObj'];}get[_0x3d9eaa(0x59e)](){const _0xb6458d=_0x3d9eaa;return this['_defaultEnv'][_0xb6458d(0x59e)];}get[_0x3d9eaa(0x39f)](){const _0x2bda90=_0x3d9eaa;return this['_defaultEnv'][_0x2bda90(0x39f)];}['_timerHandle'](_0x1954c9){const _0x4a407a=_0x3d9eaa;if(!this[_0x4a407a(0x34c)])return null;return this[_0x4a407a(0x6ad)]('db',null,_0x4a407a(0x418),[_0x1954c9],![])?{'ref'(){},'unref'(){}}:null;}get[_0x3d9eaa(0x114)](){const _0x320b9c=_0x3d9eaa;return this[_0x320b9c(0x4dd)]('readerCheck');}['_reconcileDesired'](){const _0x1b8090=_0x3d9eaa;return this['_call']('db',null,_0x1b8090(0x3c2),[],!![]);}get['_licenseInterval'](){return this['_timerHandle']('license');}get[_0x3d9eaa(0x594)](){const _0x34a419=_0x3d9eaa;return this[_0x34a419(0x4dd)]('writerWatchdog');}get[_0x3d9eaa(0x5df)](){const _0x182e74=_0x3d9eaa;return this[_0x182e74(0x100)](_0x182e74(0x1e3))[_0x182e74(0x5df)];}get['workers'](){const _0x473a69=_0x3d9eaa;throw new _0x1fe4d0(_0x473a69(0x63e),_0x473a69(0x32b));}get[_0x3d9eaa(0x266)](){const _0x3791a0=_0x3d9eaa;return this[_0x3791a0(0x41d)]['processor'];}get[_0x3d9eaa(0x442)](){const _0x14e878=_0x3d9eaa;return this[_0x14e878(0x41d)][_0x14e878(0x442)];}async[_0x3d9eaa(0x6e3)](_0x3f09d9,_0x26f871={}){const _0x5dde98=_0x3d9eaa;return this[_0x5dde98(0x68c)](),this[_0x5dde98(0x6ad)]('db',null,_0x5dde98(0x6e3),[_0x3f09d9,_0x26f871]),this[_0x5dde98(0x195)](_0x3f09d9);}async[_0x3d9eaa(0x169)](_0x38c4bd){const _0x1e028d=_0x3d9eaa;if(!this['_isOpen'])throw new _0x1fe4d0(_0x1e028d(0xeb)+_0x38c4bd+_0x1e028d(0x3c1),_0x1e028d(0x45c));return this[_0x1e028d(0x6ad)]('db',null,'openEnv',[_0x38c4bd]),this['_ensureEnv'](_0x38c4bd);}get[_0x3d9eaa(0x117)](){const _0x14af4a=_0x3d9eaa;if(!this[_0x14af4a(0x6bc)]&&this[_0x14af4a(0x34c)]){const _0x55fd2f=requireOkdbRelay(),_0x9863b1=new _0x55fd2f(this,this[_0x14af4a(0x3d8)]?.[_0x14af4a(0x70a)]?.['relay']??{});_0x9863b1[_0x14af4a(0x7b7)](),_0x9863b1[_0x14af4a(0x51f)]=!![],this[_0x14af4a(0x6bc)]=_0x9863b1;}return this['__adminRelay']??null;}set[_0x3d9eaa(0x117)](_0x1119f2){const _0x24b5df=_0x3d9eaa;this[_0x24b5df(0x6bc)]=_0x1119f2;}get[_0x3d9eaa(0x64f)](){const _0x451845=_0x3d9eaa;let _0x3ed93a=0x0;if(this['_isOpen'])for(const [_0x54c83d]of Map['prototype'][_0x451845(0x5c7)][_0x451845(0x39c)](this[_0x451845(0x2e5)])){try{_0x3ed93a+=this['_call'](_0x451845(0x1f4),_0x54c83d,_0x451845(0x54f),[],![])||0x0;}catch{}}return{'total':_0x3ed93a,'maxObserved':_0x3ed93a>0x0?0x1:0x0,'inFlight':0x0};}async['_openEnvLazy'](_0x2d5acc){const _0x462514=_0x3d9eaa,_0x5a02e0=this[_0x462514(0x2e5)][_0x462514(0x759)](_0x2d5acc);if(_0x5a02e0)return _0x5a02e0;if(!this[_0x462514(0x6ad)]('db',null,'hasEnv',[_0x2d5acc],![]))throw new Error(_0x462514(0x48b)+_0x2d5acc+_0x462514(0x6fc));return this['openEnv'](_0x2d5acc);}async[_0x3d9eaa(0x709)](_0x3b2696){const _0x1832c4=_0x3d9eaa,_0x1ceb2c=this[_0x1832c4(0x6ad)]('db',null,_0x1832c4(0x4d0),[_0x3b2696]);return this['_envs'][_0x1832c4(0x5cb)](_0x3b2696),_0x1ceb2c;}async[_0x3d9eaa(0x50e)](_0x17c30b,_0x4a1428={}){const _0xe98975=_0x3d9eaa;this['_assertOpen']();const _0x233eb2=this[_0xe98975(0x6ad)]('db',null,_0xe98975(0x50e),[_0x17c30b,_0x4a1428]);return this[_0xe98975(0x2e5)]['delete'](_0x17c30b),_0x233eb2;}static get['defaults'](){return _0x252c5d['defaults'];}static get['KNOWN_OPTIONS'](){const _0x104a6e=_0x3d9eaa;return _0x252c5d[_0x104a6e(0x361)];}static get[_0x3d9eaa(0x635)](){const _0x75cd8b=_0x3d9eaa;return _0x252c5d[_0x75cd8b(0x635)];}static async['clone'](_0x23497d,_0x593693){const _0x4b6268=_0x3d9eaa;return _0x34bd86('db',_0x4b6268(0x243),[_0x23497d,_0x593693]);}static['reidentify'](_0x5b0fa5){const _0x2aaff9=_0x3d9eaa;return _0x34bd86('db',_0x2aaff9(0x5a6),[_0x5b0fa5]);}static[_0x3d9eaa(0x526)](_0x455958,_0xdb3da6){const _0x42c3bb=_0x3d9eaa;_0x34bd86(_0x42c3bb(0x442),_0x42c3bb(0x526),[_0x455958,_0xdb3da6]);}static['registerViewReducer'](_0x413b58,_0x592534){const _0x4b623a=_0x3d9eaa;_0x34bd86(_0x4b623a(0x442),_0x4b623a(0x391),[_0x413b58,_0x592534]);}static[_0x3d9eaa(0x774)](){}['equal'](_0x46672a,_0x386e1f){const _0x319471=_0x3d9eaa;return require$$16[_0x319471(0x6ef)](_0x46672a,_0x386e1f);}}_0x5102b3[_0x3d9eaa(0x3f0)]=_0x5ed884,Object[_0x3d9eaa(0x522)](_0x5102b3,_0x3d9eaa(0x42f),{'get'(){const _0x194e9=_0x3d9eaa;return _0x5102b3[_0x194e9(0x2b1)]||(_0x5102b3['__warned']=new Set());},'set'(_0x1b3140){const _0x464859=_0x3d9eaa;_0x5102b3[_0x464859(0x2b1)]=_0x1b3140;try{_0x34bd86('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x3e0be9 of[_0x3d9eaa(0x194),_0x3d9eaa(0x343),_0x3d9eaa(0x77a),'update',_0x3d9eaa(0x3bd),_0x3d9eaa(0x160),_0x3d9eaa(0x4a1),_0x3d9eaa(0x759),_0x3d9eaa(0x47e),_0x3d9eaa(0x31c),_0x3d9eaa(0x501),_0x3d9eaa(0x3c6),_0x3d9eaa(0x253),_0x3d9eaa(0x429),_0x3d9eaa(0x4cc),_0x3d9eaa(0x49f),_0x3d9eaa(0x1ae),'countByIndex','query',_0x3d9eaa(0x789),_0x3d9eaa(0x352),_0x3d9eaa(0x5c1),_0x3d9eaa(0x2e7),_0x3d9eaa(0x27e),'getSchema',_0x3d9eaa(0x4db),_0x3d9eaa(0x20a),'registerIndex','hasIndex',_0x3d9eaa(0x78a),_0x3d9eaa(0x217),_0x3d9eaa(0x21d),_0x3d9eaa(0x76a),'getUniqueViolations','hasUniqueViolations','getUniqueViolation',_0x3d9eaa(0x4c5),_0x3d9eaa(0x591),_0x3d9eaa(0x468),'getTTL',_0x3d9eaa(0x6cf),'sweepExpiredTTL','listTTL',_0x3d9eaa(0x703),_0x3d9eaa(0x245),'getDefaultTTL',_0x3d9eaa(0x2af),_0x3d9eaa(0x4e5),_0x3d9eaa(0x348),_0x3d9eaa(0x466)]){_0x5102b3['prototype'][_0x3e0be9]=function(..._0x2b5018){const _0x2c8cbe=_0x3d9eaa,_0x96fd0e=this['env'](_0x2c8cbe(0x1e3));return _0x96fd0e[_0x3e0be9](..._0x2b5018);};}function _0x31675c(_0x13ba26){const _0x3c4be7=_0x3d9eaa,_0x273a1a=_0x141b71=>()=>{const _0x30a35c=_0x5df8;throw new Error(_0x30a35c(0x259)+_0x141b71+_0x30a35c(0x3ac));};return{'process':_0x273a1a(_0x3c4be7(0x3da)),'processRest':_0x273a1a(_0x3c4be7(0x6ae)),'processEverything':_0x273a1a(_0x3c4be7(0x69a)),async 'start'(){const _0x5d48d6=_0x3c4be7;return _0x13ba26[_0x5d48d6(0x6ad)]('db',null,'processorsStart',[]);},async 'stop'(){const _0x188f0b=_0x3c4be7;return _0x13ba26[_0x188f0b(0x6ad)]('db',null,_0x188f0b(0x1c1),[]);},'status'(){const _0x121b8d=_0x3c4be7;return _0x13ba26[_0x121b8d(0x6ad)]('db',null,_0x121b8d(0x455),[],![]);},get 'participating'(){const _0x4f0815=_0x3c4be7;return _0x13ba26[_0x4f0815(0x6ad)]('db',null,_0x4f0815(0x719),[],![]);},get '_participate'(){const _0x36aaa4=_0x3c4be7;return _0x13ba26[_0x36aaa4(0x6ad)]('db',null,'processorsParticipating',[],![]);}};}function _0x34bd86(_0x7f33c6,_0x37f3c6,_0xa05fdd){const _0x699af4=_0x3d9eaa;_0x215284();try{return _0xe405c1()[_0x699af4(0x49d)](_0x7f33c6,_0x37f3c6,_0xa05fdd);}catch(_0x5d8c61){throw _0x4678d3(_0x5d8c61);}}_0x2be9d2['exports']=_0x5102b3,_0x2be9d2['exports'][_0x3d9eaa(0x687)]=_0x34bd86,_0x2be9d2[_0x3d9eaa(0x296)][_0x3d9eaa(0x29b)]=_0x5102b3,_0x2be9d2[_0x3d9eaa(0x296)][_0x3d9eaa(0x3f0)]=_0x5ed884,_0x2be9d2[_0x3d9eaa(0x296)]['default']=_0x5102b3,Object[_0x3d9eaa(0x522)](_0x2be9d2[_0x3d9eaa(0x296)],_0x3d9eaa(0x4e0),{'get':()=>require$$1$1[_0x3d9eaa(0x11b)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib['exports'];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x30dd4b(0x296)]=index;
1
+ 'use strict';const _0x1c5fdf=_0x20ac;(function(_0xb68dff,_0x536a2c){const _0x40a11f=_0x20ac,_0x51287e=_0xb68dff();while(!![]){try{const _0x4af3e8=-parseInt(_0x40a11f(0x578))/0x1+-parseInt(_0x40a11f(0x7f0))/0x2*(parseInt(_0x40a11f(0x76d))/0x3)+parseInt(_0x40a11f(0x3d0))/0x4+-parseInt(_0x40a11f(0x889))/0x5+-parseInt(_0x40a11f(0x3dd))/0x6+-parseInt(_0x40a11f(0x1e9))/0x7*(parseInt(_0x40a11f(0x475))/0x8)+parseInt(_0x40a11f(0x3a5))/0x9*(parseInt(_0x40a11f(0x839))/0xa);if(_0x4af3e8===_0x536a2c)break;else _0x51287e['push'](_0x51287e['shift']());}catch(_0x3d3b69){_0x51287e['push'](_0x51287e['shift']());}}}(_0x2854,0x47f37));var require$$0$6=require(_0x1c5fdf(0x3cb)),require$$1$1=require(_0x1c5fdf(0x820)),require$$0=require('node:fs'),require$$1=require(_0x1c5fdf(0x489)),require$$4=require(_0x1c5fdf(0x63a)),require$$0$2=require('node:crypto'),require$$0$1=require('node:perf_hooks'),require$$16=require(_0x1c5fdf(0x509)),require$$0$3=require(_0x1c5fdf(0x740)),require$$2=require(_0x1c5fdf(0x539)),require$$18=require(_0x1c5fdf(0x49e)),require$$0$4=require('crypto'),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x5e67d9){const _0x1afbf7=_0x1c5fdf;return _0x5e67d9&&_0x5e67d9['__esModule']&&Object['prototype'][_0x1afbf7(0x713)][_0x1afbf7(0x765)](_0x5e67d9,'default')?_0x5e67d9[_0x1afbf7(0x3e4)]:_0x5e67d9;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x5e6e38 extends Error{constructor(_0x5df3c6,_0x3dd54d,_0x2d578c={}){const _0x3ba61b=_0x20ac;super(_0x5df3c6),this[_0x3ba61b(0x80a)]='OKDBError',this[_0x3ba61b(0x22a)]=_0x3dd54d,this[_0x3ba61b(0x2f7)]=_0x2d578c,_0x2d578c['cause']&&(this['cause']=_0x2d578c['cause']),Error[_0x3ba61b(0x753)](this,this['constructor']);}}class _0x2f48d9 extends _0x5e6e38{constructor(_0x4c4c50,_0x5de330,_0x164e74,_0x7d725d){const _0x5f5cbf=_0x20ac;super('Version\x20mismatch\x20for\x20'+_0x4c4c50+'@'+_0x5de330+':\x20expected\x20'+_0x164e74+_0x5f5cbf(0x3c7)+_0x7d725d,_0x5f5cbf(0x711),{'type':_0x4c4c50,'key':_0x5de330,'expectedVersion':_0x164e74,'actualVersion':_0x7d725d}),this[_0x5f5cbf(0x80a)]=_0x5f5cbf(0x382);}}class _0x40375a extends _0x5e6e38{constructor(_0x400c78,_0x1633ee){const _0x449b69=_0x20ac;super(_0x400c78+'@'+_0x1633ee+'\x20does\x20not\x20exist','NOT_FOUND',{'type':_0x400c78,'key':_0x1633ee}),this[_0x449b69(0x80a)]='OKDBNotFoundError';}}class _0x235000 extends _0x5e6e38{constructor(_0x1d9e80,_0x2b0856){const _0x4ecac4=_0x20ac;super(_0x1d9e80+'@'+_0x2b0856+_0x4ecac4(0x885),_0x4ecac4(0x193),{'type':_0x1d9e80,'key':_0x2b0856}),this[_0x4ecac4(0x80a)]=_0x4ecac4(0x405);}}class _0x2ff251 extends _0x5e6e38{constructor(_0x3d31e6,_0x4868b1){const _0x55eff0=_0x20ac,_0x334d44=typeof _0x4868b1;super(_0x55eff0(0x60d)+_0x3d31e6+_0x55eff0(0x7fb)+_0x334d44+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x4868b1,_0x55eff0(0x4be),{'index':_0x3d31e6,'key':_0x4868b1,'keyType':_0x334d44}),this[_0x55eff0(0x80a)]=_0x55eff0(0x277);}}class _0x1dcf89 extends _0x5e6e38{constructor(_0x4e788e){const _0x28ecee=_0x20ac,_0x21aae8=typeof _0x4e788e;super(_0x28ecee(0x3db)+_0x21aae8+_0x28ecee(0x59d)+_0x4e788e,_0x28ecee(0x365),{'key':_0x4e788e,'keyType':_0x21aae8}),this['name']=_0x28ecee(0x4c7);}}class _0x1ceccc extends _0x5e6e38{constructor(_0x4d37ac){const _0x18bcd5=_0x20ac;super('Type\x20\x27'+_0x4d37ac+_0x18bcd5(0x722),_0x18bcd5(0x1c6),{'type':_0x4d37ac}),this[_0x18bcd5(0x80a)]=_0x18bcd5(0x42d);}}class _0x37efff extends _0x5e6e38{constructor(_0x36a98c){const _0x1cd676=_0x20ac;super(_0x1cd676(0x2d2)+_0x36a98c+_0x1cd676(0x825),_0x1cd676(0x40a),{'type':_0x36a98c}),this['name']=_0x1cd676(0x472);}}class _0x383d7d extends _0x5e6e38{constructor(_0x405e48,_0x28c265){const _0x7ea38f=_0x20ac;super(_0x7ea38f(0x702)+_0x28c265+_0x7ea38f(0x793)+_0x405e48+_0x7ea38f(0x722),'INDEX_NOT_REGISTERED',{'type':_0x405e48,'index':_0x28c265}),this[_0x7ea38f(0x80a)]=_0x7ea38f(0x5e2);}}class _0x89c07c extends _0x5e6e38{constructor(_0x3ec396,_0x5254a6){const _0x2f97be=_0x20ac;super(_0x2f97be(0x702)+_0x5254a6+_0x2f97be(0x793)+_0x3ec396+_0x2f97be(0x37d),_0x2f97be(0x51e),{'type':_0x3ec396,'index':_0x5254a6}),this['name']=_0x2f97be(0x278);}}class _0x235123 extends _0x5e6e38{constructor(_0x390f08,_0xbdb85f={}){const _0x203931=_0x20ac;super(_0x390f08,_0x203931(0x890),_0xbdb85f),this[_0x203931(0x80a)]=_0x203931(0x824);}}class _0x4fe1f0 extends _0x5e6e38{constructor(_0x1bf819,_0x20b7fd,_0xee7404,_0x1596f1,_0x49c548){const _0x26a47c=_0x20ac;super(_0x26a47c(0x1fb)+_0x1bf819+'@'+_0x20b7fd+':\x20key\x20['+_0xee7404+_0x26a47c(0x36b)+_0x1596f1+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x49c548+'\x27','UNIQUE_CONSTRAINT',{'type':_0x1bf819,'index':_0x20b7fd,'indexKey':_0xee7404,'existingKey':_0x1596f1,'conflictingKey':_0x49c548}),this[_0x26a47c(0x80a)]=_0x26a47c(0x4de);}}class _0x54d4e6 extends _0x5e6e38{constructor(_0x33dc65,_0x5b1b78,_0x2d3718){const _0x2a80ff=_0x20ac;super(_0x2a80ff(0x33e)+_0x33dc65+'@'+_0x5b1b78,'SCHEMA_VALIDATION_FAILED',{'type':_0x33dc65,'key':_0x5b1b78,'errors':_0x2d3718}),this[_0x2a80ff(0x80a)]='OKDBSchemaValidationError',this['type']=_0x33dc65,this[_0x2a80ff(0x7e4)]=_0x5b1b78,this['errors']=_0x2d3718;}}class _0x25aa28 extends _0x5e6e38{constructor(_0x327989,_0xad356c){const _0x4a327b=_0x20ac;super(_0x4a327b(0x189)+_0x327989+':\x20'+_0xad356c[_0x4a327b(0x2f6)]+_0x4a327b(0x46c),_0x4a327b(0x871),{'type':_0x327989,'failures':_0xad356c}),this['name']=_0x4a327b(0x237),this[_0x4a327b(0x359)]=_0x327989,this['failures']=_0xad356c;}}class _0x2a61c7 extends _0x5e6e38{constructor(_0x194d98,_0x47bb57,_0x53f060,_0x402e3f,_0x4dfdbd){const _0x14b25d=_0x20ac;super(_0x14b25d(0x62e)+_0x194d98+'@'+_0x47bb57+'.'+_0x53f060+_0x14b25d(0x7d1)+_0x402e3f+'@'+_0x4dfdbd+_0x14b25d(0x51f),_0x14b25d(0x19b),{'sourceType':_0x194d98,'sourceKey':_0x47bb57,'fieldPath':_0x53f060,'targetType':_0x402e3f,'targetKey':_0x4dfdbd}),this[_0x14b25d(0x80a)]=_0x14b25d(0x35a),this['sourceType']=_0x194d98,this[_0x14b25d(0x7f2)]=_0x47bb57,this[_0x14b25d(0x5d6)]=_0x53f060,this[_0x14b25d(0x6da)]=_0x402e3f,this[_0x14b25d(0x264)]=_0x4dfdbd;}}class _0x2cd57e extends _0x5e6e38{constructor(_0x3a6cb8,_0x461f47,_0x10166f){const _0x49270a=_0x20ac;super(_0x49270a(0x425)+_0x3a6cb8+'@'+_0x461f47+':\x20'+_0x10166f['length']+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x49270a(0x3e2),{'targetType':_0x3a6cb8,'targetKey':_0x461f47,'references':_0x10166f}),this[_0x49270a(0x80a)]='OKDBForeignKeyDeleteError',this[_0x49270a(0x6da)]=_0x3a6cb8,this[_0x49270a(0x264)]=_0x461f47,this['references']=_0x10166f;}}class _0x5dd6ea extends _0x5e6e38{constructor(_0x2dcc90,_0x36a1eb,_0x14c719){const _0x1aa6c7=_0x20ac;super(_0x1aa6c7(0x325)+_0x36a1eb+_0x1aa6c7(0x393)+_0x2dcc90+_0x1aa6c7(0x6e1)+_0x14c719['map'](_0x9f564a=>_0x9f564a[_0x1aa6c7(0x5f2)]+':'+_0x9f564a['name'])[_0x1aa6c7(0x486)](',\x20'),_0x1aa6c7(0x454),{'type':_0x2dcc90,'index':_0x36a1eb,'usedBy':_0x14c719}),this[_0x1aa6c7(0x80a)]=_0x1aa6c7(0x562);}}return okdbError={'OKDBError':_0x5e6e38,'OKDBVersionMismatchError':_0x2f48d9,'OKDBNotFoundError':_0x40375a,'OKDBAlreadyExistsError':_0x235000,'OKDBInvalidIndexKeyError':_0x2ff251,'OKDBInvalidPrimaryKeyError':_0x1dcf89,'OKDBTypeNotRegisteredError':_0x1ceccc,'OKDBTypeAlreadyRegisteredError':_0x37efff,'OKDBIndexNotRegisteredError':_0x383d7d,'OKDBIndexAlreadyRegisteredError':_0x89c07c,'OKDBInvalidValueError':_0x235123,'OKDBUniqueConstraintError':_0x4fe1f0,'OKDBSchemaValidationError':_0x54d4e6,'OKDBSchemaCollectionError':_0x25aa28,'OKDBForeignKeyError':_0x2a61c7,'OKDBForeignKeyDeleteError':_0x2cd57e,'OKDBIndexHasConsumersError':_0x5dd6ea},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x158419=_0x1c5fdf;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x28c9b6=requireOkdbError(),_0x87ada={'VERSION_MISMATCH':_0x28c9b6['OKDBVersionMismatchError'],'NOT_FOUND':_0x28c9b6[_0x158419(0x43c)],'ALREADY_EXISTS':_0x28c9b6[_0x158419(0x405)],'INVALID_INDEX_KEY':_0x28c9b6[_0x158419(0x277)],'INVALID_PRIMARY_KEY':_0x28c9b6['OKDBInvalidPrimaryKeyError'],'TYPE_NOT_REGISTERED':_0x28c9b6[_0x158419(0x42d)],'TYPE_ALREADY_REGISTERED':_0x28c9b6[_0x158419(0x472)],'INDEX_NOT_REGISTERED':_0x28c9b6[_0x158419(0x5e2)],'INDEX_ALREADY_REGISTERED':_0x28c9b6[_0x158419(0x278)],'INVALID_VALUE':_0x28c9b6[_0x158419(0x824)],'UNIQUE_CONSTRAINT':_0x28c9b6[_0x158419(0x4de)],'SCHEMA_VALIDATION_FAILED':_0x28c9b6[_0x158419(0x1c2)],'SCHEMA_COLLECTION_INVALID':_0x28c9b6[_0x158419(0x237)],'FOREIGN_KEY_VIOLATION':_0x28c9b6[_0x158419(0x35a)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x28c9b6['OKDBForeignKeyDeleteError'],'INDEX_HAS_CONSUMERS':_0x28c9b6[_0x158419(0x562)]};class _0x467228 extends _0x28c9b6[_0x158419(0x856)]{constructor(_0x27a554,_0x4a44e2){const _0x5fa4c0=_0x158419;super(_0x27a554+_0x5fa4c0(0x1a2)+(_0x4a44e2?'\x20('+_0x4a44e2+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x27a554}),this['name']='OKDBNotImplementedNativeError';}}function _0x343dcf(_0x43d71e){const _0x492201=_0x158419;if(!_0x43d71e||typeof _0x43d71e!=='object'||!_0x43d71e[_0x492201(0x729)])return _0x43d71e;delete _0x43d71e['__okdb'];const _0x10cd13=_0x43d71e[_0x492201(0x22a)];if(_0x10cd13==='Error'||_0x10cd13==='TypeError'||_0x10cd13===_0x492201(0x548)){const _0x412915=_0x10cd13===_0x492201(0x645)?TypeError[_0x492201(0x3c3)]:_0x10cd13==='RangeError'?RangeError[_0x492201(0x3c3)]:Error['prototype'];Object['setPrototypeOf'](_0x43d71e,_0x412915),_0x43d71e['name']=_0x10cd13;if(_0x43d71e[_0x492201(0x2f7)]&&_0x43d71e['details'][_0x492201(0x392)]!==undefined)_0x43d71e[_0x492201(0x392)]=_0x43d71e[_0x492201(0x2f7)][_0x492201(0x392)];return delete _0x43d71e[_0x492201(0x22a)],delete _0x43d71e['details'],_0x43d71e;}const _0x11c965=_0x87ada[_0x10cd13];Object[_0x492201(0x2f1)](_0x43d71e,(_0x11c965||_0x28c9b6['OKDBError'])['prototype']),_0x43d71e[_0x492201(0x80a)]=_0x11c965?_0x11c965[_0x492201(0x80a)][_0x492201(0x756)](/^OKDB/,_0x492201(0x683)):_0x492201(0x856);const _0x4f819e=_0x43d71e[_0x492201(0x2f7)]||{};_0x10cd13===_0x492201(0x5a0)&&(_0x43d71e[_0x492201(0x359)]=_0x4f819e[_0x492201(0x359)],_0x43d71e[_0x492201(0x7e4)]=_0x4f819e[_0x492201(0x7e4)],_0x43d71e[_0x492201(0x559)]=_0x4f819e[_0x492201(0x559)]);_0x10cd13===_0x492201(0x871)&&(_0x43d71e[_0x492201(0x359)]=_0x4f819e[_0x492201(0x359)],_0x43d71e[_0x492201(0x39f)]=_0x4f819e[_0x492201(0x39f)]);if(_0x10cd13==='FOREIGN_KEY_VIOLATION'){for(const _0x1429a6 of[_0x492201(0x203),_0x492201(0x7f2),_0x492201(0x5d6),_0x492201(0x6da),_0x492201(0x264)])_0x43d71e[_0x1429a6]=_0x4f819e[_0x1429a6];}if(_0x10cd13==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x433e02 of[_0x492201(0x6da),_0x492201(0x264),_0x492201(0x236)])_0x43d71e[_0x433e02]=_0x4f819e[_0x433e02];}if(_0x4f819e[_0x492201(0x3b8)])_0x43d71e[_0x492201(0x3b8)]=_0x4f819e['cause'];if(_0x4f819e['status']!==undefined)_0x43d71e['status']=_0x4f819e[_0x492201(0x392)];if(_0x4f819e['retryable']!==undefined)_0x43d71e[_0x492201(0x38f)]=_0x4f819e[_0x492201(0x38f)];return _0x43d71e;}function _0x21d3c6(_0x2a042e){const _0x3a077f=_0x158419;if(_0x2a042e===undefined)return _0x3a077f(0x777);if(_0x2a042e===null)return _0x3a077f(0x1e0);if(typeof _0x2a042e===_0x3a077f(0x460))return _0x2a042e?_0x3a077f(0x460):_0x3a077f(0x2df);if(typeof _0x2a042e===_0x3a077f(0x5c4))return _0x3a077f(0x5c4);if(typeof _0x2a042e!==_0x3a077f(0x86d))return typeof _0x2a042e;if(Array[_0x3a077f(0x55b)](_0x2a042e))return _0x2a042e[_0x3a077f(0x2f6)]?'array':'empty\x20array';if(_0x2a042e instanceof Date)return _0x3a077f(0x4a7);if(_0x2a042e instanceof Map)return _0x3a077f(0x2b6);if(Buffer[_0x3a077f(0x531)](_0x2a042e))return _0x3a077f(0x238);return _0x3a077f(0x86d);}const _0xece168=(_0x53d9e2,_0x3854a0,_0xd0e6e5)=>new _0x28c9b6[(_0x158419(0x856))](_0x3854a0,_0x53d9e2,_0xd0e6e5),_0x872446=(_0x3748b6,_0x2f5fe1,_0x3addcf)=>_0xece168('INVALID_ARGUMENT',_0x3748b6+_0x158419(0x55e)+_0x2f5fe1+_0x158419(0x44f)+_0x21d3c6(_0x3addcf),{'argument':_0x3748b6,'expected':_0x2f5fe1,'got':_0x21d3c6(_0x3addcf)}),_0x78299b=(_0x295152,_0x249bc5)=>_0xece168(_0x158419(0x3e9),_0x295152+_0x158419(0x4a4)+_0x21d3c6(_0x249bc5),{'argument':_0x295152,'expected':'non-empty\x20string','got':_0x21d3c6(_0x249bc5)}),_0x3a4bfe=(_0x7359c,_0x29b0cd)=>_0xece168('INVALID_OPTIONS',_0x7359c+':\x20'+_0x29b0cd,{'argument':_0x7359c,'problem':_0x29b0cd});function _0x4a82c6(_0x4f89f7,_0x2128ef='options'){const _0x1db4c6=_0x158419;if(_0x4f89f7===undefined)return{};if(_0x4f89f7===null)throw _0x3a4bfe(_0x2128ef,_0x1db4c6(0x6a5));return _0x4f89f7;}return errors={'reclass':_0x343dcf,'NotImplementedNative':_0x467228,'BY_CODE':_0x87ada,'describe':_0x21d3c6,'invalidArgument':_0x872446,'invalidTypeName':_0x78299b,'invalidOptions':_0x3a4bfe,'optionsArg':_0x4a82c6,..._0x28c9b6},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x24e4e9=new Map(),_0x572b11=new Map();let _0xa4dc89=0x1;const _0x51dfc7=new Map(),_0x112063=new Map();let _0x489f72=0x1;const _0x3ae2ee=new Map();let _0x23bd6b=0x1;const _0x213668=new Map();function _0x52940b(_0x12d184,_0x259ff7=null){const _0x4a13e5=_0x20ac,_0x54a1a9=_0x23bd6b++;_0x3ae2ee['set'](_0x54a1a9,_0x12d184);if(_0x259ff7)_0x213668[_0x4a13e5(0x398)](_0x54a1a9,_0x259ff7);return _0x54a1a9;}function _0x78eb7e(_0x41df8a,_0x26f273){const _0x272818=_0x20ac,_0x253f49=_0x3ae2ee[_0x272818(0x4ff)](_0x41df8a),_0x4572e6=Array[_0x272818(0x3c3)][_0x272818(0x5d1)][_0x272818(0x765)](arguments,0x2),_0x2abe18=_0x162c9c=>_0x2ce359(_0x162c9c,_0x213668['get'](_0x41df8a));let _0x2732c2=_0x4572e6;if(_0x26f273===_0x272818(0x84e)||_0x26f273===_0x272818(0x584)||_0x26f273===_0x272818(0x466)||_0x26f273===_0x272818(0x47a)||_0x26f273==='assertStartAllowed')_0x2732c2=[_0x2abe18(_0x4572e6[0x0])];else{if(_0x26f273==='patchConfig')_0x2732c2=[_0x4572e6[0x0],_0x4572e6[0x1],_0x2abe18(_0x4572e6[0x2])];else{if(_0x26f273===_0x272818(0x44c))_0x2732c2=[_0x2abe18(_0x4572e6[0x0])];}}let _0x56a3df=_0x253f49[_0x26f273](..._0x2732c2);if(_0x56a3df&&typeof _0x56a3df[_0x272818(0x8a9)]===_0x272818(0x5c4))_0x56a3df=_0x57e881(_0x56a3df);if(_0x26f273==='start'){const _0x32659f=_0x56a3df&&typeof _0x56a3df===_0x272818(0x86d)?_0x52940b(_0x56a3df):_0x52940b({});return{'$api':_0x32659f};}return _0x56a3df===undefined?null:_0x56a3df;}function _0x2ce359(_0x2facb6,_0x11b1c0){const _0x49e4bd=_0x20ac;let _0xad8efc=_0x252d7a[_0x49e4bd(0x4ff)](_0x2facb6[_0x49e4bd(0x67d)]);const _0xa45ab=_0xad8efc&&_0xad8efc[_0x49e4bd(0x263)]||_0x11b1c0||_0x58b375,_0x9ff06e=(_0x32565a,..._0x5eb3e0)=>_0xa45ab[_0x49e4bd(0x7b0)]('engines',null,_0x32565a,[_0x2facb6[_0x49e4bd(0x359)],_0x2facb6[_0x49e4bd(0x80a)],..._0x5eb3e0],!![]);return{'okdb':_0xa45ab,'key':_0x2facb6[_0x49e4bd(0x7e4)],'type':_0x2facb6[_0x49e4bd(0x359)],'name':_0x2facb6['name'],get 'storeEnv'(){const _0x2dfd2a=_0x49e4bd;if(!_0xad8efc&&_0xa45ab&&_0xa45ab['_isOpen']&&_0x2facb6['storeEnvName'])_0xad8efc=_0xa45ab['_envs'][_0x2dfd2a(0x4ff)](_0x2facb6[_0x2dfd2a(0x413)]);return _0xad8efc;},'storeEnvName':_0x2facb6[_0x49e4bd(0x413)],'config':_0x2facb6[_0x49e4bd(0x561)],'meta':_0x2facb6['meta'],'options':_0x2facb6[_0x49e4bd(0x667)],'emit':(_0x3f5f21,_0x4a09ea)=>_0x9ff06e(_0x49e4bd(0x3ce),_0x3f5f21,_0x4a09ea),'updateStatus':async(_0x50361f,_0x502704)=>_0x9ff06e(_0x49e4bd(0x833),_0x50361f,_0x502704==null?null:String(_0x502704&&_0x502704[_0x49e4bd(0x5e1)]?_0x502704['message']:_0x502704)),'updateMeta':async _0x283c87=>_0x9ff06e(_0x49e4bd(0x5cd),{'meta':_0x283c87}),'updateConfig':async _0x93b316=>_0x9ff06e(_0x49e4bd(0x5cd),{'config':_0x93b316})};}function _0x345655(_0x1a8969,_0x40a6e3,_0x14cd4d){const _0x2bdced=_0x20ac;if(_0x1a8969===_0x2bdced(0x2cf)){const _0xd5f1cc=_0x2f25df(_0x40a6e3);let _0x2e116f=_0xd5f1cc(_0x14cd4d);if(_0x2e116f&&typeof _0x2e116f[_0x2bdced(0x8a9)]==='function')_0x2e116f=_0x57e881(_0x2e116f);if(!_0x2e116f||typeof _0x2e116f[_0x2bdced(0x778)]!=='function'){const {OKDBError:_0x6dcfb}=requireErrors();throw new _0x6dcfb(_0x2bdced(0x220)+(_0x14cd4d&&_0x14cd4d[_0x2bdced(0x359)])+'\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}',_0x2bdced(0x186));}return _0x2e116f[_0x2bdced(0x729)]=_0xd5f1cc['__okdb'],{'$id':_0x52940b(_0x2e116f),'batch':typeof _0x2e116f[_0x2bdced(0x18a)]==='function'};}const _0x5954e6=_0x3ae2ee[_0x2bdced(0x4ff)](_0x40a6e3);if(_0x1a8969==='free')return _0x3ae2ee[_0x2bdced(0x6f8)](_0x40a6e3),_0x9a9ca6['delete'](_0x40a6e3),null;if(!_0x5954e6)throw new Error('embedder\x20is\x20gone');if(typeof _0x5954e6[_0x1a8969]!=='function')return null;if(_0x1a8969===_0x2bdced(0x778)||_0x1a8969===_0x2bdced(0x18a)){const _0x443f1d=_0x1a8969===_0x2bdced(0x18a)?_0x351b72(_0x40a6e3,_0x5954e6,_0x14cd4d):_0x21a002(_0x40a6e3,_0x5954e6,_0x1a8969,_0x14cd4d);return _0x1a8969===_0x2bdced(0x778)?Array['from'](_0x443f1d):_0x443f1d[_0x2bdced(0x4ba)](_0x5374ec=>Array[_0x2bdced(0x6a7)](_0x5374ec));}let _0x75c22d=_0x5954e6[_0x1a8969]();if(_0x75c22d&&typeof _0x75c22d[_0x2bdced(0x8a9)]===_0x2bdced(0x5c4))_0x75c22d=_0x57e881(_0x75c22d);return _0x75c22d===undefined?null:_0x75c22d;}function _0x5d3bae(_0x592338,_0x341328,_0x51d139){const _0x14dbac=_0x20ac;if(_0x592338===_0x14dbac(0x2cf)){const _0x42aba2=_0x2f25df(_0x341328);let _0x368591=_0x42aba2(_0x51d139[_0x14dbac(0x561)]??{},{'dims':_0x51d139[_0x14dbac(0x62b)],'dir':_0x51d139['dir']});if(_0x368591&&typeof _0x368591[_0x14dbac(0x8a9)]===_0x14dbac(0x5c4))_0x368591=_0x57e881(_0x368591);for(const _0x1160c1 of[_0x14dbac(0x4b9),_0x14dbac(0x3cc),_0x14dbac(0x7e6),'search',_0x14dbac(0x768)]){if(!_0x368591||typeof _0x368591[_0x1160c1]!==_0x14dbac(0x5c4)){const {OKDBError:_0x16029f}=requireErrors();throw new _0x16029f(_0x14dbac(0x1d0)+_0x1160c1+'()',_0x14dbac(0x436),{'method':_0x1160c1});}}return{'$id':_0x52940b(_0x368591)};}const _0x11de92=_0x3ae2ee['get'](_0x341328);if(_0x592338===_0x14dbac(0x5a1))return _0x3ae2ee['delete'](_0x341328),null;if(!_0x11de92)throw new Error(_0x14dbac(0x550));const _0x1c9002=_0x33569e=>_0x33569e?_0x33569e[_0x14dbac(0x4ba)](_0x102ebc=>({'key':_0x102ebc[_0x14dbac(0x7e4)],'vector':Float32Array['from'](_0x102ebc[_0x14dbac(0x4f6)])})):null;let _0x40eb89;switch(_0x592338){case _0x14dbac(0x4b9):case'rebuild':{const _0x590b8e=_0x1c9002(_0x51d139);_0x40eb89=_0x11de92[_0x592338](_0x590b8e?async()=>_0x590b8e:undefined);break;}case _0x14dbac(0x3cc):_0x40eb89=_0x11de92['add'](_0x51d139[0x0],Float32Array[_0x14dbac(0x6a7)](_0x51d139[0x1]),_0x51d139[0x2]??undefined);break;case _0x14dbac(0x7e6):_0x40eb89=_0x11de92[_0x14dbac(0x7e6)](_0x51d139);break;case'search':_0x40eb89=_0x11de92['search'](Float32Array[_0x14dbac(0x6a7)](_0x51d139[_0x14dbac(0x71e)]),_0x51d139[_0x14dbac(0x1f7)]??{});break;case _0x14dbac(0x870):_0x40eb89=typeof _0x11de92['snapshot']==='function'?_0x11de92[_0x14dbac(0x870)](_0x51d139??undefined):![];break;case _0x14dbac(0x584):_0x40eb89=typeof _0x11de92[_0x14dbac(0x584)]===_0x14dbac(0x5c4)?_0x11de92['stop']():undefined;break;case'tick':_0x40eb89=typeof _0x11de92[_0x14dbac(0x73d)]===_0x14dbac(0x5c4)?_0x11de92[_0x14dbac(0x73d)]():undefined;break;case _0x14dbac(0x768):return Number(_0x11de92['count']());case _0x14dbac(0x427):return(typeof _0x11de92['info']===_0x14dbac(0x5c4)?_0x11de92[_0x14dbac(0x427)]():null)??{};default:throw new Error(_0x14dbac(0x718)+_0x592338);}if(_0x40eb89&&typeof _0x40eb89[_0x14dbac(0x8a9)]===_0x14dbac(0x5c4))_0x40eb89=_0x57e881(_0x40eb89);return _0x40eb89===undefined?null:_0x40eb89;}function _0x507d90(_0x549db9,_0x4f655f,_0x26fdec){const _0x14bfb3=_0x20ac;if(_0x549db9==='new'){const _0x29e5a8=_0x2f25df(_0x4f655f);let _0x552446=_0x29e5a8(_0x26fdec);if(_0x552446&&typeof _0x552446['then']==='function')_0x552446=_0x57e881(_0x552446);if(!_0x552446)return null;const _0x14f866=[_0x14bfb3(0x5a6),_0x14bfb3(0x542),'get',_0x14bfb3(0x768),'dropAll',_0x14bfb3(0x234)][_0x14bfb3(0x7f8)](_0x170852=>typeof _0x552446[_0x170852]==='function');return{'$id':_0x52940b(_0x552446),'has':_0x14f866};}const _0x4befc6=_0x3ae2ee[_0x14bfb3(0x4ff)](_0x4f655f);if(_0x549db9===_0x14bfb3(0x5a1))return _0x3ae2ee['delete'](_0x4f655f),null;if(!_0x4befc6)throw new Error(_0x14bfb3(0x219));const _0x21e5c5=_0x1e4a3a=>Float32Array['from'](_0x1e4a3a);let _0x525a08;switch(_0x549db9){case'put':_0x525a08=_0x4befc6[_0x14bfb3(0x77c)](_0x26fdec[0x0],_0x21e5c5(_0x26fdec[0x1]));break;case _0x14bfb3(0x7e6):_0x525a08=_0x4befc6[_0x14bfb3(0x7e6)](_0x26fdec);break;case'getAll':{_0x525a08=typeof _0x4befc6[_0x14bfb3(0x76c)]==='function'?_0x4befc6['getAll']():[];if(_0x525a08&&typeof _0x525a08[_0x14bfb3(0x8a9)]===_0x14bfb3(0x5c4))_0x525a08=_0x57e881(_0x525a08);return Array['from'](_0x525a08??[],_0x12e3d9=>({'key':_0x12e3d9[_0x14bfb3(0x7e4)],'vector':Array[_0x14bfb3(0x6a7)](_0x12e3d9[_0x14bfb3(0x4f6)])}));}case _0x14bfb3(0x5a6):_0x525a08=_0x4befc6[_0x14bfb3(0x5a6)](_0x26fdec[_0x14bfb3(0x52f)]['map'](_0x42d268=>({'key':_0x42d268[_0x14bfb3(0x7e4)],'vector':_0x21e5c5(_0x42d268[_0x14bfb3(0x4f6)])})),_0x26fdec[_0x14bfb3(0x721)]);break;case _0x14bfb3(0x542):_0x525a08=_0x4befc6[_0x14bfb3(0x542)](_0x26fdec??undefined);if(_0x525a08&&typeof _0x525a08['then']==='function')_0x525a08=_0x57e881(_0x525a08);return Array[_0x14bfb3(0x6a7)](_0x525a08??[]);case _0x14bfb3(0x4ff):{_0x525a08=_0x4befc6[_0x14bfb3(0x4ff)](_0x26fdec);if(_0x525a08&&typeof _0x525a08['then']===_0x14bfb3(0x5c4))_0x525a08=_0x57e881(_0x525a08);return _0x525a08==null?null:Array[_0x14bfb3(0x6a7)](_0x525a08);}case'count':return Number(_0x4befc6[_0x14bfb3(0x768)]());case _0x14bfb3(0x687):_0x525a08=_0x4befc6[_0x14bfb3(0x687)]();break;case _0x14bfb3(0x234):return _0x4befc6[_0x14bfb3(0x234)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x549db9);}if(_0x525a08&&typeof _0x525a08[_0x14bfb3(0x8a9)]===_0x14bfb3(0x5c4))_0x525a08=_0x57e881(_0x525a08);return _0x525a08===undefined?null:_0x525a08;}const _0x4c94b7=new Map();function _0x21a002(_0x1dca3f,_0x415b27,_0x125338,_0x3fb184){const _0x3ce434=_0x20ac,_0x16c873=_0x1dca3f+'\x00'+_0x125338+'\x00'+JSON[_0x3ce434(0x34d)](_0x3fb184),_0x415fe0=_0x4c94b7[_0x3ce434(0x4ff)](_0x16c873);if(_0x415fe0){if(_0x415fe0[_0x3ce434(0x827)]==='pending')throw _0x5c8dc7();_0x4c94b7['delete'](_0x16c873);if(_0x415fe0[_0x3ce434(0x827)]==='err')throw _0x415fe0[_0x3ce434(0x658)];return _0x415fe0['value'];}const _0x169963=_0x415b27[_0x125338](_0x3fb184);if(!_0x169963||typeof _0x169963[_0x3ce434(0x8a9)]!==_0x3ce434(0x5c4))return _0x169963;const _0x334fb0={'state':'pending','value':undefined};_0x169963[_0x3ce434(0x8a9)](_0x395126=>{const _0xaf1993=_0x3ce434;_0x334fb0[_0xaf1993(0x827)]='ok',_0x334fb0[_0xaf1993(0x658)]=_0x395126;if(_0x4c94b7['get'](_0x16c873)===_0x334fb0)_0x54aeba(_0x415b27);},_0x5c7b4f=>{const _0x5ed6c7=_0x3ce434;_0x334fb0[_0x5ed6c7(0x827)]='err',_0x334fb0[_0x5ed6c7(0x658)]=_0x5c7b4f;if(_0x4c94b7[_0x5ed6c7(0x4ff)](_0x16c873)===_0x334fb0)_0x54aeba(_0x415b27);});for(let _0x4e970e=0x0;_0x4e970e<0x64&&_0x334fb0[_0x3ce434(0x827)]===_0x3ce434(0x73b);_0x4e970e++)process[_0x3ce434(0x71f)]();if(_0x334fb0['state']==='ok')return _0x334fb0[_0x3ce434(0x658)];if(_0x334fb0[_0x3ce434(0x827)]===_0x3ce434(0x582))throw _0x334fb0['value'];_0x4c94b7['set'](_0x16c873,_0x334fb0);throw _0x5c8dc7();}const _0x9a9ca6=new Map(),_0x16dd13=0xa*0x3c*0x3e8;function _0x351b72(_0x59813b,_0x1f3d37,_0x59e459){const _0x8bdd0=_0x20ac,_0x49d080=Array[_0x8bdd0(0x55b)](_0x59e459)?_0x59e459:Array[_0x8bdd0(0x6a7)](_0x59e459??[]);let _0x4f8d72=_0x9a9ca6['get'](_0x59813b);if(!_0x4f8d72)_0x9a9ca6[_0x8bdd0(0x398)](_0x59813b,_0x4f8d72=new Map());const _0xbcc78d=Date[_0x8bdd0(0x785)]();for(const [_0x13eb65,_0x48f6a9]of _0x4f8d72)if(_0x48f6a9['req']['state']!==_0x8bdd0(0x73b)&&_0xbcc78d-_0x48f6a9[_0x8bdd0(0x6f4)]['at']>_0x16dd13)_0x4f8d72[_0x8bdd0(0x6f8)](_0x13eb65);const _0x3ad8d8=_0x49d080[_0x8bdd0(0x4ba)](_0x4b6429=>JSON[_0x8bdd0(0x34d)](_0x4b6429));let _0x42d332=![];const _0xe88858=[],_0x23949a=new Set();for(let _0x18baf2=0x0;_0x18baf2<_0x3ad8d8[_0x8bdd0(0x2f6)];_0x18baf2++){const _0x2f3b1b=_0x4f8d72[_0x8bdd0(0x4ff)](_0x3ad8d8[_0x18baf2]);if(!_0x2f3b1b)!_0x23949a['has'](_0x3ad8d8[_0x18baf2])&&(_0x23949a[_0x8bdd0(0x3cc)](_0x3ad8d8[_0x18baf2]),_0xe88858['push'](_0x18baf2));else{if(_0x2f3b1b['req'][_0x8bdd0(0x827)]===_0x8bdd0(0x73b))_0x42d332=!![];else{if(_0x2f3b1b[_0x8bdd0(0x6f4)][_0x8bdd0(0x827)]===_0x8bdd0(0x582)){const _0x4b26aa=_0x2f3b1b[_0x8bdd0(0x6f4)][_0x8bdd0(0x658)];for(const [_0x522cc7,_0x57357c]of _0x4f8d72)if(_0x57357c[_0x8bdd0(0x6f4)]===_0x2f3b1b['req'])_0x4f8d72[_0x8bdd0(0x6f8)](_0x522cc7);throw _0x4b26aa;}}}}if(_0x42d332)throw _0x5c8dc7();if(_0xe88858[_0x8bdd0(0x2f6)]){const _0x2b68b9=_0xe88858['map'](_0x3ca96f=>_0x49d080[_0x3ca96f]),_0xcc0289=_0x1f3d37[_0x8bdd0(0x18a)](_0x2b68b9),_0x1014d9={'state':'pending','value':undefined,'at':0x0},_0x2b0341=(_0x21f49f,_0x299bf3)=>{const _0x49dd7b=_0x8bdd0;_0x1014d9[_0x49dd7b(0x827)]=_0x21f49f,_0x1014d9[_0x49dd7b(0x658)]=_0x299bf3,_0x1014d9['at']=Date[_0x49dd7b(0x785)]();};if(!_0xcc0289||typeof _0xcc0289['then']!==_0x8bdd0(0x5c4))_0x2b0341('ok',_0xcc0289);else{let _0x1b93f6=!![];_0xcc0289['then'](_0x1f0827=>{_0x2b0341('ok',_0x1f0827);if(!_0x1b93f6)_0x54aeba(_0x1f3d37);},_0x2090a1=>{const _0x26a225=_0x8bdd0;_0x2b0341(_0x26a225(0x582),_0x2090a1);if(!_0x1b93f6)_0x54aeba(_0x1f3d37);});for(let _0x7fb8f5=0x0;_0x7fb8f5<0x64&&_0x1014d9['state']==='pending';_0x7fb8f5++)process[_0x8bdd0(0x71f)]();_0x1b93f6=![];}for(let _0x14f741=0x0;_0x14f741<_0xe88858[_0x8bdd0(0x2f6)];_0x14f741++)_0x4f8d72[_0x8bdd0(0x398)](_0x3ad8d8[_0xe88858[_0x14f741]],{'req':_0x1014d9,'index':_0x14f741});if(_0x1014d9[_0x8bdd0(0x827)]===_0x8bdd0(0x582)){for(const _0x20bcb1 of _0xe88858)_0x4f8d72['delete'](_0x3ad8d8[_0x20bcb1]);throw _0x1014d9['value'];}if(_0x1014d9[_0x8bdd0(0x827)]===_0x8bdd0(0x73b))throw _0x5c8dc7();}const _0x3cec7f=_0x3ad8d8[_0x8bdd0(0x4ba)](_0x127508=>{const _0x22ed3b=_0x8bdd0,_0x9c1629=_0x4f8d72[_0x22ed3b(0x4ff)](_0x127508),_0x3bb2d0=_0x9c1629[_0x22ed3b(0x6f4)][_0x22ed3b(0x658)];return _0x3bb2d0?_0x3bb2d0[_0x9c1629['index']]:undefined;});for(const _0x10a5f9 of _0x3ad8d8)_0x4f8d72[_0x8bdd0(0x6f8)](_0x10a5f9);if(!_0x4f8d72['size'])_0x9a9ca6['delete'](_0x59813b);return _0x3cec7f;}function _0x5c8dc7(){const _0x5da2ab=_0x20ac;return Object[_0x5da2ab(0x60e)](new Error(_0x5da2ab(0x7fa)),{'code':'EMBED_PENDING'});}function _0x54aeba(_0x4a1b60){const _0x113a01=_0x20ac;_0x5c2b3e();try{const _0x2e77c1=_0x4a1b60[_0x113a01(0x729)]||_0x58b375;if(_0x2e77c1&&_0x2e77c1[_0x113a01(0x7df)])_0x2e77c1[_0x113a01(0x7b0)](_0x113a01(0x230),null,_0x113a01(0x380),[_0x113a01(0x177),{}],!![]);}catch{}}function _0x17ede7(_0x83b114,_0x1d3da3,_0x5df41f){const _0x258737=_0x20ac,_0x4c6334=_0x3ae2ee[_0x258737(0x4ff)](_0x83b114);if(!_0x4c6334||typeof _0x4c6334[_0x1d3da3]!=='function')return{'__absent':!![]};let _0x15ecec=_0x4c6334[_0x1d3da3](...Array[_0x258737(0x55b)](_0x5df41f)?_0x5df41f:[]);if(_0x15ecec&&typeof _0x15ecec['then']===_0x258737(0x5c4))_0x15ecec=_0x57e881(_0x15ecec);return{'value':_0x15ecec===undefined?null:_0x15ecec};}const _0x358ecb=new Map();let _0x128d68=0x1;const _0x252d7a=new Map(),_0x393185=new Map();function _0x2ef744(_0x29b1e2,_0x5abe33=null){const _0x13f98d=_0x20ac,_0x4b88ea=_0x128d68++;_0x358ecb[_0x13f98d(0x398)](_0x4b88ea,_0x29b1e2);if(_0x5abe33)_0x393185['set'](_0x4b88ea,_0x5abe33);return _0x4b88ea;}function _0x301460(_0x5cccac){const _0x482464=_0x20ac;for(const [_0x15be40,_0x1fb964]of _0x252d7a)if(_0x1fb964&&_0x1fb964[_0x482464(0x263)]===_0x5cccac)_0x252d7a[_0x482464(0x6f8)](_0x15be40);for(const [_0x52c095,_0x1922dc]of _0x213668)if(_0x1922dc===_0x5cccac)_0x213668[_0x482464(0x6f8)](_0x52c095);for(const [_0x3425fe,_0x39c08a]of _0x393185)_0x39c08a===_0x5cccac&&(_0x393185[_0x482464(0x6f8)](_0x3425fe),_0x358ecb[_0x482464(0x6f8)](_0x3425fe));if(_0x58b375===_0x5cccac)_0x58b375=null;}function _0x537a0c(_0xebc9d0,_0x1b8f70){const _0x28a609=_0x20ac;_0x252d7a[_0x28a609(0x398)](_0xebc9d0,_0x1b8f70);}function _0xcbb255(_0x2be5cd){const _0x26e4ee=_0x20ac;if(_0x2be5cd&&typeof _0x2be5cd===_0x26e4ee(0x86d)&&Object['keys'](_0x2be5cd)[_0x26e4ee(0x2f6)]===0x1&&_0x2be5cd[_0x26e4ee(0x3fa)]!==undefined)return _0x358ecb['get'](_0x2be5cd[_0x26e4ee(0x3fa)]);return _0x2be5cd;}function _0x57e881(_0x26b312){const _0x5e793a=_0x20ac;let _0x319553=![],_0x23f8b5=![],_0x54547a;_0x26b312[_0x5e793a(0x8a9)](_0x129618=>{_0x319553=!![],_0x54547a=_0x129618;},_0x3f8991=>{_0x319553=!![],_0x23f8b5=!![],_0x54547a=_0x3f8991;});for(let _0x31c64f=0x0;_0x31c64f<0x2710&&!_0x319553;_0x31c64f++)process[_0x5e793a(0x71f)]();if(!_0x319553)return _0x26b312['then'](undefined,_0x2daa51=>{const _0x3571c8=_0x5e793a;try{process['emitWarning'](_0x3571c8(0x2cc)+(_0x2daa51&&_0x2daa51['message']?_0x2daa51[_0x3571c8(0x5e1)]:_0x2daa51));}catch{}}),undefined;if(_0x23f8b5)throw _0x54547a;return _0x54547a;}function _0x352410(_0x181ff0,_0xfc63e8,_0x9744ad){const _0x335280=_0x20ac,_0x521e45=_0x2f25df(_0x181ff0),_0x17f0a7=_0x252d7a[_0x335280(0x4ff)](_0xfc63e8);try{const _0x498663=_0x521e45(_0x9744ad,{'okdb':_0x17f0a7&&_0x17f0a7[_0x335280(0x263)],'env':_0x17f0a7});if(_0x498663&&typeof _0x498663['then']===_0x335280(0x5c4))_0x57e881(_0x498663);}catch(_0x2858bf){if(_0x2858bf&&_0x2858bf[_0x335280(0x7a7)]===!![]&&_0x2858bf[_0x335280(0x22a)]!==_0x335280(0x8a2)){const _0x4153a2=new Error(_0x2858bf[_0x335280(0x5e1)]);_0x4153a2['code']=_0x335280(0x8a2);throw _0x4153a2;}throw _0x2858bf;}}const _0x1db911=new Map();function _0xfd303e(_0x3bc264,_0xcfb42a,_0x108b6a,_0xf61a28,_0x40f2cb,_0x553575){const _0x384c17=_0x20ac,_0x3cc5ee=_0x2f25df(_0x3bc264),_0x3556db=(_0x252d7a['get'](_0x553575)||{})[_0x384c17(0x263)]||_0x58b375,_0x19933c=new AbortController(),_0x5ed1a8=(_0x25158d,..._0x6b8caf)=>_0x3556db[_0x384c17(0x7b0)](_0x384c17(0x44d),_0x384c17(0x3e4),_0x25158d,_0x6b8caf,![]),_0x238956={'okdb':_0x3556db,'env':_0x252d7a['get'](_0x553575)||null,'job':_0xf61a28,'jobId':_0x40f2cb,'signal':_0x19933c[_0x384c17(0x205)],'heartbeat':()=>_0x5ed1a8(_0x384c17(0x53b),_0x108b6a),'markProgress':_0x41088b=>_0x5ed1a8(_0x384c17(0x4f4),_0x108b6a,_0x41088b),'log':(_0x2292a4,_0x4fc249)=>_0x5ed1a8(_0x384c17(0x481),_0x108b6a,_0x2292a4,_0x4fc249)};_0x1db911['set'](_0x108b6a,{'ctrl':_0x19933c,'call':_0x5ed1a8});const _0x19db41=()=>{const _0x1e779d=_0x384c17;_0x1db911[_0x1e779d(0x6f8)](_0x108b6a);try{_0x5ed1a8(_0x1e779d(0x1c9),_0x108b6a);}catch{}};let _0x15a8cf;try{_0x15a8cf=_0x3cc5ee(_0xcfb42a,_0x238956);}catch(_0x15e60f){_0x19db41();throw _0x15e60f;}if(_0x15a8cf&&typeof _0x15a8cf['then']===_0x384c17(0x5c4)){const _0x1c8a16=_0x3540a8(_0x15a8cf);return _0x15a8cf['then'](_0x19db41,_0x19db41),{'$token':_0x1c8a16};}return _0x19db41(),_0x15a8cf;}function _0x1d2a76(){const _0x398b14=_0x20ac;for(const [_0x5f09de,_0x1bfe9b]of _0x1db911){if(_0x1bfe9b['ctrl'][_0x398b14(0x205)]['aborted'])continue;let _0x1dbb31;try{_0x1dbb31=_0x1bfe9b['call']('ctxSignal',_0x5f09de);}catch{continue;}if(_0x1dbb31&&_0x1dbb31['aborted']){const {OKDBError:_0x899617}=requireErrors();_0x1bfe9b[_0x398b14(0x70a)]['abort'](new _0x899617(_0x1dbb31[_0x398b14(0x5e1)],_0x1dbb31[_0x398b14(0x22a)]));}}}let _0x58b375=null;function _0x2385e8(_0x58ea62){_0x58b375=_0x58ea62;}function _0x215ee0(_0x343ce9,_0xf52dc1,_0x45b1e5,_0x313ef1,_0x42f8e5,_0x1cacc6,_0x177c5a){const _0x34d0cd=_0x20ac,_0x2bee3c=_0x2f25df(_0x343ce9),_0x5d2578=_0x252d7a['get'](_0x45b1e5);try{const _0x1e5510=_0xf52dc1?_0x2bee3c(_0x42f8e5,_0x1cacc6):_0x2bee3c({'env':_0x5d2578,'okdb':_0x5d2578&&_0x5d2578[_0x34d0cd(0x263)],'payload':_0xcbb255(_0x313ef1)},_0x42f8e5,_0x1cacc6);if(_0x1e5510&&typeof _0x1e5510[_0x34d0cd(0x8a9)]===_0x34d0cd(0x5c4)){if(_0x1cacc6&&_0x1cacc6[_0x34d0cd(0x851)]===_0x34d0cd(0x2c7))_0x1e5510['then'](undefined,()=>{});else{if(_0x177c5a){const _0x2832ff=_0x4f2e77(_0x1e5510);if(_0x2832ff===0x0)return null;return{'$token':_0x2832ff};}else _0x57e881(_0x1e5510);}}}catch(_0x49e44e){if(_0x49e44e&&_0x49e44e[_0x34d0cd(0x7a7)]===!![]&&_0x49e44e[_0x34d0cd(0x22a)]!==_0x34d0cd(0x8a2)){const _0x526606=new Error(_0x49e44e[_0x34d0cd(0x5e1)]);_0x526606[_0x34d0cd(0x22a)]=_0x34d0cd(0x8a2);throw _0x526606;}throw _0x49e44e;}return null;}function _0x4f2e77(_0x3fdc72){const _0x3b1f0f=_0x20ac;let _0x3aadd3=_0x3b1f0f(0x73b),_0x25c608;_0x3fdc72[_0x3b1f0f(0x8a9)](_0x42064f=>{_0x3aadd3='ok',_0x25c608=_0x42064f;},_0x155ee6=>{_0x3aadd3='err',_0x25c608=_0x155ee6;});for(let _0x1d3b2c=0x0;_0x1d3b2c<0x64&&_0x3aadd3===_0x3b1f0f(0x73b);_0x1d3b2c++)process[_0x3b1f0f(0x71f)]();if(_0x3aadd3==='ok')return 0x0;const _0x186bd5=_0x489f72++,_0x1d7e57={'state':_0x3aadd3,'value':_0x25c608};_0x112063[_0x3b1f0f(0x398)](_0x186bd5,_0x1d7e57);if(_0x3aadd3===_0x3b1f0f(0x73b))_0x3fdc72[_0x3b1f0f(0x8a9)](_0x543066=>{const _0x4e90ff=_0x3b1f0f;_0x1d7e57[_0x4e90ff(0x827)]='ok',_0x1d7e57[_0x4e90ff(0x658)]=_0x543066,_0x5c2b3e();},_0x52addb=>{const _0x1cf0a2=_0x3b1f0f;_0x1d7e57[_0x1cf0a2(0x827)]='err',_0x1d7e57[_0x1cf0a2(0x658)]=_0x52addb,_0x5c2b3e();});return _0x186bd5;}function _0x35e51f(_0x3951c8){const _0x38aed2=_0x20ac;let _0x51b3a3=_0x572b11['get'](_0x3951c8);return _0x51b3a3===undefined&&(_0x51b3a3=_0xa4dc89++,_0x572b11[_0x38aed2(0x398)](_0x3951c8,_0x51b3a3),_0x24e4e9[_0x38aed2(0x398)](_0x51b3a3,{'fn':_0x3951c8,'refs':0x0})),_0x24e4e9[_0x38aed2(0x4ff)](_0x51b3a3)[_0x38aed2(0x613)]++,_0x51b3a3;}function _0x1a087f(_0x1f6033){const _0x11a523=_0x20ac,_0x5521e3=_0x24e4e9['get'](_0x1f6033);if(!_0x5521e3)return;--_0x5521e3[_0x11a523(0x613)]<=0x0&&(_0x24e4e9[_0x11a523(0x6f8)](_0x1f6033),_0x572b11[_0x11a523(0x6f8)](_0x5521e3['fn']));}function _0x2f25df(_0x5453c5){const _0x34ac43=_0x20ac,_0x51642c=_0x24e4e9[_0x34ac43(0x4ff)](_0x5453c5);if(!_0x51642c)throw new Error(_0x34ac43(0x46e)+_0x5453c5);return _0x51642c['fn'];}function _0x3540a8(_0x34e414){const _0x3aa6ac=_0x20ac;if(_0x34e414&&typeof _0x34e414['then']===_0x3aa6ac(0x5c4)){const _0x28c5f6=_0x489f72++,_0x8883a3={'state':_0x3aa6ac(0x73b),'value':undefined};return _0x112063[_0x3aa6ac(0x398)](_0x28c5f6,_0x8883a3),_0x34e414[_0x3aa6ac(0x8a9)](_0x48313e=>{const _0x129227=_0x3aa6ac;_0x8883a3['state']='ok',_0x8883a3[_0x129227(0x658)]=_0x48313e,_0x5c2b3e();},_0x2bb6df=>{const _0x14d8e0=_0x3aa6ac;_0x8883a3['state']=_0x14d8e0(0x582),_0x8883a3[_0x14d8e0(0x658)]=_0x2bb6df,_0x5c2b3e();}),_0x28c5f6;}return 0x0;}let _0x3fa2ab=()=>{},_0x4d7c27=null;function _0x1ac1f4(_0x5a579d,_0x7b0689=null){_0x3fa2ab=_0x5a579d,_0x4d7c27=_0x7b0689;}function _0xe1eeff(_0x25ff53){return _0x4d7c27===_0x25ff53;}function _0x5c2b3e(){_0x3fa2ab();}function _0x1c8fa3(_0x1ca238){const _0x46fcbc=_0x20ac,_0x2d10fc=_0x112063['get'](_0x1ca238);if(!_0x2d10fc)return{'state':_0x46fcbc(0x582),'error':{'message':'unknown\x20promise\x20token'}};if(_0x2d10fc['state']===_0x46fcbc(0x73b))return{'state':_0x46fcbc(0x73b)};_0x112063[_0x46fcbc(0x6f8)](_0x1ca238);if(_0x2d10fc['state']==='ok')return{'state':'ok','value':_0x2d10fc[_0x46fcbc(0x658)]};const _0x182955=_0x2d10fc[_0x46fcbc(0x658)];return{'state':'err','error':{'message':_0x182955&&_0x182955[_0x46fcbc(0x5e1)]!=null?String(_0x182955[_0x46fcbc(0x5e1)]):String(_0x182955),'stack':_0x182955&&_0x182955[_0x46fcbc(0x762)],'code':_0x182955&&_0x182955[_0x46fcbc(0x22a)],'status':_0x182955&&typeof _0x182955[_0x46fcbc(0x392)]===_0x46fcbc(0x46d)?_0x182955[_0x46fcbc(0x392)]:undefined,'hold':!!(_0x182955&&_0x182955[_0x46fcbc(0x7a7)]===!![])}};}function _0x5d5134(_0x4ff2ae,_0x5c4940){const _0x132bfe=_0x20ac;_0x51dfc7[_0x132bfe(0x398)](_0x4ff2ae,_0x5c4940);}function _0x3075c7(_0x53c3a0){const _0x5c63bf=_0x20ac;_0x51dfc7[_0x5c63bf(0x6f8)](_0x53c3a0);}let _0x428d6d=0x0;function _0x5483f6(){return _0x428d6d>0x0;}function _0x351bcc(){const _0x437803=_0x20ac;_0x428d6d++;try{return _0x36f53c[_0x437803(0x2d6)](undefined,arguments);}finally{_0x428d6d--;}}function _0x36f53c(_0x341742,_0x59fe1b,_0x26cb05,_0x104885,_0x1b07d4,_0x3257ec){const _0x347e36=_0x20ac;switch(_0x341742){case _0x347e36(0x318):return _0x35e51f(_0x59fe1b);case'unreg':return _0x1a087f(_0x59fe1b);case'call':{const _0x1e1f38=Array['prototype'][_0x347e36(0x5d1)][_0x347e36(0x765)](arguments,0x2),_0x5aa8e5=_0x2f25df(_0x59fe1b)[_0x347e36(0x2d6)](undefined,_0x1e1f38);return _0x5aa8e5&&typeof _0x5aa8e5[_0x347e36(0x8a9)]===_0x347e36(0x5c4)?_0x57e881(_0x5aa8e5):_0x5aa8e5;}case _0x347e36(0x688):{const _0x21f380=Array[_0x347e36(0x3c3)][_0x347e36(0x5d1)][_0x347e36(0x765)](arguments,0x2),_0x5b4028=_0x2f25df(_0x59fe1b)[_0x347e36(0x2d6)](undefined,_0x21f380);if(_0x5b4028&&typeof _0x5b4028[_0x347e36(0x8a9)]==='function')return{'$token':_0x3540a8(_0x5b4028)};return{'$value':_0x5b4028===undefined?null:_0x5b4028,'$undef':_0x5b4028===undefined};}case'event':{const _0x4dc00e=_0x51dfc7[_0x347e36(0x4ff)](_0x59fe1b);if(_0x4dc00e)_0x4dc00e[_0x347e36(0x5e0)](_0x26cb05,_0x104885);return undefined;}case'log':{const _0x1b786d=_0x51dfc7[_0x347e36(0x4ff)](_0x59fe1b);if(_0x1b786d)_0x1b786d[_0x347e36(0x601)](_0x26cb05);return undefined;}case'handler':return _0x215ee0(_0x59fe1b,_0x26cb05,_0x104885,_0x1b07d4,_0x3257ec,arguments[0x6],arguments[0x7]);case _0x347e36(0x27e):return _0x352410(_0x59fe1b,_0x26cb05,_0x104885);case _0x347e36(0x87b):return _0xfd303e(_0x59fe1b,_0x26cb05,_0x104885,_0x1b07d4,_0x3257ec,arguments[0x6]);case'driver':return _0x78eb7e['apply'](null,Array[_0x347e36(0x3c3)][_0x347e36(0x5d1)][_0x347e36(0x765)](arguments,0x1));case'api':return _0x17ede7(_0x59fe1b,_0x26cb05,_0x104885);case'resolve':return _0x1c8fa3(_0x59fe1b);case _0x347e36(0x57e):{const _0x581921=((async()=>{const _0x403a9b=_0x347e36,_0x1d7c8f=await globalThis['fetch'](_0x59fe1b);if(!_0x1d7c8f['ok']){const _0x458241=new Error(_0x403a9b(0x4ab)+_0x1d7c8f[_0x403a9b(0x392)]);_0x458241[_0x403a9b(0x22a)]=_0x403a9b(0x88a);throw _0x458241;}return _0x1d7c8f[_0x403a9b(0x7c1)]();})());return _0x57e881(_0x581921)??null;}case _0x347e36(0x5ab):return _0x345655(_0x59fe1b,_0x26cb05,_0x104885);case _0x347e36(0x7d6):return _0x5d3bae(_0x59fe1b,_0x26cb05,_0x104885);case _0x347e36(0x501):return _0x507d90(_0x59fe1b,_0x26cb05,_0x104885);default:throw new Error(_0x347e36(0x5c9)+_0x341742);}}return bridge_1={'inNativeCall':_0x5483f6,'regObject':_0x52940b,'checkSignals':_0x1d2a76,'setCurrentDb':_0x2385e8,'forgetDb':_0x301460,'storePayload':_0x2ef744,'registerEnv':_0x537a0c,'resolvePayload':_0xcbb255,'bridge':_0x351bcc,'reg':_0x35e51f,'unreg':_0x1a087f,'fnOf':_0x2f25df,'track':_0x3540a8,'resolve':_0x1c8fa3,'registerTarget':_0x5d5134,'unregisterTarget':_0x3075c7,'setKick':_0x1ac1f4,'kickOwnedBy':_0xe1eeff},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1b372e=_0x1c5fdf;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x2324cf}=requireErrors(),_0x15f392=requireBridge(),_0x29c8af=new Map();let _0x405357=null;function _0x5cf675(_0x2c0f85){if(_0x405357)return;_0x405357=_0x2c0f85,_0x2c0f85['setFlushNotify'](_0x24debe);}function _0x24debe(){const _0xf75b0d=_0x20ac,_0x2679da=_0x405357['settledTickets']();for(const _0x3bf9fe of _0x2679da){const _0x2b4a7a=_0x29c8af[_0xf75b0d(0x4ff)](_0x3bf9fe);_0x2b4a7a&&(_0x29c8af['delete'](_0x3bf9fe),_0x2b4a7a());}}function _0x5d614d(_0xdafd92,_0x31776c){const _0x5727eb=_0x20ac;_0x29c8af[_0x5727eb(0x398)](_0xdafd92,_0x31776c);}class _0x265a45{constructor(_0x27cf81){const _0x3481a6=_0x20ac;this['db']=_0x27cf81,this['queue']=[],this['scheduled']=![],this[_0x3481a6(0x837)]=![],this['inflight']=new Set();}[_0x1b372e(0x65c)](_0x5850ba,_0x127b47,_0xf501d8,_0x32ca7d){const _0x5bdfe4=_0x1b372e;if(_0x15f392[_0x5bdfe4(0x30c)]())try{return Promise[_0x5bdfe4(0x4a2)](this['db'][_0x5bdfe4(0x7b0)](_0x5850ba,_0x127b47,_0xf501d8,_0x32ca7d));}catch(_0x4ab4aa){return Promise['reject'](_0x4ab4aa);}const _0x544369=new Promise((_0x173a01,_0x535302)=>{const _0x56eb84=_0x5bdfe4;this['queue'][_0x56eb84(0x3c0)]({'item':[_0x5850ba,_0x127b47,_0xf501d8,_0x32ca7d],'resolve':_0x173a01,'reject':_0x535302});});this[_0x5bdfe4(0x676)][_0x5bdfe4(0x3cc)](_0x544369);const _0xb1e7f3=()=>this['inflight']['delete'](_0x544369);return _0x544369[_0x5bdfe4(0x8a9)](_0xb1e7f3,_0xb1e7f3),!this['scheduled']&&(this[_0x5bdfe4(0x179)]=!![],setImmediate(()=>{const _0x1a39b4=_0x5bdfe4;this[_0x1a39b4(0x179)]=![],this['commit']();})),_0x544369;}[_0x1b372e(0x715)](){const _0x228dda=_0x1b372e;if(!this[_0x228dda(0x44d)][_0x228dda(0x2f6)])return;if(this[_0x228dda(0x837)]){!this[_0x228dda(0x179)]&&(this[_0x228dda(0x179)]=!![],setImmediate(()=>{const _0x4019e0=_0x228dda;this['scheduled']=![],this[_0x4019e0(0x715)]();}));return;}const _0x5b9e01=this['queue'];this[_0x228dda(0x44d)]=[],this[_0x228dda(0x4e3)](_0x5b9e01);}['_run'](_0x4cfc76){const _0x5db233=_0x1b372e;let _0x32dd8a;this['inBatch']=!![];try{_0x32dd8a=this['db'][_0x5db233(0x487)][_0x5db233(0x1f0)](_0x4cfc76[_0x5db233(0x4ba)](_0x3911fc=>_0x3911fc[_0x5db233(0x420)]));}catch(_0x29a8e1){this[_0x5db233(0x837)]=![];if(_0x4cfc76[_0x5db233(0x2f6)]>0x1){for(const _0x25094d of _0x4cfc76)this['_run']([_0x25094d]);return;}const _0x33eac6=_0x2324cf(_0x29a8e1);for(const _0x22332b of _0x4cfc76)_0x22332b['reject'](_0x33eac6);return;}finally{this[_0x5db233(0x837)]=![];}try{this['db'][_0x5db233(0x51b)][_0x5db233(0x577)]();}catch{}const [_0x8611be,_0x626992]=_0x32dd8a;_0x5d614d(_0x626992,()=>{const _0x48e878=_0x5db233;for(let _0x31864b=0x0;_0x31864b<_0x4cfc76[_0x48e878(0x2f6)];_0x31864b++){const _0x7f4d71=_0x8611be[_0x31864b];if(_0x7f4d71&&_0x7f4d71[0x0])_0x4cfc76[_0x31864b]['resolve'](_0x7f4d71[0x1]);else _0x4cfc76[_0x31864b][_0x48e878(0x87c)](_0x2324cf(_0x7f4d71?_0x7f4d71[0x1]:new Error(_0x48e878(0x1be))));}});}async['drain'](){const _0x465460=_0x1b372e;this[_0x465460(0x715)]();while(this[_0x465460(0x676)][_0x465460(0x4ad)]){await Promise[_0x465460(0x30f)]([...this[_0x465460(0x676)]]),this[_0x465460(0x715)]();}let _0x4c0e50;try{_0x4c0e50=this['db'][_0x465460(0x487)]['flushTicket']();}catch{return;}await new Promise(_0x3a25fc=>_0x5d614d(_0x4c0e50,_0x3a25fc));}}return writebatch={'install':_0x5cf675,'WriteBatch':_0x265a45,'whenSettled':_0x5d614d},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0xe2cabb=_0x1c5fdf;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x268787=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x5be983{constructor(_0x8c9dc7){const _0x2d6c34=_0x20ac;this[_0x2d6c34(0x638)]=_0x8c9dc7,this[_0x2d6c34(0x6f5)]=null,this[_0x2d6c34(0x49b)]=null,this[_0x2d6c34(0x843)]=![],this[_0x2d6c34(0x35c)]=![],this['pumping']=![],this[_0x2d6c34(0x5ae)]=![],this[_0x2d6c34(0x271)]=0x0,this[_0x2d6c34(0x559)]=[],this[_0x2d6c34(0x1f5)]=[];}[_0xe2cabb(0x323)](_0x3f71e){return new Promise(_0x16f87e=>{const _0x42ddcb=setTimeout(_0x3e5122,_0x3f71e);function _0x3e5122(){clearTimeout(_0x42ddcb),_0x16f87e();}this['turnWaiters']['push'](_0x3e5122);});}[_0xe2cabb(0x293)](){const _0x1053d2=_0xe2cabb;if(this[_0x1053d2(0x1f5)]['length']===0x0)return;const _0x1d6ce5=this[_0x1053d2(0x1f5)];this[_0x1053d2(0x1f5)]=[];for(const _0x2ee953 of _0x1d6ce5)_0x2ee953();}[_0xe2cabb(0x84e)](){const _0xe2bd5=_0xe2cabb;this[_0xe2bd5(0x35c)]=![],this[_0xe2bd5(0x577)]();}[_0xe2cabb(0x584)](){const _0x1aa9e2=_0xe2cabb;this[_0x1aa9e2(0x35c)]=!![];if(this[_0x1aa9e2(0x6f5)])clearTimeout(this[_0x1aa9e2(0x6f5)]);if(this[_0x1aa9e2(0x49b)])clearImmediate(this[_0x1aa9e2(0x49b)]);this[_0x1aa9e2(0x6f5)]=this[_0x1aa9e2(0x49b)]=null,this['_settleWaiters']();}[_0xe2cabb(0x577)](){const _0x2324c0=_0xe2cabb;if(this[_0x2324c0(0x35c)]||this[_0x2324c0(0x49b)])return;this['timer']&&(clearTimeout(this[_0x2324c0(0x6f5)]),this['timer']=null),this['immediate']=setImmediate(()=>{const _0x1b9ff8=_0x2324c0;this[_0x1b9ff8(0x49b)]=null,this[_0x1b9ff8(0x45e)]();});}[_0xe2cabb(0x45e)](){const _0x2b970a=_0xe2cabb;if(this[_0x2b970a(0x35c)]||this[_0x2b970a(0x7dd)]){this['dirty']=!![];return;}this[_0x2b970a(0x7dd)]=!![];let _0x56b4d8;try{this['turns']++,_0x56b4d8=this[_0x2b970a(0x638)][_0x2b970a(0x440)]();if(this[_0x2b970a(0x4c8)])this[_0x2b970a(0x4c8)]();}catch(_0x3bd9ac){_0x56b4d8=_0x268787,process[_0x2b970a(0x4a3)](()=>{throw _0x3bd9ac;});}finally{this[_0x2b970a(0x7dd)]=![],this[_0x2b970a(0x293)]();}if(this['stopped']||_0x56b4d8===-0x2)return;if(this[_0x2b970a(0x5ae)])return this['dirty']=![],this[_0x2b970a(0x577)]();const _0x24d597=_0x56b4d8<0x0?_0x268787:Math['max'](0x0,Math[_0x2b970a(0x3d2)](_0x56b4d8,_0x268787));if(_0x24d597<=0x0)return this[_0x2b970a(0x577)]();this[_0x2b970a(0x6f5)]=setTimeout(()=>{const _0x51628e=_0x2b970a;this[_0x51628e(0x6f5)]=null,this['turn']();},Math[_0x2b970a(0x6c1)](_0x24d597));if(this[_0x2b970a(0x6f5)][_0x2b970a(0x54c)])this[_0x2b970a(0x6f5)]['unref']();}}return pump={'Pumper':_0x5be983},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x28fe76=_0x1c5fdf;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x150518=Symbol[_0x28fe76(0x22d)](_0x28fe76(0x757)),_0x1aac74={'value':null,'done':!![]},_0x139e5f={'value':null,'done':!![]};!Symbol[_0x28fe76(0x6a4)]&&(Symbol[_0x28fe76(0x6a4)]=Symbol[_0x28fe76(0x22d)](_0x28fe76(0x540)));const _0x4d51f1={};class _0x47cd3f{constructor(_0xa8b09a){const _0x2858c0=_0x28fe76;_0xa8b09a&&(this['iterate']=_0xa8b09a[Symbol[_0x2858c0(0x84c)]][_0x2858c0(0x818)](_0xa8b09a));}[_0x28fe76(0x4ba)](_0x47ed49){const _0xca4412=_0x28fe76;let _0x1827fc=this,_0x17e7ac=new _0x47cd3f();return _0x17e7ac[_0xca4412(0x7b7)]=(_0x4d3796=_0x4d51f1)=>{const _0x4cb47b=_0xca4412,{async:_0x204d05}=_0x4d3796;let _0x4f942b=_0x1827fc[_0x204d05?Symbol['asyncIterator']:Symbol['iterator']](_0x4d3796);if(!_0x204d05)_0x1827fc[_0x4cb47b(0x317)]=!![];let _0x3ee321=-0x1;return{'next'(_0x232e1c){const _0x423adb=_0x4cb47b;let _0x472228;do{let _0x27bb47;try{if(_0x232e1c)_0x27bb47=_0x232e1c,_0x232e1c=null;else{_0x3ee321++,_0x27bb47=_0x4f942b['next']();if(_0x27bb47[_0x423adb(0x8a9)])return!_0x204d05&&this[_0x423adb(0x6d9)](new Error(_0x423adb(0x40b))),_0x27bb47[_0x423adb(0x8a9)](_0x392222=>this[_0x423adb(0x60b)](_0x392222),_0xf5de30=>{return this['throw'](_0xf5de30);});}if(_0x27bb47['done']===!![]){this[_0x423adb(0x1e2)]=!![];if(_0x17e7ac[_0x423adb(0x369)])_0x17e7ac[_0x423adb(0x369)]();return _0x27bb47;}try{_0x472228=_0x47ed49['call'](_0x1827fc,_0x27bb47[_0x423adb(0x658)],_0x3ee321);if(_0x472228&&_0x472228[_0x423adb(0x8a9)]&&_0x204d05)return _0x472228[_0x423adb(0x8a9)](_0x70cbb8=>_0x70cbb8===_0x150518?this[_0x423adb(0x60b)]():{'value':_0x70cbb8},_0x41f2a6=>{const _0x588d00=_0x423adb;if(_0x4d3796['continueOnRecoverableError'])_0x41f2a6[_0x588d00(0x3ee)]=!![];return this['throw'](_0x41f2a6);});}catch(_0x80c142){if(_0x4d3796[_0x423adb(0x5c0)])_0x80c142[_0x423adb(0x3ee)]=!![];throw _0x80c142;}}catch(_0x4ae7c1){if(_0x17e7ac[_0x423adb(0x1c4)])try{_0x472228=_0x17e7ac['handleError'](_0x4ae7c1,_0x3ee321);}catch(_0x3014f3){return this['throw'](_0x3014f3);}else return this['throw'](_0x4ae7c1);}}while(_0x472228===_0x150518);if(_0x472228===_0x1aac74)return this[_0x423adb(0x523)]();return{'value':_0x472228};},'return'(_0x8ed0f1){const _0x3736af=_0x4cb47b;if(!this[_0x3736af(0x1e2)]){_0x139e5f[_0x3736af(0x658)]=_0x8ed0f1,this[_0x3736af(0x1e2)]=!![];if(_0x17e7ac[_0x3736af(0x369)])_0x17e7ac[_0x3736af(0x369)]();_0x4f942b[_0x3736af(0x523)]?.();}return _0x139e5f;},'throw'(_0x43a17e){const _0xb53d7c=_0x4cb47b;if(_0x43a17e[_0xb53d7c(0x3ee)]){if(_0x17e7ac[_0xb53d7c(0x22e)])try{return{'value':_0x17e7ac[_0xb53d7c(0x22e)](_0x43a17e)};}catch(_0x1e34e4){this[_0xb53d7c(0x523)]();throw _0x1e34e4;}if(_0x4d3796[_0xb53d7c(0x5c0)])throw _0x43a17e;}this[_0xb53d7c(0x523)]();throw _0x43a17e;}};},_0x17e7ac;}[Symbol[_0x28fe76(0x6a4)]](_0x812fd5){const _0x202853=_0x28fe76;if(_0x812fd5)_0x812fd5={..._0x812fd5,'async':!![]};else _0x812fd5={'async':!![]};return this[_0x202853(0x84c)]=this['iterate'](_0x812fd5);}[Symbol['iterator']](_0x5e8407){const _0x589172=_0x28fe76;return this[_0x589172(0x84c)]=this['iterate'](_0x5e8407);}[_0x28fe76(0x7f8)](_0x2f9d33){const _0x4824c0=_0x28fe76;let _0x34bc60=this[_0x4824c0(0x4ba)](_0x53a9c8=>{const _0x217851=_0x4824c0;let _0x2f533c=_0x2f9d33(_0x53a9c8);if(_0x2f533c?.['then'])return _0x2f533c[_0x217851(0x8a9)](_0x4edf3d=>_0x4edf3d?_0x53a9c8:_0x150518);else return _0x2f533c?_0x53a9c8:_0x150518;}),_0x2061d2=_0x34bc60[_0x4824c0(0x7b7)];return _0x34bc60[_0x4824c0(0x7b7)]=(_0x32918a=_0x4d51f1)=>{const _0x2c9bbd=_0x4824c0;if(_0x32918a[_0x2c9bbd(0x5c0)])_0x32918a={..._0x32918a,'continueOnRecoverableError':![]};return _0x2061d2(_0x32918a);},_0x34bc60;}['forEach'](_0x58dd08){const _0x5c61a6=_0x28fe76;let _0xfd2a6c=this[_0x5c61a6(0x84c)]=this[_0x5c61a6(0x7b7)](),_0x951cbb;while((_0x951cbb=_0xfd2a6c[_0x5c61a6(0x60b)]())[_0x5c61a6(0x1e2)]!==!![]){_0x58dd08(_0x951cbb[_0x5c61a6(0x658)]);}}[_0x28fe76(0x18e)](_0x5f2cd7){let _0x4d07db=new _0x47cd3f();return _0x4d07db['iterate']=(_0x5142a5=_0x4d51f1)=>{const _0x4da4e2=_0x20ac;let _0x453791=this['iterator']=this[_0x4da4e2(0x7b7)](_0x5142a5),_0x87f2bc=!![];function _0x4ee287(_0x710d4a){const _0xec8eba=_0x4da4e2;if(_0x87f2bc)try{_0x87f2bc=![],_0x453791=_0x5f2cd7[_0x5142a5[_0xec8eba(0x3e5)]?Symbol['asyncIterator']:Symbol['iterator']](),_0x710d4a=_0x453791[_0xec8eba(0x60b)]();if(_0x4d07db[_0xec8eba(0x369)]){if(_0x710d4a[_0xec8eba(0x8a9)]){if(!_0x5142a5[_0xec8eba(0x3e5)])throw new Error(_0xec8eba(0x40b));_0x710d4a[_0xec8eba(0x8a9)](_0x1f9a53=>{const _0xb9208b=_0xec8eba;if(_0x1f9a53['done']())_0x4d07db[_0xb9208b(0x369)]();},_0x1baf12=>{const _0x539db9=_0xec8eba;this[_0x539db9(0x523)]();throw _0x1baf12;});}else{if(_0x710d4a[_0xec8eba(0x1e2)])_0x4d07db['onDone']();}}}catch(_0x255ffa){this['throw'](_0x255ffa);}else{if(_0x4d07db[_0xec8eba(0x369)])_0x4d07db[_0xec8eba(0x369)]();}return _0x710d4a;}return{'next'(){const _0x56e065=_0x4da4e2;try{let _0x3e5a2c=_0x453791[_0x56e065(0x60b)]();if(_0x3e5a2c['then']){if(!_0x5142a5[_0x56e065(0x3e5)])throw new Error(_0x56e065(0x40b));return _0x3e5a2c[_0x56e065(0x8a9)](_0x10f3b8=>{const _0x27e300=_0x56e065;if(_0x10f3b8[_0x27e300(0x1e2)])return _0x4ee287(_0x10f3b8);return _0x10f3b8;});}if(_0x3e5a2c[_0x56e065(0x1e2)])return _0x4ee287(_0x3e5a2c);return _0x3e5a2c;}catch(_0x3381ec){this[_0x56e065(0x6d9)](_0x3381ec);}},'return'(_0x277cd7){const _0x44a3d3=_0x4da4e2;if(!this['done']){_0x139e5f[_0x44a3d3(0x658)]=_0x277cd7,this[_0x44a3d3(0x1e2)]=!![];if(_0x4d07db[_0x44a3d3(0x369)])_0x4d07db[_0x44a3d3(0x369)]();_0x453791[_0x44a3d3(0x523)]();}return _0x139e5f;},'throw'(_0x1311e0){const _0x1bddbc=_0x4da4e2;if(_0x5142a5['continueOnRecoverableError'])throw _0x1311e0;this[_0x1bddbc(0x523)]();throw _0x1311e0;}};},_0x4d07db;}['flatMap'](_0x127ea3){let _0x15b4e4=new _0x47cd3f();return _0x15b4e4['iterate']=(_0x1bf852=_0x4d51f1)=>{const _0x4eb14d=_0x20ac;let _0xe896b4=this[_0x4eb14d(0x84c)]=this[_0x4eb14d(0x7b7)](_0x1bf852),_0x52c832;return{'next'(_0x20d07a){const _0x597d5b=_0x4eb14d;try{do{if(_0x52c832){let _0x2ea251;if(_0x20d07a)_0x2ea251=_0x20d07a,_0x20d07a=undefined;else _0x2ea251=_0x52c832['next']();if(_0x2ea251[_0x597d5b(0x8a9)]){if(!_0x1bf852['async'])throw new Error(_0x597d5b(0x40b));return _0x2ea251['then'](_0xdd2031=>this[_0x597d5b(0x60b)](_0xdd2031));}if(!_0x2ea251['done'])return _0x2ea251;}let _0xfdee24;if(_0x20d07a!=undefined)_0xfdee24=_0x20d07a,_0x20d07a=undefined;else _0xfdee24=_0xe896b4[_0x597d5b(0x60b)]();if(_0xfdee24[_0x597d5b(0x8a9)]){if(!_0x1bf852[_0x597d5b(0x3e5)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x52c832=undefined,_0xfdee24[_0x597d5b(0x8a9)](_0x415cc8=>this[_0x597d5b(0x60b)](_0x415cc8));}if(_0xfdee24[_0x597d5b(0x1e2)]){if(_0x15b4e4[_0x597d5b(0x369)])_0x15b4e4['onDone']();return _0xfdee24;}try{let _0x4bb39a=_0x127ea3(_0xfdee24[_0x597d5b(0x658)]);if(_0x4bb39a?.['then']){if(!_0x1bf852[_0x597d5b(0x3e5)])throw new Error(_0x597d5b(0x40b));return _0x4bb39a[_0x597d5b(0x8a9)](_0x4cde84=>{const _0x582a2d=_0x597d5b;return Array['isArray'](_0x4cde84)||_0x4cde84 instanceof _0x47cd3f?(_0x52c832=_0x4cde84[Symbol[_0x582a2d(0x84c)]](),this[_0x582a2d(0x60b)]()):(_0x52c832=null,{'value':_0x4cde84});},_0x230a96=>{const _0x9f6234=_0x597d5b;if(_0x1bf852[_0x9f6234(0x5c0)])_0x230a96[_0x9f6234(0x3ee)]=!![];this[_0x9f6234(0x6d9)](_0x230a96);});}if(Array[_0x597d5b(0x55b)](_0x4bb39a)||_0x4bb39a instanceof _0x47cd3f)_0x52c832=_0x4bb39a[Symbol[_0x597d5b(0x84c)]]();else return _0x52c832=null,{'value':_0x4bb39a};}catch(_0x836420){if(_0x1bf852[_0x597d5b(0x5c0)])_0x836420[_0x597d5b(0x3ee)]=!![];throw _0x836420;}}while(!![]);}catch(_0x5a0985){this[_0x597d5b(0x6d9)](_0x5a0985);}},'return'(){const _0x3117ad=_0x4eb14d;if(_0x15b4e4[_0x3117ad(0x369)])_0x15b4e4[_0x3117ad(0x369)]();if(_0x52c832)_0x52c832[_0x3117ad(0x523)]();return _0xe896b4[_0x3117ad(0x523)]();},'throw'(_0x3bedfe){const _0x480413=_0x4eb14d;if(_0x1bf852['continueOnRecoverableError'])throw _0x3bedfe;if(_0x15b4e4['onDone'])_0x15b4e4['onDone']();if(_0x52c832)_0x52c832[_0x480413(0x523)]();this[_0x480413(0x523)]();throw _0x3bedfe;}};},_0x15b4e4;}[_0x28fe76(0x5d1)](_0x152bee,_0x4f3a71){const _0xc064c6=_0x28fe76;let _0x3558ec=this[_0xc064c6(0x4ba)]((_0x53b94d,_0x52365d)=>{const _0x2d738b=_0xc064c6;if(_0x52365d<_0x152bee)return _0x150518;if(_0x52365d>=_0x4f3a71)return _0x1aac74[_0x2d738b(0x658)]=_0x53b94d,_0x1aac74;return _0x53b94d;});return _0x3558ec['handleError']=(_0x29d98b,_0x278b66)=>{if(_0x278b66<_0x152bee)return _0x150518;if(_0x278b66>=_0x4f3a71)return _0x1aac74;throw _0x29d98b;},_0x3558ec;}[_0x28fe76(0x37a)](_0x5ca8a1){const _0x3abc2d=_0x28fe76;if(typeof _0x5ca8a1!==_0x3abc2d(0x5c4))throw new TypeError(_0x3abc2d(0x75f));let _0x3a2711=this[_0x3abc2d(0x4ba)](_0x33b921=>{return _0x33b921;}),_0x369427=_0x3a2711['iterate'];return _0x3a2711['iterate']=(_0x1cfaac=_0x4d51f1)=>{return _0x369427({..._0x1cfaac,'continueOnRecoverableError':!![]});},_0x3a2711[_0x3abc2d(0x22e)]=_0x5ca8a1,_0x3a2711;}[_0x28fe76(0x60b)](){const _0x541eb5=_0x28fe76;if(!this[_0x541eb5(0x84c)])this[_0x541eb5(0x84c)]=this['iterate']();return this[_0x541eb5(0x84c)]['next']();}[_0x28fe76(0x7bc)](){const _0x11cbe7=_0x28fe76;if(this['asArray']&&this[_0x11cbe7(0x6d3)][_0x11cbe7(0x175)])return this[_0x11cbe7(0x6d3)];const _0x469e8f=new Error(_0x11cbe7(0x334));_0x469e8f[_0x11cbe7(0x761)]=this[_0x11cbe7(0x6d3)];throw _0x469e8f;}get[_0x28fe76(0x6d3)](){const _0x289e7c=_0x28fe76;if(this[_0x289e7c(0x467)])return this[_0x289e7c(0x467)];let _0x4d3249=new Promise((_0x2209d5,_0x1b1889)=>{const _0x5219d6=_0x289e7c;let _0x3ae73e=this[_0x5219d6(0x7b7)](!![]),_0x5f59aa=[],_0x2a9c42=this;Object['defineProperty'](_0x5f59aa,'iterable',{'value':_0x2a9c42});function _0x86e6c6(_0x11fb21){const _0x1650a4=_0x5219d6;while(_0x11fb21['done']!==!![]){if(_0x11fb21[_0x1650a4(0x8a9)])return _0x11fb21[_0x1650a4(0x8a9)](_0x86e6c6);else _0x5f59aa[_0x1650a4(0x3c0)](_0x11fb21[_0x1650a4(0x658)]);_0x11fb21=_0x3ae73e[_0x1650a4(0x60b)]();}_0x2209d5(_0x2a9c42[_0x1650a4(0x467)]=_0x5f59aa);}_0x86e6c6(_0x3ae73e[_0x5219d6(0x60b)]());});return _0x4d3249['iterable']=this,this[_0x289e7c(0x467)]||(this[_0x289e7c(0x467)]=_0x4d3249);}['resolveData'](){const _0xc57e29=_0x28fe76;return this[_0xc57e29(0x6d3)];}['at'](_0x47f883){for(let _0xfe7d5b of this){if(_0x47f883--===0x0)return _0xfe7d5b;}}}return _0x47cd3f[_0x28fe76(0x3c3)]['DONE']=_0x1aac74,dist$1[_0x28fe76(0x2f8)]=_0x47cd3f,dist$1[_0x28fe76(0x7d4)]=_0x150518,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x3159ad=_0x1c5fdf;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x21ad10}=requireDist$1(),_0x5397fc=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x36ed62=Math[_0x3159ad(0x3d2)](_0x5397fc,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x4f9041=new Set([_0x3159ad(0x655),_0x3159ad(0x807),_0x3159ad(0x71e),_0x3159ad(0x356)]),_0x21c817=Math[_0x3159ad(0x3d2)](_0x36ed62,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x58c240=0x4,_0x216579=(_0x2cbaeb,_0x32d54f=_0x5397fc)=>Math['min'](_0x32d54f,_0x2cbaeb*_0x58c240),_0x4ac623={'value':undefined,'done':!![]};function _0x5ba502(_0x90dcea){const _0x46cddd=_0x3159ad,_0x4ef77b=new _0x21ad10();return _0x4ef77b[_0x46cddd(0x7b7)]=()=>{let _0x31fe30=0x0;return{'next'(){const _0x7d3cc9=_0x20ac;return _0x31fe30<_0x90dcea[_0x7d3cc9(0x2f6)]?{'value':_0x90dcea[_0x31fe30++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x4fb954=_0x20ac;return _0x31fe30=_0x90dcea[_0x4fb954(0x2f6)],{'value':undefined,'done':!![]};},'throw'(){const _0x3e2cc2=_0x20ac;return _0x31fe30=_0x90dcea[_0x3e2cc2(0x2f6)],{'value':undefined,'done':!![]};}};},_0x4ef77b;}const _0x293a52=_0x4a5c7f=>typeof _0x4a5c7f===_0x3159ad(0x46d)&&!Number['isNaN'](_0x4a5c7f)?Math[_0x3159ad(0x6c5)](0x0,Math[_0x3159ad(0x6c1)](_0x4a5c7f)):Infinity,_0x22c18f=_0x3cd47d=>typeof _0x3cd47d===_0x3159ad(0x46d)?Math[_0x3159ad(0x6c5)](0x0,Math['trunc'](_0x3cd47d))||0x0:0x0;function _0x57e32e(_0x183b75,_0x324013,_0x5e2932,_0x541743={}){const _0x161e5f=_0x3159ad,_0x2eee7a=new _0x21ad10(),_0x5099db=(_0x541743[_0x161e5f(0x1ba)]||_0x293a52)(_0x324013[_0x161e5f(0x5ba)]),_0x1ab3de=_0x541743[_0x161e5f(0x671)]?_0x36ed62:_0x5397fc,_0x21f227=_0x541743[_0x161e5f(0x704)]||((_0x450d4c,_0x922aec)=>{const _0x1219f2=_0x161e5f;_0x450d4c[_0x1219f2(0x84e)]=_0x922aec,_0x450d4c[_0x1219f2(0x5ec)]=!![],delete _0x450d4c[_0x1219f2(0x7cb)];});let _0x2ab265=null;if(_0x541743['prefetch']){const _0x30624a={..._0x324013,'limit':Math[_0x161e5f(0x3d2)](_0x21c817,_0x5099db)};_0x2ab265={'rows':_0x183b75(_0x30624a),'limit':_0x30624a[_0x161e5f(0x5ba)]};const _0x575e16=_0x2ab265;queueMicrotask(()=>{const _0x32aead=_0x161e5f;_0x575e16[_0x32aead(0x83b)]=!![];});}return _0x2eee7a[_0x161e5f(0x7b7)]=()=>{const _0x2ef1e3=_0x161e5f;let _0x98bdea=[],_0x4a19bd=0x0,_0x31e944=0x0,_0x472ec9,_0x2e66e3=![],_0x52e5d9=![],_0x5d0e3d=_0x21c817;if(_0x2ab265&&!_0x2ab265[_0x2ef1e3(0x83b)]&&!_0x2ab265[_0x2ef1e3(0x40c)]){_0x2ab265[_0x2ef1e3(0x40c)]=!![],_0x98bdea=_0x2ab265[_0x2ef1e3(0x671)],_0x2e66e3=!![],_0x5d0e3d=_0x216579(_0x5d0e3d,_0x1ab3de);if(_0x98bdea[_0x2ef1e3(0x2f6)]<_0x2ab265[_0x2ef1e3(0x5ba)])_0x52e5d9=!![];if(_0x98bdea[_0x2ef1e3(0x2f6)])_0x472ec9=_0x5e2932(_0x98bdea[_0x98bdea[_0x2ef1e3(0x2f6)]-0x1]);}const _0x566976=()=>{const _0x5289c5=_0x2ef1e3;if(_0x52e5d9)return;const _0x78deda=_0x5099db-_0x31e944;if(_0x78deda<=0x0){_0x52e5d9=!![],_0x98bdea=[];return;}const _0x3e20f5={..._0x324013,'limit':Math[_0x5289c5(0x3d2)](_0x5d0e3d,_0x78deda)};if(_0x2e66e3)_0x21f227(_0x3e20f5,_0x472ec9);_0x2e66e3=!![],_0x5d0e3d=_0x216579(_0x5d0e3d,_0x1ab3de),_0x98bdea=_0x183b75(_0x3e20f5),_0x4a19bd=0x0;if(_0x98bdea['length']<_0x3e20f5[_0x5289c5(0x5ba)])_0x52e5d9=!![];if(_0x98bdea[_0x5289c5(0x2f6)])_0x472ec9=_0x5e2932(_0x98bdea[_0x98bdea[_0x5289c5(0x2f6)]-0x1]);};return{'next'(){const _0x4bcbd1=_0x2ef1e3;if(_0x4a19bd>=_0x98bdea[_0x4bcbd1(0x2f6)])_0x566976();if(_0x4a19bd>=_0x98bdea[_0x4bcbd1(0x2f6)])return{'value':undefined,'done':!![]};return _0x31e944++,{'value':_0x98bdea[_0x4a19bd++],'done':![]};},'return'(){return _0x52e5d9=!![],_0x98bdea=[],{'value':undefined,'done':!![]};},'throw'(){return _0x52e5d9=!![],_0x98bdea=[],{'value':undefined,'done':!![]};}};},_0x2eee7a;}function _0x3fc432(_0x2be0cd,_0x585dd2,_0x38ac35,_0x144201,_0x59138a={}){const _0x3e01e0=_0x3159ad,_0x68f42=(_0x59138a[_0x3e01e0(0x1ba)]||_0x293a52)(_0x144201&&_0x144201[_0x3e01e0(0x5ba)]),_0x8cd43f=_0x4f9041['has'](_0x585dd2)?_0x36ed62:_0x5397fc,_0x4bd078=(_0x59138a[_0x3e01e0(0x1de)]||_0x22c18f)(_0x144201&&_0x144201[_0x3e01e0(0x7cb)]),_0x56965a=(_0x130296,_0x44a784,_0x56e12d)=>{const _0x51806c=_0x3e01e0,_0x4565e7=_0x68f42-_0x44a784,_0xa04b00=Math[_0x51806c(0x3d2)](_0x56e12d,_0x4565e7),_0x2c3ada={'limit':_0xa04b00,'offset':_0x4bd078+_0x44a784},_0x232f11=_0x2be0cd(_0x51806c(0x59e),[_0x130296,_0x585dd2,_0xa04b00===_0x4565e7?Infinity:_0xa04b00,..._0x38ac35(_0x2c3ada)]);if(_0x232f11[0x0]===-0x1){const _0x52026a={'offset':_0x4bd078+_0x44a784};if(_0x4565e7!==Infinity)_0x52026a[_0x51806c(0x5ba)]=_0x4565e7;return{'pin':0x0,'rows':_0x2be0cd(_0x585dd2,_0x38ac35(_0x52026a)),'raw':Infinity,'eager':!![]};}return{'pin':_0x232f11[0x0],'rows':_0x232f11[0x1],'raw':_0x232f11[0x2]};},_0x3f95ee=_0x3cd215=>{const _0x289d16=_0x3e01e0;if(_0x3cd215)_0x2be0cd(_0x289d16(0x679),[_0x3cd215]);};function _0x12968f(_0x470e7d,_0x4b0714,_0x36fdf2){const _0x1733d5=_0x3e01e0;let _0x598822=0x0,_0x1f0b9c=[],_0xa25e8a=0x0,_0x32335a=_0x470e7d,_0x324447=_0x21c817,_0x2c3a13=_0x68f42-_0x470e7d<=0x0;if(_0x36fdf2)({buf:_0x1f0b9c,pos:_0xa25e8a,consumed:_0x32335a,size:_0x324447,exhausted:_0x2c3a13}=_0x36fdf2);const _0x56f00b=_0x222874=>{const _0x6aff1a=_0x20ac;_0x598822=_0x222874['pin'],_0x1f0b9c=_0x222874['rows'],_0xa25e8a=0x0,_0x32335a+=_0x222874[_0x6aff1a(0x1fa)],_0x324447=_0x216579(_0x324447,_0x8cd43f);if(!_0x598822)_0x2c3a13=!![];};if(_0x4b0714)_0x56f00b(_0x4b0714);const _0x40f62f=()=>{const _0x4e06c4=_0x598822;_0x598822=0x0,_0x3f95ee(_0x4e06c4);},_0x51fce9={'next'(){while(_0xa25e8a>=_0x1f0b9c['length']){if(_0x2c3a13||_0x68f42-_0x32335a<=0x0)return _0x2c3a13=!![],_0x40f62f(),_0x4ac623;try{_0x56f00b(_0x56965a(_0x598822,_0x32335a,_0x324447));}catch(_0x5e6d64){_0x598822=0x0,_0x2c3a13=!![],_0x1f0b9c=[];throw _0x5e6d64;}}return{'value':_0x1f0b9c[_0xa25e8a++],'done':![]};},'return'(){return _0x40f62f(),_0x4ac623;},'throw'(){return _0x40f62f(),_0x4ac623;},'resumed'(){return _0x12968f(0x0,null,{'buf':_0x1f0b9c,'pos':_0xa25e8a,'consumed':_0x32335a,'size':_0x324447,'exhausted':_0x2c3a13});},[Symbol[_0x1733d5(0x84c)]](){return this;}};return _0x51fce9;}function _0x1a89d0(){if(_0x68f42<=0x0)return null;const _0x2d4d4f=_0x56965a(0x0,0x0,_0x21c817);return queueMicrotask(()=>{const _0x778b94=_0x20ac;!_0x2d4d4f['taken']&&(_0x2d4d4f[_0x778b94(0x83b)]=!![],_0x3f95ee(_0x2d4d4f[_0x778b94(0x1ee)]));}),_0x2d4d4f;}return{'source':_0x12968f,'prefetch':_0x1a89d0};}function _0xd40cfa(_0x4f7611){const _0x3267e6=_0x3159ad;if(!_0x4f7611||_0x4f7611[_0x3267e6(0x40c)]||_0x4f7611['dropped'])return null;return _0x4f7611[_0x3267e6(0x40c)]=!![],_0x4f7611;}return iterable={'fromArray':_0x5ba502,'chunkedRange':_0x57e32e,'pinnedChunks':_0x3fc432,'claimPrefetch':_0xd40cfa,'lmdbLimit':_0x293a52,'lmdbOffset':_0x22c18f,'CHUNK':_0x5397fc,'ROW_CHUNK':_0x36ed62,'FIRST':_0x21c817},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x5e53d5=_0x1c5fdf;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x230422}=requireIterable();class _0xfe603b{constructor(_0x530d70,_0x28027b='',_0x187833={},_0x2e27de=null){const _0x1000b7=_0x20ac;this['_env']=_0x530d70,this[_0x1000b7(0x80a)]=_0x28027b,this[_0x1000b7(0x391)]=!!(_0x187833&&_0x187833['dupSort']),this[_0x1000b7(0x735)]=!!(_0x187833&&_0x187833[_0x1000b7(0x735)]),this['_root']=_0x2e27de||this,this[_0x1000b7(0x244)]=null;}get[_0x5e53d5(0x5f5)](){const _0x46db21=_0x5e53d5;return this[_0x46db21(0x391)]?!![]:this[_0x46db21(0x735)]?'v':![];}['_n'](_0x56bbbf,_0x1917bf){const _0x5cbac7=_0x5e53d5;return this[_0x5cbac7(0x55a)][_0x5cbac7(0x263)][_0x5cbac7(0x7b0)](_0x5cbac7(0x1fa),this[_0x5cbac7(0x55a)]['name'],_0x56bbbf,[this[_0x5cbac7(0x80a)],this[_0x5cbac7(0x5f5)],..._0x1917bf],!![]);}[_0x5e53d5(0x272)](_0x5b2fce,_0x3c6559){const _0x236340=_0x5e53d5;return this[_0x236340(0x55a)][_0x236340(0x263)]['_call'](_0x236340(0x1fa),this[_0x236340(0x55a)][_0x236340(0x80a)],_0x5b2fce,[this[_0x236340(0x80a)],this[_0x236340(0x5f5)],..._0x3c6559],![]);}[_0x5e53d5(0x56c)](_0x149f6a){const _0x640dd9=_0x5e53d5,_0x12cfe5=this[_0x640dd9(0x55a)][_0x640dd9(0x829)];if(_0x12cfe5)_0x12cfe5[_0x640dd9(0x3c0)]({'sub':this[_0x640dd9(0x80a)],'dup':this[_0x640dd9(0x5f5)],..._0x149f6a});else this[_0x640dd9(0x55a)][_0x640dd9(0x263)]['_call'](_0x640dd9(0x1fa),this[_0x640dd9(0x55a)][_0x640dd9(0x80a)],_0x640dd9(0x599),[[{'sub':this['name'],'dup':this[_0x640dd9(0x5f5)],..._0x149f6a}]],!![]);}['get'](_0xca50b1){const _0x25f02d=_0x5e53d5;return this[_0x25f02d(0x272)](_0x25f02d(0x4ff),[_0xca50b1]);}[_0x5e53d5(0x7f9)](_0xea7c13){const _0x21142e=_0x5e53d5;if(this['useVersions'])return this[_0x21142e(0x272)](_0x21142e(0x7f9),[_0xea7c13]);const _0xbc32fa=this[_0x21142e(0x4ff)](_0xea7c13);return _0xbc32fa===undefined?undefined:{'value':_0xbc32fa};}[_0x5e53d5(0x8a8)](_0xd92dd6){const _0x2f63d5=_0x5e53d5;return this[_0x2f63d5(0x272)]('exists',[_0xd92dd6]);}[_0x5e53d5(0x34a)](_0x104381){const _0x4163d3=_0x5e53d5;return this[_0x4163d3(0x4ff)](_0x104381);}[_0x5e53d5(0x655)](_0xa841ad={}){const _0x12f1c5=_0x5e53d5,_0x5cfa87=this[_0x12f1c5(0x272)]('getRange',[_0xa841ad]),_0xa49b58=_0xa841ad[_0x12f1c5(0x534)]===![],_0x2c36c3=_0xa841ad[_0x12f1c5(0x542)]===![];return _0x230422(_0x5cfa87[_0x12f1c5(0x4ba)](([_0x5069b0,_0x2ac5f7,_0x52ec1d])=>{if(_0xa49b58)return _0x5069b0;if(_0x2c36c3)return _0x2ac5f7;return _0x52ec1d===undefined?{'key':_0x5069b0,'value':_0x2ac5f7}:{'key':_0x5069b0,'value':_0x2ac5f7,'version':_0x52ec1d};}));}[_0x5e53d5(0x608)](_0x292f60={}){const _0x36ec93=_0x5e53d5;return _0x230422(this[_0x36ec93(0x272)](_0x36ec93(0x655),[_0x292f60])[_0x36ec93(0x4ba)](([_0x21f51e])=>_0x21f51e));}[_0x5e53d5(0x47c)](_0x22d56c,_0x4b4ffb={}){const _0x69b635=_0x5e53d5,_0x283f0e=this[_0x69b635(0x272)](_0x69b635(0x655),[{..._0x4b4ffb,'start':_0x22d56c,'end':_0x22d56c,'inclusiveEnd':!![]}]);return _0x230422(_0x283f0e[_0x69b635(0x4ba)](([,_0xb54960])=>_0xb54960));}[_0x5e53d5(0x34c)](_0x2d7285={}){const _0x52e216=_0x5e53d5;return this[_0x52e216(0x272)](_0x52e216(0x768),[_0x2d7285]);}[_0x5e53d5(0x5aa)](){const _0x122553=_0x5e53d5;return{'entryCount':this[_0x122553(0x34c)]()};}[_0x5e53d5(0x77c)](_0x3953eb,_0x53561a,_0x19691){const _0x34bf24=_0x5e53d5;return this[_0x34bf24(0x56c)]({'op':_0x34bf24(0x77c),'key':_0x3953eb,'value':_0x53561a,'version':_0x19691}),Promise[_0x34bf24(0x4a2)](!![]);}[_0x5e53d5(0x5d4)](_0x2e38af,_0x55dffe,_0x5f3466){const _0x3754b4=_0x5e53d5;return this[_0x3754b4(0x56c)]({'op':_0x3754b4(0x77c),'key':_0x2e38af,'value':_0x55dffe,'version':_0x5f3466}),!![];}['remove'](_0xdc7f75,_0x1b746c){const _0x43a38a=_0x5e53d5;return this['_write']({'op':_0x43a38a(0x7e6),'key':_0xdc7f75,'value':_0x1b746c}),Promise[_0x43a38a(0x4a2)](!![]);}[_0x5e53d5(0x858)](_0x1d35e3,_0x3cc803){const _0x5d9604=_0x5e53d5;return this[_0x5d9604(0x56c)]({'op':'remove','key':_0x1d35e3,'value':_0x3cc803}),!![];}[_0x5e53d5(0x53c)](){const _0x4cc82a=_0x5e53d5;this[_0x4cc82a(0x56c)]({'op':'clear'});}[_0x5e53d5(0x4c2)](){const _0x31067e=_0x5e53d5;return this[_0x31067e(0x56c)]({'op':_0x31067e(0x7be)}),Promise[_0x31067e(0x4a2)]();}[_0x5e53d5(0x68d)](){this['clearSync']();}[_0x5e53d5(0x1bd)](_0x1e8858,_0x411de2={}){const _0x5c7f50=_0x5e53d5,_0x57a031=typeof _0x1e8858===_0x5c7f50(0x86d)?_0x1e8858:_0x411de2,_0x42f28b=typeof _0x1e8858===_0x5c7f50(0x86d)?_0x1e8858[_0x5c7f50(0x80a)]:_0x1e8858,_0x10c1ac=new _0xfe603b(this['_env'],_0x42f28b,_0x57a031);return _0x10c1ac['_write']({'op':_0x5c7f50(0x4c3)}),_0x10c1ac;}[_0x5e53d5(0x508)](){}['transactionSync'](_0x2c002f){return this['_tx'](_0x2c002f);}async[_0x5e53d5(0x4b7)](_0x309258){const _0xea598c=_0x5e53d5;return this[_0xea598c(0x659)](_0x309258);}['childTransaction'](_0xd61a2e){const _0x93d553=_0x5e53d5;return this[_0x93d553(0x659)](_0xd61a2e);}[_0x5e53d5(0x659)](_0xa41ec4){const _0x1c28c5=_0x5e53d5,_0x35a633=this[_0x1c28c5(0x55a)];if(_0x35a633[_0x1c28c5(0x829)])return _0xa41ec4();_0x35a633[_0x1c28c5(0x829)]=[];let _0x1bd4bd;try{_0x1bd4bd=_0xa41ec4();}catch(_0x1ae368){_0x35a633[_0x1c28c5(0x829)]=null;throw _0x1ae368;}const _0x4c09b5=_0x35a633[_0x1c28c5(0x829)];_0x35a633[_0x1c28c5(0x829)]=null;if(_0x4c09b5[_0x1c28c5(0x2f6)])_0x35a633[_0x1c28c5(0x263)][_0x1c28c5(0x7b0)](_0x1c28c5(0x1fa),_0x35a633[_0x1c28c5(0x80a)],_0x1c28c5(0x599),[_0x4c09b5],!![]);return _0x1bd4bd;}[_0x5e53d5(0x668)](){return{'done'(){}};}['resetReadTxn'](){}}return rawdb={'RawDb':_0xfe603b},rawdb;}var views,hasRequiredViews;function requireViews(){const _0xeac3b0=_0x1c5fdf;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x53a502}=requireRawdb();class _0x4859ac{constructor(_0x2e7f2a){const _0x48a011=_0x20ac;this[_0x48a011(0x81f)]=_0x2e7f2a,this['_n']=(_0x49586b,_0x3b7411,_0x4658c4=!![])=>_0x2e7f2a[_0x48a011(0x263)]['_call'](_0x48a011(0x448),_0x2e7f2a[_0x48a011(0x80a)],_0x49586b,_0x3b7411,_0x4658c4);}get['_viewState'](){const _0x50693e=_0x20ac,_0xc26c6d=this,_0x3993f0=this[_0x50693e(0x81f)],_0x4d6f76=_0x28ef5f=>_0x28ef5f?new _0x53a502(_0x3993f0,_0x28ef5f[_0x50693e(0x80a)],{'dupSort':_0x28ef5f[_0x50693e(0x6af)]}):undefined,_0x5fe50b=_0x342657=>{const _0x10faf3=_0x50693e,_0x149ceb=_0xc26c6d['_n'](_0x10faf3(0x67b),[_0x342657],![]);if(!_0x149ceb)return undefined;const _0x543a7e=_0x149ceb[_0x10faf3(0x7c9)],_0x5ca405=new Map(Object[_0x10faf3(0x207)](_0x543a7e[_0x10faf3(0x613)])),_0x2bffcf=new Map(Object['entries'](_0x149ceb[_0x10faf3(0x476)])[_0x10faf3(0x4ba)](([_0x372983,_0x36a65c])=>[_0x372983,_0x4d6f76(_0x36a65c)]));return{'name':_0x342657,'compiled':{'T':_0x543a7e['T'],'reducers':_0x543a7e['reducers'],'refs':_0x5ca405,'granId':_0x543a7e[_0x10faf3(0x530)],'type':_0x543a7e['type'],'_nidFor':_0x4a1cad=>_0xc26c6d['_n']('nidFor',[_0x342657,_0x4a1cad],![])},'viewDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x406)]),'metaDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x461)]),'itemsDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x792)]),'bucketsDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x743)]),'sortedDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x521)]),'groupsDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x474)]),'prevDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x694)]),'refItemsDbs':_0x2bffcf,'refTrackingDbs':new Map(Object['entries'](_0x149ceb[_0x10faf3(0x6fd)]||{})[_0x10faf3(0x4ba)](([_0xcae6bc,_0x4f0057])=>[_0xcae6bc,_0x4d6f76(_0x4f0057)])),'stopFn':_0x149ceb[_0x10faf3(0x216)]?async()=>_0xc26c6d['_n'](_0x10faf3(0x453),[_0x342657]):null,'bootstrapWorker':null};};return{'get':_0x42a339=>_0x5fe50b(_0x42a339),'has':_0xc9329b=>_0xc26c6d['_n'](_0x50693e(0x3e8),[],![])['includes'](_0xc9329b),'keys':()=>_0xc26c6d['_n'](_0x50693e(0x3e8),[],![])[Symbol[_0x50693e(0x84c)]](),get 'size'(){const _0x446843=_0x50693e;return _0xc26c6d['_n'](_0x446843(0x3e8),[],![])[_0x446843(0x2f6)];},[Symbol['iterator']]:()=>_0xc26c6d['_n'](_0x50693e(0x3e8),[],![])[_0x50693e(0x4ba)](_0x2842fc=>[_0x2842fc,_0x5fe50b(_0x2842fc)])[Symbol[_0x50693e(0x84c)]]()};}get[_0xeac3b0(0x670)](){const _0x4a4683=_0xeac3b0,_0x1e5a42=this;return{'has':_0x230194=>_0x1e5a42['_n']('customReducerNames',[],![])['includes'](_0x230194),get 'size'(){const _0xe9ef79=_0x20ac;return _0x1e5a42['_n']('customReducerNames',[],![])[_0xe9ef79(0x2f6)];},'keys':()=>_0x1e5a42['_n'](_0x4a4683(0x7e5),[],![])[Symbol[_0x4a4683(0x84c)]]()};}async[_0xeac3b0(0x560)](){return this['_n']('bootSyncedViewsInline',[]);}async['bootSyncedViews'](_0x1f896e={}){const _0x354d2f=_0xeac3b0;return this['_n'](_0x354d2f(0x6a2),[_0x1f896e]);}async[_0xeac3b0(0x1d9)](_0x15fe84,_0x1a442a){const _0x3c17c3=_0xeac3b0;return this['_n'](_0x3c17c3(0x1d9),[_0x15fe84,_0x1a442a]),{'name':_0x15fe84};}[_0xeac3b0(0x4ff)](_0x3613e8,_0x4f0585={}){const _0x1b07c4=_0xeac3b0,_0x5ac713=this['_n']('get',[_0x3613e8,{'preview':_0x4f0585?.['preview']??{}}],![]);if(_0x5ac713==null)return null;const _0x54cc49=this['_n'](_0x1b07c4(0x300),[_0x3613e8],![]);if(!_0x54cc49)return _0x5ac713;const _0x31cb2e=_0x24e81a=>(_0x5d5366={})=>this['_n'](_0x1b07c4(0x832),[_0x3613e8,_0x24e81a,_0x5d5366],![]);if(_0x54cc49['view']){_0x5ac713[_0x1b07c4(0x832)]=_0x31cb2e({'kind':_0x1b07c4(0x26d)});for(const _0x3bd427 of _0x54cc49[_0x1b07c4(0x28c)]){if(!_0x3bd427[_0x1b07c4(0x832)])continue;if(_0x3bd427[_0x1b07c4(0x329)]){const _0x61a98b=_0x5ac713[_0x3bd427['name']];if(_0x61a98b?.[_0x1b07c4(0x4a1)]&&Array[_0x1b07c4(0x55b)](_0x61a98b[_0x1b07c4(0x4a1)])){for(const _0x59aa6e of _0x61a98b[_0x1b07c4(0x4a1)])_0x59aa6e['items']=_0x31cb2e({'kind':_0x1b07c4(0x5bb),'reducer':_0x3bd427[_0x1b07c4(0x80a)],'key':_0x59aa6e[_0x1b07c4(0x7e4)]});}}else _0x5ac713[_0x3bd427[_0x1b07c4(0x80a)]]&&(_0x5ac713[_0x3bd427[_0x1b07c4(0x80a)]]['items']=_0x31cb2e({'kind':_0x1b07c4(0x7d5),'reducer':_0x3bd427[_0x1b07c4(0x80a)]}));}}for(const _0x1f425e of _0x54cc49['refs']){if(!_0x1f425e[_0x1b07c4(0x26d)])continue;const _0x823f5=_0x5ac713[_0x1f425e['name']];if(!_0x823f5||typeof _0x823f5!=='object')continue;_0x823f5[_0x1b07c4(0x832)]=_0x31cb2e({'kind':_0x1b07c4(0x26d),'ref':_0x1f425e[_0x1b07c4(0x80a)]});for(const _0x1da3a7 of _0x1f425e[_0x1b07c4(0x28c)]){if(!_0x1da3a7['items'])continue;if(_0x1da3a7[_0x1b07c4(0x329)]){const _0xe8a33a=_0x823f5[_0x1da3a7['name']];if(_0xe8a33a?.['preview']&&Array[_0x1b07c4(0x55b)](_0xe8a33a[_0x1b07c4(0x4a1)])){for(const _0x54fde4 of _0xe8a33a[_0x1b07c4(0x4a1)])_0x54fde4[_0x1b07c4(0x832)]=_0x31cb2e({'kind':_0x1b07c4(0x5bb),'ref':_0x1f425e[_0x1b07c4(0x80a)],'reducer':_0x1da3a7['name'],'key':_0x54fde4['key']});}}else _0x823f5[_0x1da3a7[_0x1b07c4(0x80a)]]&&(_0x823f5[_0x1da3a7[_0x1b07c4(0x80a)]][_0x1b07c4(0x832)]=_0x31cb2e({'kind':'reducer','ref':_0x1f425e[_0x1b07c4(0x80a)],'reducer':_0x1da3a7[_0x1b07c4(0x80a)]}));}}return _0x5ac713;}[_0xeac3b0(0x7e2)](_0x335774){const _0x29aec4=_0xeac3b0;return this['_n'](_0x29aec4(0x7e2),[_0x335774],![]);}[_0xeac3b0(0x745)](_0x1cd3c3,_0x57cd29={}){const _0x553799=_0xeac3b0;return this['_n'](_0x553799(0x745),[_0x1cd3c3,_0x57cd29],![]);}[_0xeac3b0(0x261)](_0x955ecc,_0x5431c0={}){return this['_n']('range',[_0x955ecc,_0x5431c0],![]);}[_0xeac3b0(0x4cc)](_0x7429f8,_0x32c254={}){const _0x1454e3=_0xeac3b0;return this['_n'](_0x1454e3(0x4cc),[_0x7429f8,_0x32c254],![]);}async['list'](){return this['_n']('list',[],![]);}async[_0xeac3b0(0x6e9)](_0xf55de){const _0x526386=_0xeac3b0;return this['_n'](_0x526386(0x6e9),[_0xf55de],![])??null;}async[_0xeac3b0(0x7e6)](_0x397986,_0x486575={}){return this['_n']('remove',[_0x397986,_0x486575]);}async[_0xeac3b0(0x584)](_0x3ef8cb){const _0x2ff7ec=_0xeac3b0;return this['_n'](_0x2ff7ec(0x584),[_0x3ef8cb]);}async['start'](_0x56ff94){return this['_n']('start',[_0x56ff94]);}async[_0xeac3b0(0x686)](_0x489b71){const _0x12cf56=_0xeac3b0;return this['_n'](_0x12cf56(0x686),[_0x489b71]);}async[_0xeac3b0(0x1cc)](_0x443d54){const _0x21f9cf=_0xeac3b0;return this['_n'](_0x21f9cf(0x1cc),[_0x443d54]);}[_0xeac3b0(0x828)](_0x1f0dc1,_0x247d84={}){const _0x53c9fa=_0xeac3b0;return this['_n']('registerReducer',[_0x1f0dc1,{'apply':_0x247d84&&_0x247d84[_0x53c9fa(0x2d6)]}]);}}return views={'OKDBViews':_0x4859ac},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x1efedd=_0x1c5fdf;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x571226}=requireErrors(),_0x463f2b=requireBridge();class _0x5a22f9{constructor(_0xf3f69c){const _0x36a712=_0x20ac;this[_0x36a712(0x81f)]=_0xf3f69c,this[_0x36a712(0x263)]=_0xf3f69c[_0x36a712(0x263)],this['log']=_0xf3f69c[_0x36a712(0x263)][_0x36a712(0x3de)]['child']({'feature':_0x36a712(0x44d)}),this['_workers']=new Set();}['_n'](_0x54ddaf,_0x3088ad,_0x4a7cd9=!![]){const _0xd3f16=_0x20ac;return this[_0xd3f16(0x263)]['_call'](_0xd3f16(0x44d),this[_0xd3f16(0x81f)]['name'],_0x54ddaf,_0x3088ad,_0x4a7cd9);}['_w'](_0x3fd461,_0x4b3043){const _0x2cfa31=_0x20ac;return this[_0x2cfa31(0x263)][_0x2cfa31(0x1d6)](this['_n'](_0x3fd461,_0x4b3043));}async['_ensure'](){const _0x5f14ef=_0x20ac;return this['_n'](_0x5f14ef(0x4c3),[]);}async[_0x1efedd(0x690)](_0x14cf66={}){const _0x10c9ed=_0x1efedd;return this['_n'](_0x10c9ed(0x690),[_0x14cf66],![]);}get['_logsDb'](){const _0x4ca9fe=_0x1efedd,{RawDb:_0x2283df}=requireRawdb();return this[_0x4ca9fe(0x58a)]||(this[_0x4ca9fe(0x58a)]=new _0x2283df(this['env'],_0x4ca9fe(0x306)));}async[_0x1efedd(0x8a1)](){return this['_w']('sweepOrphanLogs',[]);}async[_0x1efedd(0x65c)](_0x3d3d55,_0x2012dd,_0x2ca83d={}){const _0x243d71=_0x1efedd,{txn:_0x281b68,..._0x724870}=_0x2ca83d||{};if(_0x281b68)return this[_0x243d71(0x352)](_0x281b68,_0x3d3d55,_0x2012dd,_0x724870);const _0x48900c=this[_0x243d71(0x263)][_0x243d71(0x287)];if(_0x48900c&&_0x48900c[_0x243d71(0x44d)][_0x243d71(0x2f6)])_0x48900c[_0x243d71(0x715)]();const _0x4574a2=this['_n'](_0x243d71(0x2a9),[_0x3d3d55,_0x2012dd,_0x724870],![]);return this[_0x243d71(0x263)][_0x243d71(0x1d6)](_0x4574a2['id'])['then'](_0x21c5e3=>{const _0x1f9b8c=_0x243d71;if(_0x4574a2[_0x1f9b8c(0x4d0)])this[_0x1f9b8c(0x194)](_0x3d3d55);else try{this[_0x1f9b8c(0x263)][_0x1f9b8c(0x51b)][_0x1f9b8c(0x577)]();}catch{}return _0x21c5e3;});}[_0x1efedd(0x194)](_0x1fdf22){queueMicrotask(()=>{const _0x2b8a8f=_0x20ac;try{this['_n'](_0x2b8a8f(0x2c2),[_0x1fdf22]);}catch{}});}['_enqueueInTxn'](_0x42a097,_0x10eac3,_0x402c50,_0x2766c8){const _0x562f86=_0x1efedd,_0x4f91b2=_0x42a097[_0x562f86(0x1fa)]??_0x42a097;if(_0x4f91b2[_0x562f86(0x891)])throw new _0x571226(_0x562f86(0x876),_0x562f86(0x747));if(_0x4f91b2[_0x562f86(0x263)]&&_0x4f91b2[_0x562f86(0x263)]!==this[_0x562f86(0x81f)]&&_0x4f91b2[_0x562f86(0x263)][_0x562f86(0x80a)]!==this[_0x562f86(0x81f)][_0x562f86(0x80a)])throw new _0x571226(_0x562f86(0x7b9),_0x562f86(0x7ac),{'txnEnv':_0x4f91b2[_0x562f86(0x263)][_0x562f86(0x80a)],'queueEnv':this['env'][_0x562f86(0x80a)]});const _0x573462=this['_n'](_0x562f86(0x86c),[_0x10eac3,_0x402c50,_0x2766c8],![]);if(_0x573462[_0x562f86(0x603)])return _0x573462['id'];if(_0x573462[_0x562f86(0x600)])_0x42a097[_0x562f86(0x3dc)](_0x562f86(0x254),_0x573462[_0x562f86(0x600)][_0x562f86(0x7e4)],_0x573462[_0x562f86(0x600)][_0x562f86(0x658)],{'ifVersion':_0x573462[_0x562f86(0x600)][_0x562f86(0x75b)]});if(_0x402c50!==undefined)_0x42a097[_0x562f86(0x77c)](_0x562f86(0x3fe),_0x573462['id'],_0x402c50);_0x42a097[_0x562f86(0x77c)]('~queue_jobs',_0x573462['id'],_0x573462['job']);if(typeof _0x4f91b2['onDo']==='function')_0x4f91b2['onDo'](()=>{const _0x4a00fb=_0x562f86;if(this['_n']('announceEnqueued',[_0x573462['id'],_0x10eac3,_0x573462[_0x4a00fb(0x78d)],_0x573462[_0x4a00fb(0x5cc)]]))this[_0x4a00fb(0x194)](_0x10eac3);});return _0x573462['id'];}async['claim'](_0x542712,_0x4a5229={}){const _0x25a4f0=_0x1efedd;if(typeof _0x542712!==_0x25a4f0(0x460)||!_0x542712)throw new _0x571226(_0x25a4f0(0x44e),_0x25a4f0(0x185));return this['_w']('claim',[_0x542712,_0x4a5229]);}async[_0x1efedd(0x33a)](_0x24814d,_0x47e538,_0x4b6837=null){const _0x1ce895=_0x1efedd;return this['_w'](_0x1ce895(0x33a),[_0x24814d,_0x47e538,_0x4b6837]);}async[_0x1efedd(0x2e9)](_0x80e1aa,_0x224a05,_0x151d41=null){const _0x59ca7d=_0x1efedd;return this[_0x59ca7d(0x33a)](_0x80e1aa,_0x224a05,_0x151d41);}async[_0x1efedd(0x265)](_0x5423d5,_0x30eed7,_0x5d78a7){return this['_w']('markJobProgress',[_0x5423d5,_0x30eed7,_0x5d78a7]);}async[_0x1efedd(0x301)](_0x428a51,_0x14f8dc,_0x1c25d6){const _0x2c8964=_0x1efedd;return this['_w'](_0x2c8964(0x301),[_0x428a51,_0x14f8dc,_0x1c25d6]);}async['completeJob'](_0x3d19cb,_0x4681bb,_0x4dda4a){return this['markJobComplete'](_0x3d19cb,_0x4681bb,_0x4dda4a);}async[_0x1efedd(0x4af)](_0x2fcaaf,_0xacbfb5,_0x13cf8a,_0x399ce4){const _0xe7bc14=_0x1efedd,_0x103321=_0x13cf8a instanceof Error?{'message':_0x13cf8a[_0xe7bc14(0x5e1)],'stack':_0x13cf8a[_0xe7bc14(0x762)]}:_0x13cf8a;return this['_w'](_0xe7bc14(0x4af),[_0x2fcaaf,_0xacbfb5,_0x103321,_0x399ce4]);}async[_0x1efedd(0x58d)](_0x13255b,_0x2c6b2a,_0x1eecf1,_0x131898){const _0x266fd6=_0x1efedd;return this[_0x266fd6(0x4af)](_0x13255b,_0x2c6b2a,_0x1eecf1,_0x131898);}async[_0x1efedd(0x529)](_0x3b8648,_0x59fad8,_0x32bf17={}){const _0x4970e4=_0x1efedd;return this['_w'](_0x4970e4(0x529),[_0x3b8648,_0x59fad8,_0x32bf17]);}async[_0x1efedd(0x744)](_0x5aefe2){const _0x705ca7=_0x1efedd;return this['_n'](_0x705ca7(0x744),[_0x5aefe2],![]);}async[_0x1efedd(0x78b)](_0x1fad93,_0xfe5a12={},_0x5a645d={}){const _0x1924d0=_0x1efedd,_0x295d87=_0x5a645d&&_0x5a645d[_0x1924d0(0x2ff)];if(!_0x295d87)return this['_w'](_0x1924d0(0x78b),[_0x1fad93,_0xfe5a12]);const {next:_0x485c7b,version:_0xab45bb}=this['_n']('planUpdateJob',[_0x1fad93,_0xfe5a12],![]);_0x295d87['update'](_0x1924d0(0x254),_0x1fad93,_0x485c7b,{'ifVersion':_0xab45bb});let _0x1ff6ca;if(_0x1924d0(0x653)in _0xfe5a12){if(_0xfe5a12['payload']===undefined){if(this[_0x1924d0(0x81f)][_0x1924d0(0x7f9)](_0x1924d0(0x3fe),_0x1fad93))_0x295d87[_0x1924d0(0x7e6)](_0x1924d0(0x3fe),_0x1fad93);}else _0x295d87['put'](_0x1924d0(0x3fe),_0x1fad93,_0xfe5a12['payload']);_0x1ff6ca=_0xfe5a12[_0x1924d0(0x653)];}else _0x1ff6ca=this[_0x1924d0(0x81f)][_0x1924d0(0x4ff)](_0x1924d0(0x3fe),_0x1fad93);return{..._0x485c7b,'payload':_0x1ff6ca};}async[_0x1efedd(0x89e)](_0x360d02,_0x55e92d={}){const _0x282fb4=_0x1efedd,_0x5bac8d=_0x55e92d&&_0x55e92d[_0x282fb4(0x2ff)];if(!_0x5bac8d)return this['_w'](_0x282fb4(0x89e),[_0x360d02]);if(!_0x360d02)throw new _0x571226(_0x282fb4(0x5e3),_0x282fb4(0x185));if(!this[_0x282fb4(0x81f)]['getEntry'](_0x282fb4(0x254),_0x360d02))return![];_0x5bac8d[_0x282fb4(0x7e6)](_0x282fb4(0x254),_0x360d02);if(this[_0x282fb4(0x81f)]['getEntry']('~queue_payloads',_0x360d02))_0x5bac8d[_0x282fb4(0x7e6)]('~queue_payloads',_0x360d02);if(typeof _0x5bac8d[_0x282fb4(0x814)]===_0x282fb4(0x5c4))_0x5bac8d[_0x282fb4(0x814)](()=>this['_n'](_0x282fb4(0x635),[_0x360d02]));return!![];}async[_0x1efedd(0x60c)](_0x5e41b9){const _0x2ef288=_0x1efedd;return this['_w'](_0x2ef288(0x60c),[_0x5e41b9]);}async['retryJob'](_0x48668f){const _0x55c780=_0x1efedd;return this['_w'](_0x55c780(0x18c),[_0x48668f]);}async[_0x1efedd(0x5af)](_0x23ea0a,_0x4f2183,_0x381a00){const _0x45dcd7=_0x1efedd,_0x5c675a=this['_n'](_0x45dcd7(0x255),[_0x4f2183??null,_0x381a00??0x0,_0x23ea0a]),_0x312808=0x1f4;for(let _0x32c70d=0x0;_0x32c70d<_0x5c675a['length'];_0x32c70d+=_0x312808){this['_n'](_0x45dcd7(0x2a5),[_0x5c675a[_0x45dcd7(0x5d1)](_0x32c70d,_0x32c70d+_0x312808),_0x32c70d,_0x5c675a[_0x45dcd7(0x2f6)],_0x4f2183??null]);if(_0x32c70d+_0x312808<_0x5c675a[_0x45dcd7(0x2f6)])await new Promise(_0x2c9337=>setImmediate(_0x2c9337));}return this['_n'](_0x45dcd7(0x87d),[_0x5c675a[_0x45dcd7(0x2f6)],_0x4f2183??null]),await new Promise(_0x2bc1ee=>setImmediate(_0x2bc1ee)),_0x5c675a['length'];}async[_0x1efedd(0x48e)](_0x481bc8,_0x163213){const _0x1599c6=_0x1efedd;return this['_clearChunked'](_0x1599c6(0x1e2),_0x481bc8,_0x163213);}async[_0x1efedd(0x727)](_0x5c9d98,_0x1ea28c){const _0x468123=_0x1efedd;return this[_0x468123(0x5af)]('failed',_0x5c9d98,_0x1ea28c);}async['retryFailed'](_0x11afaf,_0xd039da){return this['_w']('retryFailed',[_0x11afaf??null,_0xd039da??0x0]);}async[_0x1efedd(0x2b1)](_0x56cea7,_0x6523b8){const _0x392c95=_0x1efedd;return this['_w'](_0x392c95(0x2b1),[_0x56cea7??null,_0x6523b8??0x0]);}async[_0x1efedd(0x527)](_0x1c0d98,_0x18cf56,_0x266623){const _0xed30eb=_0x1efedd;return this['_w'](_0xed30eb(0x527),[_0x1c0d98,_0x18cf56,_0x266623]);}async[_0x1efedd(0x77b)](_0x62e4ca,_0x3acae7={}){const _0x2abccd=_0x1efedd;return this['_n'](_0x2abccd(0x77b),[_0x62e4ca,_0x3acae7],![]);}async[_0x1efedd(0x388)](_0x4de1ac,_0x2841c1={}){const _0x36e967=_0x1efedd,{txn:_0x709585,..._0x1fe927}=_0x2841c1||{};if(!_0x709585)return this['_w']('addBucket',[_0x4de1ac,_0x1fe927]);const _0x1ea10c=(_0x47f90e,_0x3ccf6a,_0x388754,_0x4af45f)=>{const _0x504150=_0x20ac,_0x205e73=Math[_0x504150(0x616)](Number(_0x47f90e));return Number['isFinite'](_0x205e73)?Math[_0x504150(0x3d2)](_0x4af45f,Math[_0x504150(0x6c5)](_0x388754,_0x205e73)):_0x3ccf6a;},_0x4bf83f=typeof _0x4de1ac===_0x36e967(0x460)?_0x4de1ac[_0x36e967(0x51d)]():'';if(!_0x4bf83f)throw new Error(_0x36e967(0x346));const _0x4ae3b7=_0x1ea10c(_0x1fe927[_0x36e967(0x1bf)],0x0,0x0,0x3b9aca00);_0x709585['put'](_0x36e967(0x395),_0x4bf83f,{'id':_0x4bf83f,'tokens':_0x1ea10c(_0x1fe927[_0x36e967(0x2d0)],_0x4ae3b7,0x0,_0x4ae3b7),'capacity':_0x4ae3b7,'refill_amount':_0x1ea10c(_0x1fe927['refill_amount'],0x0,0x0,0x3b9aca00),'refill_every':_0x1ea10c(_0x1fe927[_0x36e967(0x312)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x36e967(0x785)]()});}async[_0x1efedd(0x624)](_0x2278f8,_0x4105a6){const _0x1c3f2b=_0x1efedd;return this['_w'](_0x1c3f2b(0x624),[_0x2278f8,_0x4105a6]);}async[_0x1efedd(0x73a)](_0x3c06cc){const _0x2ec599=_0x1efedd;return this['_w'](_0x2ec599(0x73a),[_0x3c06cc]);}['getBucket'](_0x2660fe){const _0x27c8c2=_0x1efedd,_0x235ee1=this['_n'](_0x27c8c2(0x892),[_0x2660fe],![]);return _0x235ee1===null&&typeof _0x2660fe==='string'&&_0x2660fe[_0x27c8c2(0x51d)]()?undefined:_0x235ee1;}async[_0x1efedd(0x607)](_0x2ea6bb,_0x2ee3b3){const _0x124428=_0x1efedd;return this['_w'](_0x124428(0x607),[_0x2ea6bb,_0x2ee3b3]);}async[_0x1efedd(0x511)](_0x3e3205,_0x46cd6c={}){const _0x89056f=_0x1efedd;return this['_w'](_0x89056f(0x511),[_0x3e3205,_0x46cd6c]);}async[_0x1efedd(0x707)](_0x3ef4c7){const _0x510f28=_0x1efedd;return this['_n'](_0x510f28(0x707),[_0x3ef4c7],![]);}async[_0x1efedd(0x4e7)](){const _0xe9862c=_0x1efedd;return this['_n'](_0xe9862c(0x4e7),[],![]);}async[_0x1efedd(0x6b4)](_0x4cbf5a){const _0x3f7000=_0x1efedd;return this['_w'](_0x3f7000(0x6b4),[_0x4cbf5a]);}[_0x1efedd(0x525)](_0x5ea68c){return this['_n']('pauseJobType',[_0x5ea68c]);}['resumeJobType'](_0x1d4683){const _0x131b64=_0x1efedd;return this['_n'](_0x131b64(0x3a9),[_0x1d4683]);}[_0x1efedd(0x7a4)](_0x62d364){const _0x3c7457=_0x1efedd;return this['_n'](_0x3c7457(0x7a4),[_0x62d364]);}async[_0x1efedd(0x6fe)](_0x18da62,_0x29c82d,_0x3ddf3d=![]){return this['_w']('setJobTypeSchema',[_0x18da62,_0x29c82d,_0x3ddf3d]);}async[_0x1efedd(0x6b0)](_0x4d1646){const _0x5e8c8b=_0x1efedd;return this['_w'](_0x5e8c8b(0x6b0),[_0x4d1646]);}async[_0x1efedd(0x47e)](_0xbced32,_0x2032a1=0x5){const _0x50cc3f=_0x1efedd;return this['_n'](_0x50cc3f(0x47e),[_0xbced32,_0x2032a1],![]);}async[_0x1efedd(0x878)](_0x1dea59){const _0x2ade37=_0x1efedd;return this['_n'](_0x2ade37(0x583),[_0x1dea59]);}async[_0x1efedd(0x201)](_0x589774=0x7530){const _0x9cd9a3=_0x1efedd;await Promise[_0x9cd9a3(0x30f)]([...this[_0x9cd9a3(0x251)]][_0x9cd9a3(0x4ba)](_0x2f7763=>_0x2f7763[_0x9cd9a3(0x584)](_0x589774)));const _0x3d49d0=this['_n'](_0x9cd9a3(0x201),[0x0]);return this[_0x9cd9a3(0x251)][_0x9cd9a3(0x7be)](),_0x3d49d0;}async[_0x1efedd(0x344)](){const _0x308130=_0x1efedd,_0x21845b=this['_n'](_0x308130(0x344),[]);return this[_0x308130(0x251)][_0x308130(0x7be)](),_0x21845b;}[_0x1efedd(0x7de)](_0x10565d,_0x4feb6d,_0x181428){const _0x1bfe87=_0x1efedd;let _0x1f0fd5,_0x562d7b;if(Array['isArray'](_0x10565d)){if(typeof _0x4feb6d===_0x1bfe87(0x5c4))throw new _0x571226(_0x1bfe87(0x74a),_0x1bfe87(0x185));_0x562d7b=_0x4feb6d??{};if(_0x562d7b[_0x1bfe87(0x863)]!=null&&typeof _0x562d7b[_0x1bfe87(0x863)]!==_0x1bfe87(0x5c4))throw new _0x571226(_0x1bfe87(0x434),_0x1bfe87(0x185));if(_0x10565d[_0x1bfe87(0x2f6)]===0x0)throw new _0x571226('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x1bfe87(0x185));_0x1f0fd5=_0x10565d[_0x1bfe87(0x4ba)](_0x3ebf47=>{const _0x29e5a2=_0x1bfe87;if(!_0x3ebf47||typeof _0x3ebf47[_0x29e5a2(0x359)]!==_0x29e5a2(0x460)||!_0x3ebf47[_0x29e5a2(0x359)])throw new _0x571226(_0x29e5a2(0x307),'BAD_PARAM');if(typeof _0x3ebf47[_0x29e5a2(0x2d8)]!=='function')throw new _0x571226(_0x29e5a2(0x5f7)+_0x3ebf47[_0x29e5a2(0x359)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x29e5a2(0x185));return{..._0x3ebf47};});}else{_0x562d7b=_0x181428??{};if(typeof _0x4feb6d!==_0x1bfe87(0x5c4))throw new _0x571226(_0x1bfe87(0x5f7)+_0x10565d+_0x1bfe87(0x31a),_0x1bfe87(0x185));_0x1f0fd5=[{'type':_0x10565d,'handler':_0x4feb6d,..._0x181428??{}}];}const _0x2ff530=this[_0x1bfe87(0x263)];for(const _0x20d5c1 of _0x1f0fd5){const _0x126a5c=_0x20d5c1[_0x1bfe87(0x2d8)];_0x20d5c1['handler']=function(..._0x1612c5){const _0x4aaaf7=_0x1bfe87;return _0x2ff530['_afterDurable']()[_0x4aaaf7(0x8a9)](()=>_0x126a5c[_0x4aaaf7(0x2d6)](this,_0x1612c5));};}const _0x3764d6=this['_n'](_0x1bfe87(0x7de),[_0x1f0fd5,_0x562d7b]),_0x5acce7=this,_0x3aaced={'id':_0x3764d6['id'],'type':_0x3764d6[_0x1bfe87(0x359)],get 'running'(){const _0x191a68=_0x1bfe87;return _0x5acce7['_n']('workerState',[_0x3764d6['id']],![])[_0x191a68(0x843)];},'isRunning'(){const _0x5d6c55=_0x1bfe87;return _0x5acce7['_n'](_0x5d6c55(0x1dd),[_0x3764d6['id']],![])[_0x5d6c55(0x843)];},async 'stop'(_0x777313=0x7530){const _0x4a0c6a=_0x1bfe87;_0x5acce7['_n'](_0x4a0c6a(0x800),[_0x3764d6['id']]);const _0x4adb34=Date['now']()+_0x777313;while(_0x5acce7['_n'](_0x4a0c6a(0x1dd),[_0x3764d6['id']],![])['inFlight']>0x0&&Date[_0x4a0c6a(0x785)]()<_0x4adb34)await new Promise(_0x53231d=>setTimeout(_0x53231d,0x2));_0x5acce7['_n']('stopWorkerAbort',[_0x3764d6['id']]),_0x463f2b[_0x4a0c6a(0x554)](),_0x5acce7['_workers'][_0x4a0c6a(0x6f8)](_0x3aaced);},async 'kill'(){const _0x128ea8=_0x1bfe87;_0x5acce7['_n'](_0x128ea8(0x2b5),[_0x3764d6['id']]),_0x5acce7[_0x128ea8(0x251)][_0x128ea8(0x6f8)](_0x3aaced);}};return this[_0x1bfe87(0x251)]['add'](_0x3aaced),_0x3aaced;}[_0x1efedd(0x4e0)](_0x1ce3fb){const _0x2acefc=_0x1efedd;throw new _0x571226(_0x2acefc(0x821)+_0x1ce3fb+'\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'+_0x1ce3fb+_0x2acefc(0x240),_0x2acefc(0x490));}[_0x1efedd(0x576)](_0x4f0ed0){const _0x99de54=_0x1efedd;return this[_0x99de54(0x4e0)](_0x4f0ed0);}}return queue={'OKDBQueue':_0x5a22f9},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x576709=_0x1c5fdf;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x1826d4}=requireIterable();class _0x2e3c2f{constructor(_0x2ef227){const _0x1dfa95=_0x20ac;this[_0x1dfa95(0x81f)]=_0x2ef227,this[_0x1dfa95(0x263)]=_0x2ef227[_0x1dfa95(0x263)];const _0x2600ec=(_0x2fc884,_0xea44e0)=>this['_n'](_0x2fc884,_0xea44e0,![]);this[_0x1dfa95(0x862)]={'getDiffs':(_0x3e3d36,_0x39d946,_0x14d8f9)=>_0x2600ec(_0x1dfa95(0x412),[_0x3e3d36,_0x39d946,_0x14d8f9||{}]),'hasDiff':(_0xd61281,_0x4b1d7d,_0x10998f)=>_0x2600ec(_0x1dfa95(0x2b2),[_0xd61281,_0x4b1d7d,_0x10998f]),'getHead':(_0x14682e,_0x5ea0c3)=>_0x2600ec('storeGetHead',[_0x14682e,_0x5ea0c3])??null,'getHeadCount':_0x5bd5fe=>_0x2600ec('storeGetHeadCount',[_0x5bd5fe]),'getTotalHeadCount':()=>_0x2600ec(_0x1dfa95(0x4f8),[]),'getDiffsInRange':(_0x2be07d,_0x1f57c0,_0x3d1e8d)=>_0x2600ec('storeGetDiffsInRange',[_0x2be07d??null,_0x1f57c0,_0x3d1e8d]),'getConfig':()=>_0x2600ec(_0x1dfa95(0x442),[])??null,'getCursor':()=>this['_n'](_0x1dfa95(0x755),[],![])??null,get 'db'(){try{return _0x2600ec('storeGetTotalHeadCount',[]),{};}catch{return null;}}};}get[_0x576709(0x76b)](){const _0x2fa17b=_0x576709,_0x4ac343=(this[_0x2fa17b(0x81f)][_0x2fa17b(0x6e4)]?.[_0x2fa17b(0x690)]?.()||[])[_0x2fa17b(0x7f8)](_0x234cc8=>String(_0x234cc8[_0x2fa17b(0x5b6)]||'')['startsWith']('time-machine:'))[_0x2fa17b(0x2f6)];return{'size':_0x4ac343};}['_n'](_0x326665,_0x2e7e96,_0x5a36a3=!![]){const _0x330e79=_0x576709;return this[_0x330e79(0x263)][_0x330e79(0x7b0)]('tm',this[_0x330e79(0x81f)][_0x330e79(0x80a)],_0x326665,_0x2e7e96,_0x5a36a3);}async[_0x576709(0x894)](_0x3ef830){const _0x408fdb=_0x576709;return this['_n'](_0x408fdb(0x894),[_0x3ef830??null]);}async[_0x576709(0x510)](_0x9654a9){const _0x549949=_0x576709;return this['_n'](_0x549949(0x510),[_0x9654a9??null]);}async['enableAll'](){const _0x5255c3=_0x576709;return this['_n'](_0x5255c3(0x1a6),[]);}async[_0x576709(0x641)](){const _0x5b1a53=_0x576709;return this['_n'](_0x5b1a53(0x641),[]);}async[_0x576709(0x68d)](_0x336bc1){const _0x4e29c4=_0x576709;return this['_n'](_0x4e29c4(0x68d),[_0x336bc1??null]);}async[_0x576709(0x687)](){const _0xfa067b=_0x576709;return this['_n'](_0xfa067b(0x687),[]);}['isEnabled'](_0x5eca6d){const _0x40c97b=_0x576709;return this['_n'](_0x40c97b(0x2a4),[_0x5eca6d??null],![]);}[_0x576709(0x690)](){return this['_n']('list',[],![]);}[_0x576709(0x392)](_0x1af709){const _0x1cedb4=_0x576709;return this['_n'](_0x1cedb4(0x392),[_0x1af709??null],![]);}[_0x576709(0x364)](_0x30c2c4){const _0x5e6964=_0x576709;if(!_0x30c2c4)return this['_n'](_0x5e6964(0x755),[],![]);return this['_n'](_0x5e6964(0x364),[_0x30c2c4],![]);}[_0x576709(0x755)](){return this['_n']('getLegacyCursor',[],![]);}[_0x576709(0x1cf)](_0x1479e9,_0x179050,_0x1d1318){const _0x1fc56e=_0x576709;return this['_n'](_0x1fc56e(0x1cf),[_0x1479e9,_0x179050,_0x1d1318],![]);}['getHistory'](_0x5246b0,_0x39a099,_0x2a4474){const _0x398e18=_0x576709;return this['_n'](_0x398e18(0x6bc),[_0x5246b0,_0x39a099,_0x2a4474||{}],![]);}[_0x576709(0x356)](_0x115b8a,_0x406bcf,_0x41001d){const _0x269ab8=_0x576709;return this['_n'](_0x269ab8(0x356),[_0x115b8a??null,_0x406bcf,_0x41001d],![])[Symbol[_0x269ab8(0x84c)]]();}async['flush'](_0x250dca){const _0x7da1dc=_0x576709;return this['_n'](_0x7da1dc(0x803),[_0x250dca??null]);}}return timemachine={'OKDBTimeMachine':_0x2e3c2f},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x311809=_0x1c5fdf;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x62d064=require$$0,{Readable:_0x18f6ca}=require$$1,{OKDBError:_0x4ee7ad,optionsArg:_0x171dd0,invalidArgument:_0x50702b}=requireErrors(),{RawDb:_0x887769}=requireRawdb();async function _0x2db2d3(_0x5e2847){const _0x1225e8=_0x20ac;if(Buffer['isBuffer'](_0x5e2847))return _0x5e2847;if(_0x5e2847 instanceof Uint8Array)return Buffer[_0x1225e8(0x6a7)](_0x5e2847);if(typeof _0x5e2847===_0x1225e8(0x460))return Buffer[_0x1225e8(0x6a7)](_0x5e2847);const _0x504b92=[];for await(const _0x255352 of _0x5e2847)_0x504b92[_0x1225e8(0x3c0)](Buffer['isBuffer'](_0x255352)?_0x255352:Buffer[_0x1225e8(0x6a7)](_0x255352));return Buffer[_0x1225e8(0x18e)](_0x504b92);}class _0x51fad5{constructor(_0x56ebbc){const _0x3550c0=_0x20ac;this[_0x3550c0(0x81f)]=_0x56ebbc,this[_0x3550c0(0x263)]=_0x56ebbc[_0x3550c0(0x263)];}['_n'](_0x11d956,_0x97e906,_0x55fbc5=!![]){const _0x1e5fb1=_0x20ac;return this['okdb'][_0x1e5fb1(0x7b0)]('files',this['env'][_0x1e5fb1(0x80a)],_0x11d956,_0x97e906,_0x55fbc5);}[_0x311809(0x84e)](){return!![];}['stop'](){}async['_ensure'](){const _0x81aec5=_0x311809;this['_n'](_0x81aec5(0x4c3),[]);}async[_0x311809(0x6c6)](_0x1040f9,_0x54e7d1){const _0x1c7028=_0x311809;return this['okdb'][_0x1c7028(0x1d6)](this['_n'](_0x1c7028(0x794),[_0x1040f9,await _0x2db2d3(_0x54e7d1)]));}get[_0x311809(0x4e5)](){const _0x823182=_0x311809;return this[_0x823182(0x544)]||(this['__blobStatusDb']=new _0x887769(this[_0x823182(0x81f)],_0x823182(0x5bc)));}async[_0x311809(0x218)](_0x5ecc0a){const _0x307f1f=_0x311809;return this['_blobStatusDb'][_0x307f1f(0x659)](_0x5ecc0a);}async[_0x311809(0x4ce)](_0xfe58e3){const _0x1c2fdc=_0x311809,{id:_0x3d3b11,stream:_0x4c75a0,mime:mime='application/octet-stream',path:_0x244929='',txn:txn=null}=_0x171dd0(_0xfe58e3);if(!_0x3d3b11)throw _0x50702b(_0x1c2fdc(0x847),_0x1c2fdc(0x204),_0x3d3b11);if(!_0x4c75a0)throw _0x50702b(_0x1c2fdc(0x664),_0x1c2fdc(0x6c2),_0x4c75a0);const _0x3d96b6=await _0x2db2d3(_0x4c75a0);if(txn){const _0x41f28a=this['_n'](_0x1c2fdc(0x4ef),[_0x3d3b11,_0x3d96b6,{'mime':mime,'path':_0x244929}]);return txn[_0x1c2fdc(0x77c)](_0x1c2fdc(0x452),_0x3d3b11,_0x41f28a[_0x1c2fdc(0x74d)]),txn[_0x1c2fdc(0x814)](()=>this['_n']('txnDone',[_0x41f28a[_0x1c2fdc(0x74f)]])),txn[_0x1c2fdc(0x1c1)](()=>this['_n'](_0x1c2fdc(0x1df),[_0x41f28a[_0x1c2fdc(0x74f)]])),_0x41f28a['record'];}return this[_0x1c2fdc(0x263)][_0x1c2fdc(0x1d6)](this['_n'](_0x1c2fdc(0x4ce),[_0x3d3b11,_0x3d96b6,{'mime':mime,'path':_0x244929}]));}[_0x311809(0x4ff)](_0x15f942){const _0x100aaf=_0x311809;return this['_n'](_0x100aaf(0x4ff),[_0x15f942],![])??null;}[_0x311809(0x67a)](_0x8fcac7){const _0x38c553=_0x311809,_0x4f542c=this[_0x38c553(0x846)](_0x8fcac7);if(!_0x62d064['existsSync'](_0x4f542c))throw Object['assign'](new Error(_0x38c553(0x754)+_0x8fcac7),{'status':0x194});return this[_0x38c553(0x3c1)](_0x8fcac7);}[_0x311809(0x3c1)](_0x9724e2){const _0x377ea1=0x100*0x400,_0x1b8bf0=this;let _0x5c4e4b=0x0;return new _0x18f6ca({'highWaterMark':_0x377ea1,'read'(){const _0x387586=_0x20ac;let _0x1422c8;try{const _0x1b2c28=_0x1b8bf0['_n'](_0x387586(0x5dc),[_0x9724e2,_0x5c4e4b,_0x377ea1],![]);_0x1422c8=Buffer[_0x387586(0x531)](_0x1b2c28)?_0x1b2c28:Buffer[_0x387586(0x6a7)](_0x1b2c28);}catch(_0x5d156b){this['destroy'](_0x5d156b);return;}_0x5c4e4b+=_0x1422c8['length'];if(_0x1422c8[_0x387586(0x2f6)])this[_0x387586(0x3c0)](_0x1422c8);if(_0x1422c8[_0x387586(0x2f6)]<_0x377ea1)this[_0x387586(0x3c0)](null);}});}async[_0x311809(0x5ed)](_0x4971d2){const _0x522438=_0x311809;return this[_0x522438(0x263)][_0x522438(0x7b5)](this['_n'](_0x522438(0x5ed),[_0x4971d2],![]));}async[_0x311809(0x4cd)](_0x5c52a1){const _0x145931=_0x311809,_0x212d3d=this[_0x145931(0x4ff)](_0x5c52a1);if(!_0x212d3d)throw Object[_0x145931(0x60e)](new Error(_0x145931(0x3be)+_0x5c52a1),{'status':0x194});const _0x5750fe=this[_0x145931(0x846)](_0x212d3d[_0x145931(0x7aa)]);if(!_0x62d064[_0x145931(0x477)](_0x5750fe))throw Object['assign'](new Error(_0x145931(0x299)+_0x5c52a1),{'status':0x194});return{'stream':this[_0x145931(0x3c1)](_0x212d3d['hash']),'record':_0x212d3d};}async[_0x311809(0x7e6)](_0x294128,_0x4fb7b4){const _0x1d2fd8=_0x311809,{txn:txn=null}=_0x171dd0(_0x4fb7b4);if(txn){const _0x51fba9=this['_n'](_0x1d2fd8(0x26c),[_0x294128]);txn[_0x1d2fd8(0x7e6)](_0x1d2fd8(0x452),_0x294128),txn[_0x1d2fd8(0x814)](()=>this['_n'](_0x1d2fd8(0x2a2),[_0x51fba9[_0x1d2fd8(0x74f)]])),txn[_0x1d2fd8(0x1c1)](()=>this['_n'](_0x1d2fd8(0x1df),[_0x51fba9['hook']]));return;}return this[_0x1d2fd8(0x263)][_0x1d2fd8(0x1d6)](this['_n'](_0x1d2fd8(0x7e6),[_0x294128]));}async[_0x311809(0x518)](_0x46e6c0,_0x5346e8={}){const _0x14ca2c=_0x311809;return this['_n'](_0x14ca2c(0x518),[_0x46e6c0,_0x5346e8],![]);}['getBlobStatus'](_0x12016a){const _0x4a066f=_0x311809;return this['_n'](_0x4a066f(0x3b3),[_0x12016a],![]);}['listBlobStatus'](){const _0x41ed74=_0x311809;return this['_n'](_0x41ed74(0x6b8),[],![]);}[_0x311809(0x50d)](_0x11f4ac){const {minAgeMs:_0x1dec3f}=_0x171dd0(_0x11f4ac);return this['_n']('gcOrphanedBlobs',[_0x1dec3f??null]);}[_0x311809(0x3d8)](_0x35922a,_0x1bac56){const _0x40c087=_0x311809;if(typeof _0x1bac56!==_0x40c087(0x5c4))throw new _0x4ee7ad(_0x40c087(0x513),_0x40c087(0x185));const _0x4f95ee=this['_n'](_0x40c087(0x3d8),[_0x35922a,_0x1bac56]);return()=>this['_n'](_0x40c087(0x396),[_0x4f95ee]);}async['indexContent'](_0x39dd1c){const _0x17aa56=_0x311809;return _0x39dd1c=_0x171dd0(_0x39dd1c),this['_n'](_0x17aa56(0x387),[_0x39dd1c]);}async['syncBlobs'](_0x13d88d){const {peerIds:_0x5d17d8}=_0x171dd0(_0x13d88d);return this['_n']('syncBlobs',[_0x5d17d8??null]);}[_0x311809(0x846)](_0x298995){const _0x282de3=_0x311809;if(typeof _0x298995!==_0x282de3(0x460))return require$$4['join'](this['_blobsDir'],_0x298995['slice'](0x0,0x2),_0x298995[_0x282de3(0x5d1)](0x2));return this['_n'](_0x282de3(0x74e),[_0x298995],![]);}get['_blobsDir'](){const _0x56a8cc=_0x311809;return this['_n'](_0x56a8cc(0x61d),[],![]);}}return files={'OKDBFiles':_0x51fad5},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x465458=_0x1c5fdf;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x10f50f}=requireErrors(),_0x37bf08=requireBridge(),_0x21974b=new Set(['embedder',_0x465458(0x2dc),_0x465458(0x648),_0x465458(0x81d)]),_0x2995c0=new Set([_0x465458(0x768),_0x465458(0x427),'dims']),_0x58f349=[_0x465458(0x4b6),_0x465458(0x782),'assertCreateAllowed','assertStartAllowed',_0x465458(0x47a),'stop',_0x465458(0x466)],_0x2ceef4={'embedder':new Set([_0x465458(0x62b),_0x465458(0x6b3)])},_0x411001=new Set([_0x465458(0x6bb),_0x465458(0x6e4),_0x465458(0x50e)]);class _0x557a6f{constructor(_0x5d79f5,_0x2390dc,_0x178996,_0x327b5e){const _0x20f335=_0x465458;this[_0x20f335(0x657)]=_0x5d79f5,this[_0x20f335(0x7e4)]=_0x2390dc,this[_0x20f335(0x359)]=_0x178996,this[_0x20f335(0x80a)]=_0x327b5e,this[_0x20f335(0x372)]=_0x178996;}['_info'](){const _0x28c939=_0x465458;return this[_0x28c939(0x657)]['_n'](_0x28c939(0x427),[this[_0x28c939(0x359)],this[_0x28c939(0x80a)]],![]);}get['doc'](){const _0x30a535=_0x465458;return this[_0x30a535(0x215)]()[_0x30a535(0x17c)];}get[_0x465458(0x862)](){const _0xae2c02=_0x465458,_0x2e5236=this[_0xae2c02(0x215)]()[_0xae2c02(0x32c)];return _0x2e5236?this[_0xae2c02(0x657)]['okdb'][_0xae2c02(0x33b)][_0xae2c02(0x4ff)](_0x2e5236):undefined;}get[_0x465458(0x397)](){const _0x3fd7b7=_0x465458;return this[_0x3fd7b7(0x215)]()[_0x3fd7b7(0x397)];}get[_0x465458(0x28f)](){const _0x5ed815=_0x465458;return this[_0x5ed815(0x215)]()[_0x5ed815(0x28f)];}get[_0x465458(0x87f)](){const _0x3b24b6=_0x465458;return this[_0x3b24b6(0x215)]()[_0x3b24b6(0x87f)];}get[_0x465458(0x392)](){const _0x26f712=_0x465458;return this[_0x26f712(0x215)]()[_0x26f712(0x392)];}get[_0x465458(0x5e7)](){const _0x31a76a=_0x465458;return this[_0x31a76a(0x215)]()[_0x31a76a(0x5e7)];}get['lastError'](){const _0xd87e13=_0x465458,_0x5d95ab=this[_0xd87e13(0x215)]()['lastError'];return _0x5d95ab?Object[_0xd87e13(0x60e)](new Error(_0x5d95ab[_0xd87e13(0x5e1)]),{'code':_0x5d95ab[_0xd87e13(0x22a)]}):null;}get[_0x465458(0x48a)](){const _0x3d184f=_0x465458;return this[_0x3d184f(0x215)]()['runtimeState'];}get[_0x465458(0x630)](){const _0x59120f=_0x465458;return this[_0x59120f(0x657)][_0x59120f(0x1c5)]['get'](this[_0x59120f(0x359)])??null;}get[_0x465458(0x68c)](){const _0x5e6baf=_0x465458;if(!this[_0x5e6baf(0x215)]()[_0x5e6baf(0x259)])return null;const _0x309ee5=this;return new Proxy({},{'get'(_0x39096d,_0x34cb48){const _0x5c76a3=_0x5e6baf;if(typeof _0x34cb48==='symbol'||_0x34cb48===_0x5c76a3(0x8a9))return undefined;if(_0x2ceef4[_0x309ee5['type']]&&_0x2ceef4[_0x309ee5[_0x5c76a3(0x359)]]['has'](_0x34cb48))return _0x309ee5[_0x5c76a3(0x657)]['_n']('apiCall',[_0x309ee5[_0x5c76a3(0x359)],_0x309ee5[_0x5c76a3(0x80a)],_0x34cb48,[]],![])['value'];if(_0x309ee5[_0x5c76a3(0x359)]==='indexer'&&_0x34cb48===_0x5c76a3(0x803))return async(_0x5c22ba={})=>{const _0x367632=_0x5c76a3,_0x42759f=(_0x7b02fe,..._0x8a5e55)=>_0x309ee5[_0x367632(0x657)]['_n']('apiCall',[_0x309ee5[_0x367632(0x359)],_0x309ee5['name'],_0x7b02fe,_0x8a5e55],!![])[_0x367632(0x658)],_0x3f7d31=_0x42759f(_0x367632(0x1a4),_0x5c22ba??{}),_0x557f91=Date['now']();for(;;){const _0x22b7b6=await _0x309ee5[_0x367632(0x657)][_0x367632(0x263)][_0x367632(0x580)](()=>_0x42759f(_0x367632(0x6c4)));if(_0x22b7b6[_0x367632(0x270)]>=_0x22b7b6['head'])return;Date[_0x367632(0x785)]()-_0x557f91>=_0x3f7d31&&_0x42759f('flushTimeoutError',_0x5c22ba??{},_0x22b7b6),await new Promise(_0x564db4=>setTimeout(_0x564db4,0x3));}};return(..._0x47fcb8)=>{const _0x413679=_0x5c76a3,_0xbba28e=()=>_0x309ee5[_0x413679(0x657)]['_n'](_0x413679(0x198),[_0x309ee5[_0x413679(0x359)],_0x309ee5['name'],_0x34cb48,_0x47fcb8],!![]),_0xdf29b5=_0x437689=>{const _0x26f48f=_0x413679;if(_0x437689&&_0x437689['__absent'])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x34cb48+'\x27');return _0x437689[_0x26f48f(0x658)];};if(_0x21974b[_0x413679(0x868)](_0x309ee5[_0x413679(0x359)])&&!_0x2995c0['has'](_0x34cb48)){const _0x5eaa4a=_0x309ee5[_0x413679(0x657)][_0x413679(0x263)];return _0x5eaa4a['_retryPending'](()=>_0x5eaa4a[_0x413679(0x580)](_0xbba28e))[_0x413679(0x8a9)](_0xdf29b5);}if(_0x411001[_0x413679(0x868)](_0x309ee5[_0x413679(0x359)]))try{return Promise[_0x413679(0x4a2)](_0xdf29b5(_0xbba28e()));}catch(_0x51fc3e){return Promise[_0x413679(0x87c)](_0x51fc3e);}return _0xdf29b5(_0xbba28e());};}});}async['load'](_0x33bdb2={}){const _0x1cd09c=_0x465458;return await this[_0x1cd09c(0x657)]['_nm'](_0x1cd09c(0x4b9),[this[_0x1cd09c(0x359)],this[_0x1cd09c(0x80a)],_0x33bdb2]),this;}async['start'](){const _0x4589ca=_0x465458;await this[_0x4589ca(0x657)][_0x4589ca(0x581)](_0x4589ca(0x316),[this[_0x4589ca(0x359)],this[_0x4589ca(0x80a)]]);}async['stop'](_0x32d97b={}){const _0x556721=_0x465458;await this[_0x556721(0x657)][_0x556721(0x581)](_0x556721(0x212),[this[_0x556721(0x359)],this[_0x556721(0x80a)],_0x32d97b]);}async[_0x465458(0x5cd)](_0x1cdc9d={}){const _0x107524=_0x465458;return await this[_0x107524(0x657)][_0x107524(0x581)](_0x107524(0x5cd),[this[_0x107524(0x359)],this[_0x107524(0x80a)],_0x1cdc9d]),this;}async[_0x465458(0x466)](){const _0x411bc0=_0x465458;await this[_0x411bc0(0x657)][_0x411bc0(0x581)](_0x411bc0(0x7e0),[this[_0x411bc0(0x359)],this[_0x411bc0(0x80a)]]);}}class _0xe6d9{constructor(_0x28ff26,_0x33f654=null,_0x110ee4=null){const _0x5b20b5=_0x465458;this[_0x5b20b5(0x263)]=_0x28ff26,this[_0x5b20b5(0x7fe)]=_0x33f654,this[_0x5b20b5(0x1cb)]=_0x33f654===null,this[_0x5b20b5(0x1d7)]=_0x110ee4||this,this[_0x5b20b5(0x1c5)]=this['_root']===this?_0x30274d(this):this[_0x5b20b5(0x1d7)][_0x5b20b5(0x1c5)],this[_0x5b20b5(0x456)]=new Map();}['_n'](_0x2bdae6,_0xc34245,_0x41a666=!![]){const _0xb33534=_0x465458;return this[_0xb33534(0x263)][_0xb33534(0x7b0)](_0xb33534(0x41f),this[_0xb33534(0x7fe)],_0x2bdae6,_0xc34245,_0x41a666);}[_0x465458(0x581)](_0x197ced,_0x1437e1){const _0x5297bd=_0x465458;return this[_0x5297bd(0x263)]['_callMacro'](_0x5297bd(0x41f),this[_0x5297bd(0x7fe)],_0x197ced,_0x1437e1,!![]);}get[_0x465458(0x81f)](){const _0x302cb9=_0x465458;return this['envName']?this[_0x302cb9(0x263)]['env'](this[_0x302cb9(0x7fe)]):null;}['_wrap'](_0x203dc4){const _0x2cb09f=_0x465458;if(!_0x203dc4)return null;let _0x476060=this[_0x2cb09f(0x456)][_0x2cb09f(0x4ff)](_0x203dc4[_0x2cb09f(0x7e4)]);return!_0x476060&&(_0x476060=new _0x557a6f(this,_0x203dc4[_0x2cb09f(0x7e4)],_0x203dc4[_0x2cb09f(0x359)],_0x203dc4[_0x2cb09f(0x80a)]),this[_0x2cb09f(0x456)]['set'](_0x203dc4[_0x2cb09f(0x7e4)],_0x476060)),_0x476060;}['registerDriver'](_0x7a05c1,_0x369f04){const _0x2651eb=_0x465458;if(!_0x7a05c1||typeof _0x7a05c1!=='string')throw new _0x10f50f(_0x2651eb(0x857),_0x2651eb(0x4fd),{'type':_0x7a05c1});if(!_0x369f04||typeof _0x369f04!=='object')throw new _0x10f50f('Engine\x20driver\x20for\x20\x22'+_0x7a05c1+_0x2651eb(0x1ea),_0x2651eb(0x7ab),{'type':_0x7a05c1});if(typeof _0x369f04[_0x2651eb(0x84e)]!==_0x2651eb(0x5c4))throw new _0x10f50f('Engine\x20driver\x20for\x20\x22'+_0x7a05c1+_0x2651eb(0x29d),_0x2651eb(0x399),{'type':_0x7a05c1});const _0x12c2ae=this[_0x2651eb(0x1d7)];if(_0x12c2ae[_0x2651eb(0x1c5)][_0x2651eb(0x868)](_0x7a05c1))throw new _0x10f50f(_0x2651eb(0x414)+_0x7a05c1+'\x22',_0x2651eb(0x724),{'type':_0x7a05c1});const _0x54e9eb=_0x37bf08['regObject'](_0x369f04,this[_0x2651eb(0x263)]),_0x4f6500=_0x58f349[_0x2651eb(0x7f8)](_0x11dd90=>typeof _0x369f04[_0x11dd90]===_0x2651eb(0x5c4)),_0xdb4991=_0x369f04['docs']&&typeof _0x369f04[_0x2651eb(0x360)]==='object'?_0x369f04[_0x2651eb(0x360)]:{};this[_0x2651eb(0x263)]['_call']('engines',null,_0x2651eb(0x4d9),[_0x7a05c1,{'$id':_0x54e9eb,'has':_0x4f6500,'docs':_0xdb4991}]),_0x12c2ae[_0x2651eb(0x1c5)][_0x2651eb(0x822)](_0x7a05c1,_0x369f04);}get['_started'](){const _0x510c3f=_0x465458;return this[_0x510c3f(0x263)][_0x510c3f(0x7b0)](_0x510c3f(0x41f),null,_0x510c3f(0x30b),[],![]);}get[_0x465458(0x730)](){const _0x48a808=this;return{get '_started'(){const _0x12807d=_0x20ac;return _0x48a808[_0x12807d(0x17f)];}};}[_0x465458(0x77f)](_0x2bd826){const _0x57aa6a=_0x465458;if(!_0x2bd826||typeof _0x2bd826!==_0x57aa6a(0x86d))throw new _0x10f50f('Engine\x20template\x20must\x20be\x20a\x20plain\x20object',_0x57aa6a(0x43a));if(!_0x2bd826['id']||typeof _0x2bd826['id']!=='string')throw new _0x10f50f(_0x57aa6a(0x4ac),_0x57aa6a(0x43a));if(![_0x57aa6a(0x1f8),'pipeline']['includes'](_0x2bd826[_0x57aa6a(0x5f2)]))throw new _0x10f50f(_0x57aa6a(0x4e6)+_0x2bd826['id'],'ENGINE_INVALID_TEMPLATE');if(typeof _0x2bd826[_0x57aa6a(0x6f3)]!==_0x57aa6a(0x5c4))throw new _0x10f50f(_0x57aa6a(0x35f)+_0x2bd826['id'],'ENGINE_INVALID_TEMPLATE');const _0x5c5b70=this[_0x57aa6a(0x263)],_0x552ec5=typeof _0x2bd826['inputSchema']===_0x57aa6a(0x5c4);return this['_n']('registerTemplate',[{'id':_0x2bd826['id'],'kind':_0x2bd826[_0x57aa6a(0x5f2)],'family':_0x2bd826['family']??null,'engineType':_0x2bd826[_0x57aa6a(0x372)]??null,'pipelineFamily':_0x2bd826[_0x57aa6a(0x5fe)]??null,'recommended':_0x2bd826[_0x57aa6a(0x23d)]===!![],'summary':_0x2bd826[_0x57aa6a(0x64c)]??null,'description':_0x2bd826['description']??null,'inputSchema':_0x552ec5?null:_0x2bd826[_0x57aa6a(0x1ca)]??null,'inputSchemaFn':_0x552ec5?()=>_0x2bd826[_0x57aa6a(0x1ca)](_0x5c5b70):null,'defaults':_0x2bd826[_0x57aa6a(0x619)]??null,'notes':Array[_0x57aa6a(0x55b)](_0x2bd826[_0x57aa6a(0x62a)])?_0x2bd826['notes']:[],'links':Array['isArray'](_0x2bd826[_0x57aa6a(0x7d0)])?_0x2bd826[_0x57aa6a(0x7d0)]:[],'build':(_0x50e212,_0x1a5c1d)=>_0x2bd826['build'](_0x50e212??{},{'okdb':_0x5c5b70,'envName':_0x1a5c1d??null})}],![]);}[_0x465458(0x6eb)](_0x2c916a){const _0x2373f3=_0x465458;return this['_n'](_0x2373f3(0x6eb),[_0x2c916a??null],![]);}['getTemplate'](_0xe7d804){const _0x541897=_0x465458;return this['_n'](_0x541897(0x72d),[_0xe7d804],![]);}[_0x465458(0x654)](_0x282e4d,_0x5acaf8,_0xdde24f){const _0xf1e341=_0x465458;return this['_n']('previewTemplate',[_0x282e4d,_0x5acaf8,_0xdde24f??this[_0xf1e341(0x7fe)]],![]);}[_0x465458(0x2aa)](){const _0x17affa=_0x465458;return this['_n'](_0x17affa(0x2aa),[],![]);}async[_0x465458(0x84e)](){const _0x2f0084=_0x465458;return this[_0x2f0084(0x581)]('start',[]);}async['stop'](){const _0x373d4c=_0x465458;return this[_0x373d4c(0x581)](_0x373d4c(0x584),[]);}async[_0x465458(0x8a5)](_0x2acb8c,_0x1533b3,_0x206310={},_0x4b84d6={},_0x4afa31={}){const _0x100d3b=_0x465458;return this[_0x100d3b(0x35d)](await this[_0x100d3b(0x581)](_0x100d3b(0x8a5),[_0x2acb8c,_0x1533b3,_0x206310,_0x4b84d6,_0x4afa31]));}async[_0x465458(0x283)](_0x915e2e,_0x3478ef,_0x310aad={},_0x14b366={},_0x4d27f7={}){const _0x4fde0c=_0x465458;return this[_0x4fde0c(0x35d)](await this[_0x4fde0c(0x581)](_0x4fde0c(0x283),[_0x915e2e,_0x3478ef,_0x310aad,_0x14b366,_0x4d27f7]));}['getEngine'](_0x42d5e7,_0x291794){const _0x33c1d1=_0x465458;return this['_wrap'](this['_n'](_0x33c1d1(0x2e8),[_0x42d5e7,_0x291794],![]));}[_0x465458(0x210)](_0x1c9a53,_0x3680ab){const _0x28286f=_0x465458;return this['_wrap'](this['_n'](_0x28286f(0x210),[_0x1c9a53,_0x3680ab],![]));}[_0x465458(0x690)](_0x16570e){const _0x7b0c32=_0x465458;return this['_n']('list',[_0x16570e??null],![])[_0x7b0c32(0x4ba)](_0x5ae96d=>this[_0x7b0c32(0x35d)](_0x5ae96d));}async[_0x465458(0x52a)](_0x1356ea,_0x571b84){const _0x760103=_0x465458;return this[_0x760103(0x35d)](await this['_nm'](_0x760103(0x52a),[_0x1356ea,_0x571b84]));}async[_0x465458(0x897)](_0x4ced0d,_0x227a86){const _0x1ad627=_0x465458;return this[_0x1ad627(0x456)][_0x1ad627(0x6f8)](_0x4ced0d+':'+_0x227a86),this[_0x1ad627(0x581)](_0x1ad627(0x897),[_0x4ced0d,_0x227a86]);}async[_0x465458(0x33c)](_0xf92f04){const _0x3ac860=_0x465458;return this[_0x3ac860(0x581)](_0x3ac860(0x33c),[_0xf92f04]);}async[_0x465458(0x67f)](){const _0x3a2afc=_0x465458;return this[_0x3a2afc(0x581)](_0x3a2afc(0x67f),[]);}}function _0x30274d(_0x1ed870){const _0x2630c8=_0x465458,_0x57a4dc=new Map();return{'has':_0x35feaf=>_0x57a4dc[_0x2630c8(0x868)](_0x35feaf)||_0x1ed870[_0x2630c8(0x263)][_0x2630c8(0x7b0)](_0x2630c8(0x41f),null,'hasDriver',[_0x35feaf],![]),'get':_0x1c7b6f=>_0x57a4dc[_0x2630c8(0x4ff)](_0x1c7b6f),'set':()=>{const _0x2f79de=_0x2630c8;throw new _0x10f50f(_0x2f79de(0x72c),_0x2f79de(0x185));},'_set':(_0x299da6,_0x16c13e)=>_0x57a4dc[_0x2630c8(0x398)](_0x299da6,_0x16c13e),'keys':()=>_0x57a4dc[_0x2630c8(0x542)](),'entries':()=>_0x57a4dc[_0x2630c8(0x207)](),'values':()=>_0x57a4dc['values'](),get 'size'(){const _0x4b73e1=_0x2630c8;return _0x57a4dc[_0x4b73e1(0x4ad)];},[Symbol['iterator']]:()=>_0x57a4dc[Symbol['iterator']]()};}class _0x211a8a{constructor(_0x4b5017,_0x47e2af=null){const _0x15671d=_0x465458;this[_0x15671d(0x263)]=_0x4b5017,this[_0x15671d(0x7fe)]=_0x47e2af;}['_n'](_0x15e12a,_0x12d7c8,_0x1a57ee=!![]){const _0x3dc685=_0x465458;return this[_0x3dc685(0x263)][_0x3dc685(0x7b0)](_0x3dc685(0x5fc),this[_0x3dc685(0x7fe)],_0x15e12a,_0x12d7c8,_0x1a57ee);}['_nm'](_0x45bcc1,_0x12a09a){const _0x491e54=_0x465458;return this[_0x491e54(0x263)][_0x491e54(0x217)](_0x491e54(0x5fc),this['envName'],_0x45bcc1,_0x12a09a,!![]);}get[_0x465458(0x241)](){return this['envName']===null;}async[_0x465458(0x4c3)](_0x435a48){return this['_n']('ensure',[_0x435a48]);}async[_0x465458(0x4ff)](_0x1e14b0,_0x3cc564){const _0x42b542=_0x465458;return this['_n'](_0x42b542(0x4ff),[_0x1e14b0,_0x3cc564??null],![]);}async[_0x465458(0x341)](_0x1a5cb9,_0x7dec3b){const _0x6e2d4d=_0x465458;return this['_n'](_0x6e2d4d(0x341),[_0x1a5cb9,_0x7dec3b??null],![]);}async[_0x465458(0x690)](_0xb87fac){const _0x1d6687=_0x465458;return this['_n'](_0x1d6687(0x690),[_0xb87fac??null],![]);}async['listRecords'](_0x44de6c={}){const _0x2e1d0d=_0x465458;return this['_n'](_0x2e1d0d(0x1ff),[_0x44de6c?.[_0x2e1d0d(0x7fe)]??null],![]);}[_0x465458(0x4b6)](_0x3d0c84,_0x3b29f6){const _0x53c9ba=_0x465458;return this['_n'](_0x53c9ba(0x4b6),[_0x3d0c84,_0x3b29f6??null],![]);}async[_0x465458(0x1d9)](_0x446eff){const _0xd57ab5=_0x465458;return this[_0xd57ab5(0x581)]('create',[_0x446eff]);}async['update'](_0x13a5f4,_0x3f1835){const _0x50f5c2=_0x465458;return this[_0x50f5c2(0x581)](_0x50f5c2(0x3dc),[_0x13a5f4,_0x3f1835]);}async['stop'](_0x562e42){const _0x43ba46=_0x465458;return this[_0x43ba46(0x581)](_0x43ba46(0x584),[_0x562e42]);}async[_0x465458(0x708)](_0x4f2a0e){const _0x33ab41=_0x465458;if(!_0x4f2a0e||typeof _0x4f2a0e!==_0x33ab41(0x86d)||!_0x4f2a0e['name']||!_0x4f2a0e['engines'])return _0x4f2a0e;for(let _0x27bce2=0x0;_0x27bce2<0x3;_0x27bce2++)await new Promise(_0x12af8f=>setImmediate(_0x12af8f));try{const _0x287c90=this[_0x33ab41(0x7fe)]!==null?await this[_0x33ab41(0x4ff)](_0x4f2a0e['name']):_0x4f2a0e[_0x33ab41(0x81f)]?await this['get'](_0x4f2a0e[_0x33ab41(0x81f)],_0x4f2a0e['name']):null;return _0x287c90||_0x4f2a0e;}catch{return _0x4f2a0e;}}async[_0x465458(0x84e)](_0x5e59f7){const _0x5b3126=_0x465458;return this[_0x5b3126(0x708)](await this['_nm'](_0x5b3126(0x84e),[_0x5e59f7]));}async['restart'](_0x563c83){const _0x123600=_0x465458;return this[_0x123600(0x708)](await this['_nm'](_0x123600(0x52a),[_0x563c83]));}async[_0x465458(0x686)](_0x3e558a){const _0x569975=_0x465458;return this[_0x569975(0x581)](_0x569975(0x686),[_0x3e558a]);}async[_0x465458(0x493)](_0x38a8ef,_0x5f4c9a,_0x226f3f){const _0x31f91b=_0x465458;return this['_nm'](_0x31f91b(0x493),[_0x38a8ef,_0x5f4c9a,_0x226f3f]);}async[_0x465458(0x7e6)](_0x467990){const _0x26ab2b=_0x465458;return this[_0x26ab2b(0x581)](_0x26ab2b(0x7e6),[_0x467990]);}async[_0x465458(0x201)](){const _0x1d48fd=_0x465458;return this['_nm'](_0x1d48fd(0x201),[]);}async[_0x465458(0x3f9)](){const _0x4139b8=_0x465458;return this[_0x4139b8(0x581)](_0x4139b8(0x3f9),[]);}[_0x465458(0x1bc)](_0x34f229,_0x4930d9){return this['_n']('findOwner',[_0x34f229,_0x4930d9],![]);}}return engines={'OKDBEngines':_0xe6d9,'OKDBPipelines':_0x211a8a,'OKDBEngineHandle':_0x557a6f},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x320381=_0x1c5fdf;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x7cf096}=requireErrors(),_0x565a02=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x10c688{constructor(_0x115e74,_0x2e21ed=null){const _0x40d506=_0x20ac;this[_0x40d506(0x263)]=_0x115e74,this[_0x40d506(0x7fe)]=_0x2e21ed??_0x40d506(0x199);}get['env'](){const _0x2100e3=_0x20ac;return this[_0x2100e3(0x263)][_0x2100e3(0x33b)][_0x2100e3(0x4ff)](this[_0x2100e3(0x7fe)])??null;}['_n'](_0x202907,_0x26b730=[],_0x1fd648=!![]){const _0x271780=_0x20ac;try{return this[_0x271780(0x263)][_0x271780(0x7b0)]('functions',this[_0x271780(0x7fe)],_0x202907,_0x26b730,_0x1fd648);}catch(_0x47a363){throw _0x28c916(_0x47a363);}}async[_0x320381(0x581)](_0x4e50a9,_0x447adf=[]){const _0x59b356=_0x320381;try{return await this['okdb'][_0x59b356(0x217)]('functions',this[_0x59b356(0x7fe)],_0x4e50a9,_0x447adf,!![]);}catch(_0xf46726){throw _0x28c916(_0xf46726);}}async['list'](){const _0x41f809=_0x320381;return this['_n'](_0x41f809(0x690),[],![]);}async['get'](_0x24e9e6){const _0x24cf5a=_0x320381;return this['_n'](_0x24cf5a(0x4ff),[_0x24e9e6],![]);}async[_0x320381(0x1d9)](_0x505ae4){const _0x3e3606=_0x320381;return this['_n'](_0x3e3606(0x1d9),[_0x505ae4]);}async['update'](_0x18005d,_0x37145f={}){const _0xf2b05b=_0x320381;return this['_n'](_0xf2b05b(0x3dc),[_0x18005d,_0x37145f]);}async[_0x320381(0x7e6)](_0x1916c8){const _0x15960e=_0x320381;return this['_n'](_0x15960e(0x7e6),[_0x1916c8]);}async[_0x320381(0x5ef)](_0x1db5ab){const _0x16ec82=_0x320381,{functionName:functionName=null}=_0x7cf096(_0x1db5ab);return this['_n'](_0x16ec82(0x5ef),[{'functionName':functionName}],![]);}async[_0x320381(0x3ff)](_0x131400){const _0x4c0401=_0x320381;return this['_n'](_0x4c0401(0x3ff),[_0x131400],![]);}async[_0x320381(0x28e)](_0x3e2ea4){const _0x4a9cfb=_0x320381;return _0x3e2ea4=_0x7cf096(_0x3e2ea4,_0x4a9cfb(0x373)),this['_n']('recordRun',[_0x3e2ea4]);}async[_0x320381(0x373)](_0x44e48b,_0x324414=null,_0x387235={}){const _0x2b7c71=_0x320381,_0x1f64db={..._0x387235},_0x45cd60=_0x1f64db[_0x2b7c71(0x205)];if(_0x45cd60)_0x1f64db['aborted']=!!_0x45cd60[_0x2b7c71(0x4cb)];delete _0x1f64db[_0x2b7c71(0x205)];const _0x15b562=await this['_nm']('runStart',[_0x44e48b,_0x324414,_0x1f64db]),_0x550e44=this[_0x2b7c71(0x263)],_0x1f1ca6=()=>_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x577)]();if(_0x45cd60&&typeof _0x45cd60[_0x2b7c71(0x2ba)]==='function')_0x45cd60[_0x2b7c71(0x2ba)](_0x2b7c71(0x5b1),_0x1f1ca6,{'once':!![]});let _0x57964e=![];try{for(;;){const _0x26040e=_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x323)](_0x565a02);let _0x42c183;try{_0x42c183=await _0x550e44[_0x2b7c71(0x217)](_0x2b7c71(0x2fd),this[_0x2b7c71(0x7fe)],_0x2b7c71(0x1bb),[_0x15b562,!!_0x45cd60?.[_0x2b7c71(0x4cb)]],![],![]);}catch(_0x1fa91e){_0x57964e=!![];throw _0x28c916(_0x1fa91e);}if(!_0x42c183||_0x42c183[_0x2b7c71(0x181)]!==!![])return _0x57964e=!![],_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x577)](),_0x42c183;if(_0x42c183['progressed'])_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x577)]();await _0x26040e;}}finally{if(_0x45cd60&&typeof _0x45cd60[_0x2b7c71(0x469)]==='function')_0x45cd60['removeEventListener']('abort',_0x1f1ca6);if(!_0x57964e)try{_0x550e44['_call'](_0x2b7c71(0x2fd),this[_0x2b7c71(0x7fe)],_0x2b7c71(0x67e),[_0x15b562],![]);}catch{}}}async[_0x320381(0x4a1)](_0x17b5e4={},_0x2e5a05=null,_0x3f2c84={}){const _0x1b8037=_0x320381;return this[_0x1b8037(0x581)]('preview',[_0x17b5e4,_0x2e5a05,_0x3f2c84]);}async['stop'](){}}function _0x28c916(_0x1656d8){const _0x153185=_0x320381;if(_0x1656d8&&_0x1656d8[_0x153185(0x2f7)]&&_0x1656d8[_0x153185(0x2f7)][_0x153185(0x7f1)])_0x1656d8[_0x153185(0x43b)]=_0x1656d8[_0x153185(0x2f7)][_0x153185(0x7f1)];return _0x1656d8;}return functions={'OKDBFunctions':_0x10c688},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x374f58=_0x1c5fdf;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x2cea3d}=requireErrors();class _0x545b9f{constructor(_0x4f492c,_0x440491){const _0x428f23=_0x20ac;this[_0x428f23(0x813)]=_0x4f492c,this['_id']=_0x440491;}['_n'](_0x5563a8,_0x1f4498=[]){const _0x2bf592=_0x20ac;return this[_0x2bf592(0x813)]['_n'](_0x5563a8,[this[_0x2bf592(0x840)],..._0x1f4498]);}[_0x374f58(0x6ea)](){const _0x36f6c1=_0x374f58;return this['_n'](_0x36f6c1(0x6ea));}get[_0x374f58(0x673)](){return this['_n']('acquiredAt');}[_0x374f58(0x737)](){return this['_n']('holder');}[_0x374f58(0x4ae)](_0x5473b1){const _0x3b646f=_0x374f58;return this['_n'](_0x3b646f(0x4ae),[_0x5473b1]);}async[_0x374f58(0x600)](){return this['_n']('release');}}class _0x4649f9{constructor(_0xbbee10,_0x82d057,_0x4ef648,_0x475acc){const _0x2e5bbe=_0x374f58,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x2cea3d(_0x475acc);this[_0x2e5bbe(0x263)]=_0xbbee10,this['namespace']=_0x4ef648,this['_id']=_0xbbee10[_0x2e5bbe(0x7b0)](_0x2e5bbe(0x7cd),_0x82d057,_0x2e5bbe(0x3ca),[_0x4ef648,ttlMs,heartbeatMs],![]),this['_env']=_0x82d057;}['_n'](_0x49bd85,_0x4a3378=[]){const _0x3df0a9=_0x374f58;return this[_0x3df0a9(0x263)][_0x3df0a9(0x7b0)](_0x3df0a9(0x7cd),this[_0x3df0a9(0x55a)],_0x49bd85,_0x4a3378,![]);}[_0x374f58(0x6f1)](_0x1c11a9){const _0x40f7db=_0x374f58;return this['_n'](_0x40f7db(0x7e4),[this[_0x40f7db(0x840)],_0x1c11a9]);}async[_0x374f58(0x47b)](_0x5835c7,_0x339eae={},_0x2cb9ce={}){const _0x41c4f0=_0x374f58,_0x3976d0=this['_n']('tryAcquire',[this[_0x41c4f0(0x840)],_0x5835c7,_0x339eae,_0x2cb9ce]);return{'acquired':_0x3976d0[_0x41c4f0(0x1e4)],'handle':_0x3976d0[_0x41c4f0(0x76f)]==null?null:new _0x545b9f(this,_0x3976d0[_0x41c4f0(0x76f)]),'current':_0x3976d0['current']};}[_0x374f58(0x731)](_0x22b51d){const _0x375c1c=_0x374f58;return this['_n'](_0x375c1c(0x731),[this[_0x375c1c(0x840)],_0x22b51d]);}[_0x374f58(0x690)](){const _0x19d732=_0x374f58;return this['_n'](_0x19d732(0x690),[this[_0x19d732(0x840)]]);}[_0x374f58(0x3cf)](_0x4d90db){const _0x5e967b=_0x374f58;return this['_n'](_0x5e967b(0x3cf),[this[_0x5e967b(0x840)],_0x4d90db]);}[_0x374f58(0x491)](_0x48edb8,_0x45f138=0x3e8){const _0x2e7ea3=_0x374f58;return this['_n'](_0x2e7ea3(0x491),[this['_id'],_0x48edb8,_0x45f138]);}}return lock={'NativeLock':_0x4649f9,'NativeLockHandle':_0x545b9f},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x55ee12=_0x1c5fdf;if(hasRequiredProcessor)return processor[_0x55ee12(0x3f6)];hasRequiredProcessor=0x1;const _0x450f74=requireBridge(),{RawDb:_0x3ac81b}=requireRawdb(),{NativeLock:_0x46d3cd}=requireLock();function _0x42969d(_0x2d3ad5){}class _0x2f0d4f{constructor(_0x500891){const _0x16e093=_0x55ee12;this['env']=_0x500891,this['okdb']=_0x500891;try{this['_n'](_0x16e093(0x5b2),[(_0x57c9b9,_0x5acf9e)=>{const _0x2dcfcc=_0x16e093,_0x38c307=this[_0x2dcfcc(0x263)][_0x2dcfcc(0x3de)],_0x181505=_0x38c307?.[_0x57c9b9]??_0x38c307?.[_0x2dcfcc(0x427)];if(typeof _0x181505===_0x2dcfcc(0x5c4))_0x181505[_0x2dcfcc(0x765)](_0x38c307,_0x5acf9e);}],![]);}catch{}}['_n'](_0x466c57,_0x56cf7b,_0x575e61=!![]){const _0x4cc63e=_0x55ee12;return this[_0x4cc63e(0x81f)]['okdb'][_0x4cc63e(0x7b0)]('proc',this[_0x4cc63e(0x81f)]['name'],_0x466c57,_0x56cf7b,_0x575e61);}['register'](_0x5011b6,_0x3cdc78={}){const _0x9979e8=_0x55ee12,_0x58e318={..._0x3cdc78};if(typeof _0x58e318[_0x9979e8(0x2d8)]==='function'&&_0x58e318[_0x9979e8(0x522)]!=null)throw new Error(_0x9979e8(0x896)+'Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.');if(typeof _0x58e318['handler']==='string'&&_0x58e318[_0x9979e8(0x522)]!=null)throw new Error('processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both');if(_0x58e318[_0x9979e8(0x522)]!=null){if(!_0x58e318['module'][_0x9979e8(0x1aa)])throw new Error(_0x9979e8(0x433));const _0x1a8db0=_0x58e318[_0x9979e8(0x522)]['export']??_0x58e318[_0x9979e8(0x522)][_0x9979e8(0x7f5)]??_0x9979e8(0x7de),_0x595bad=require[_0x9979e8(0x4a2)](_0x58e318['module'][_0x9979e8(0x1aa)]),_0x3f64b3=require(_0x595bad),_0x351fa1=_0x3f64b3[_0x1a8db0]??_0x3f64b3[_0x9979e8(0x3e4)]??_0x3f64b3;if(typeof _0x351fa1!==_0x9979e8(0x5c4))throw new Error(_0x9979e8(0x415)+_0x58e318[_0x9979e8(0x522)][_0x9979e8(0x1aa)]+_0x9979e8(0x31d)+_0x1a8db0+_0x9979e8(0x627));this['env']['okdb']['_staticCall'](_0x9979e8(0x71c),'registerModule',[_0x595bad,_0x1a8db0,_0x351fa1]),_0x58e318[_0x9979e8(0x522)]={'path':_0x595bad,'export':_0x1a8db0};}if(_0x58e318['quantum']!=null){if(typeof _0x58e318[_0x9979e8(0x27e)]['module']!==_0x9979e8(0x460))throw new Error(_0x9979e8(0x2ad));const _0x1f5866=require['resolve'](_0x58e318[_0x9979e8(0x27e)]['module']),_0x2c744e=require(_0x1f5866),_0x1f9d9f=_0x58e318['quantum'][_0x9979e8(0x7f5)],_0x53bd5e=_0x1f9d9f?_0x2c744e[_0x1f9d9f]:_0x2c744e[_0x9979e8(0x3e4)]??_0x2c744e;if(typeof _0x53bd5e===_0x9979e8(0x5c4)){const _0x24cb5b=_0x1f9d9f?_0x58e318['quantum'][_0x9979e8(0x522)]+'#'+_0x1f9d9f:_0x58e318[_0x9979e8(0x27e)][_0x9979e8(0x522)];this[_0x9979e8(0x81f)][_0x9979e8(0x263)][_0x9979e8(0x451)](_0x9979e8(0x71c),'registerQuantum',[_0x24cb5b,_0x53bd5e]);}_0x58e318['quantum']={..._0x58e318[_0x9979e8(0x27e)]};}_0x58e318[_0x9979e8(0x653)]!=null&&typeof _0x58e318[_0x9979e8(0x653)]===_0x9979e8(0x86d)&&(_0x58e318['payload']={'$payload':_0x450f74[_0x9979e8(0x566)](_0x58e318[_0x9979e8(0x653)],this[_0x9979e8(0x81f)]['okdb'])});if(_0x58e318[_0x9979e8(0x686)]!=null&&typeof _0x58e318[_0x9979e8(0x686)]!==_0x9979e8(0x5c4))throw new Error(_0x9979e8(0x6c8));const _0x5e7617=this['_n'](_0x9979e8(0x58b),[_0x5011b6??null,_0x58e318]);return this[_0x9979e8(0x260)](_0x5e7617['id'],_0x5e7617[_0x9979e8(0x5b6)]);}[_0x55ee12(0x260)](_0x52086a,_0x29ff14){const _0x58b7e7=_0x55ee12,_0x3cb0c4=this,_0x1f39bd=async()=>{const _0x49cc6f=_0x20ac;_0x3cb0c4['_n'](_0x49cc6f(0x5a3),[_0x52086a]);};return _0x1f39bd['id']=_0x52086a,_0x1f39bd[_0x58b7e7(0x5b6)]=_0x29ff14,_0x1f39bd[_0x58b7e7(0x536)]=()=>_0x29ff14?_0x3cb0c4['_n'](_0x58b7e7(0x78f),[_0x52086a],![]):0x0,_0x1f39bd[_0x58b7e7(0x392)]=()=>_0x3cb0c4[_0x58b7e7(0x4ff)](_0x52086a),_0x1f39bd[_0x58b7e7(0x6dd)]=_0x1f39bd[_0x58b7e7(0x392)],_0x1f39bd[_0x58b7e7(0x444)]=()=>_0x3cb0c4['pause'](_0x52086a),_0x1f39bd[_0x58b7e7(0x6f9)]=()=>_0x3cb0c4[_0x58b7e7(0x6f9)](_0x52086a),_0x1f39bd[_0x58b7e7(0x75a)]=()=>_0x3cb0c4[_0x58b7e7(0x75a)](_0x52086a),_0x1f39bd[_0x58b7e7(0x764)]=()=>_0x3cb0c4[_0x58b7e7(0x764)](_0x52086a),_0x1f39bd[_0x58b7e7(0x4fe)]=_0x8f0ce4=>_0x3cb0c4[_0x58b7e7(0x4fe)](_0x52086a,_0x8f0ce4),_0x1f39bd;}get[_0x55ee12(0x7a2)](){const _0x5f373f=_0x55ee12;try{return this['_n'](_0x5f373f(0x690),[],![])[_0x5f373f(0x4ba)](_0x4d56d3=>({'id':_0x4d56d3['id']}));}catch{return[];}}async[_0x55ee12(0x2cb)](_0x3cbf58){const _0x109d61=_0x55ee12;return new Set(this['_n'](_0x109d61(0x2cb),[]));}[_0x55ee12(0x7ad)](_0x3bad35){const _0x367e9f=_0x55ee12;return this['_n'](_0x367e9f(0x7ad),[[..._0x3bad35??[]]]);}get['_envWide'](){const _0xff214b=_0x55ee12;return new Set(this['_n'](_0xff214b(0x690),[],![])[_0xff214b(0x7f8)](_0x1f79fc=>_0x1f79fc[_0xff214b(0x359)]==null)[_0xff214b(0x4ba)](_0x5c8bf1=>_0x5c8bf1['id']));}[_0x55ee12(0x32d)](){}get[_0x55ee12(0x813)](){const _0xb2cba9=_0x55ee12;if(!this[_0xb2cba9(0x696)]){const _0x489a0a=new _0x46d3cd(this[_0xb2cba9(0x81f)][_0xb2cba9(0x263)],this['env'][_0xb2cba9(0x80a)],_0xb2cba9(0x71c)),_0x55ed47=this[_0xb2cba9(0x81f)];_0x489a0a[_0xb2cba9(0x567)]=()=>new _0x3ac81b(_0x55ed47,'~lock'),this[_0xb2cba9(0x696)]=_0x489a0a;}return this[_0xb2cba9(0x696)];}[_0x55ee12(0x88d)](_0x44deeb,_0x149380){const _0x54240c=_0x55ee12;return this['_n'](_0x54240c(0x3fd),[typeof _0x44deeb===_0x54240c(0x460)?_0x44deeb:_0x44deeb['id'],_0x149380?.[_0x54240c(0x5e1)]??String(_0x149380??'')]);}get[_0x55ee12(0x82a)](){const _0x45bd08=_0x55ee12;return this[_0x45bd08(0x643)]||(this[_0x45bd08(0x643)]=new _0x3ac81b(this[_0x45bd08(0x81f)],_0x45bd08(0x473)));}get[_0x55ee12(0x76b)](){const _0x150f42=_0x55ee12,_0x4009dd=this,_0x26fddb=_0x33ce21=>{const _0x25ea4b=_0x20ac,_0x8e2c59=()=>_0x4009dd['_n'](_0x25ea4b(0x29a),[_0x33ce21],![]);if(!_0x8e2c59())return undefined;const _0x1ab7be=_0x1608da=>()=>_0x8e2c59()?.[_0x1608da],_0x1cfd20={'id':_0x33ce21},_0xa2a57a=(_0x56148e,_0x5a6f3f,_0x25b11e)=>Object[_0x25ea4b(0x834)](_0x1cfd20,_0x56148e,{'get':_0x5a6f3f,'set':_0x25b11e,'enumerable':!![],'configurable':!![]});return _0xa2a57a(_0x25ea4b(0x827),_0x1ab7be(_0x25ea4b(0x827))),_0xa2a57a(_0x25ea4b(0x851),_0x1ab7be(_0x25ea4b(0x851))),_0xa2a57a('paused',_0x1ab7be('paused')),_0xa2a57a('lastClock',_0x1ab7be(_0x25ea4b(0x1c3)),_0x5a28f8=>_0x4009dd['_n'](_0x25ea4b(0x4d1),[_0x33ce21,_0x5a28f8])),_0xa2a57a('cursorKey',_0x1ab7be(_0x25ea4b(0x5b6))),_0xa2a57a(_0x25ea4b(0x213),_0x1ab7be(_0x25ea4b(0x4c1)),_0x2218ac=>_0x4009dd['_n']('setClaimGated',[_0x33ce21,!!_0x2218ac])),_0xa2a57a(_0x25ea4b(0x739),_0x1ab7be(_0x25ea4b(0x783))),_0xa2a57a(_0x25ea4b(0x2fb),_0x1ab7be(_0x25ea4b(0x2fb))),_0xa2a57a(_0x25ea4b(0x297),_0x1ab7be(_0x25ea4b(0x297))),_0xa2a57a(_0x25ea4b(0x79a),_0x1ab7be(_0x25ea4b(0x4c6)),_0x372f93=>_0x4009dd['_n'](_0x25ea4b(0x6a6),[_0x33ce21,_0x372f93])),_0xa2a57a('meta',()=>_0x4009dd[_0x25ea4b(0x4ff)](_0x33ce21)?.[_0x25ea4b(0x29e)]),_0xa2a57a(_0x25ea4b(0x5b4),()=>_0x8e2c59()?.[_0x25ea4b(0x7b1)]?{'isHeld':()=>!!_0x8e2c59()?.['lockHeld']}:null),_0xa2a57a('_pokeHandler',()=>_0x8e2c59()?.[_0x25ea4b(0x73c)]?()=>{}:null),_0xa2a57a(_0x25ea4b(0x6c3),()=>_0x8e2c59()?.[_0x25ea4b(0x538)]?{}:null),_0xa2a57a(_0x25ea4b(0x232),()=>_0x8e2c59()?.[_0x25ea4b(0x8aa)]?{}:null),_0x1cfd20;},_0x293fe0=()=>_0x4009dd['_n']('list',[],![])[_0x150f42(0x4ba)](_0xdc73f7=>_0xdc73f7['id']);return{'get':_0x3dafec=>_0x26fddb(_0x3dafec),'has':_0x54c132=>_0x293fe0()[_0x150f42(0x75e)](_0x54c132),get 'size'(){const _0x43cd01=_0x150f42;return _0x293fe0()[_0x43cd01(0x2f6)];},'keys':()=>_0x293fe0()[Symbol[_0x150f42(0x84c)]](),'values':()=>_0x293fe0()['map'](_0x26fddb)[Symbol[_0x150f42(0x84c)]](),'entries':()=>_0x293fe0()['map'](_0x9dba50=>[_0x9dba50,_0x26fddb(_0x9dba50)])[Symbol[_0x150f42(0x84c)]](),[Symbol[_0x150f42(0x84c)]]:()=>_0x293fe0()['map'](_0x169441=>[_0x169441,_0x26fddb(_0x169441)])[Symbol['iterator']](),'forEach':_0x46b2de=>_0x293fe0()[_0x150f42(0x175)](_0x590091=>_0x46b2de(_0x26fddb(_0x590091),_0x590091))};}async[_0x55ee12(0x201)](){return this['_n']('stopAll',[]);}[_0x55ee12(0x690)](){const _0x212fb6=_0x55ee12,_0x48d38f=this['_n'](_0x212fb6(0x690),[],![]);if(!this[_0x212fb6(0x81f)]['name']['startsWith']('~'))try{const _0x2fee7d=this[_0x212fb6(0x81f)][_0x212fb6(0x263)][_0x212fb6(0x29e)];for(const _0xd537c2 of _0x2fee7d[_0x212fb6(0x17d)](this[_0x212fb6(0x81f)]['name'])){for(const _0x3b10c4 of _0x2fee7d[_0x212fb6(0x22f)](_0xd537c2,this[_0x212fb6(0x81f)][_0x212fb6(0x80a)])){const _0x1e8de8=_0x212fb6(0x57d)+_0xd537c2+':'+_0x3b10c4;_0x48d38f[_0x212fb6(0x3c0)]({'id':_0x1e8de8,'type':_0xd537c2,'mode':_0x212fb6(0x2c7),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x1e8de8,'meta':{'name':_0x1e8de8}});}}}catch{}return _0x48d38f;}[_0x55ee12(0x766)](){const _0x3d4bba=_0x55ee12;return this['_n'](_0x3d4bba(0x766),[],![]);}[_0x55ee12(0x844)](){const _0xc9f897=_0x55ee12;return this['_n'](_0xc9f897(0x844),[],![]);}[_0x55ee12(0x37c)](){const _0xfaff4e=_0x55ee12;return this['_n'](_0xfaff4e(0x37c),[],![]);}['get'](_0xc04e99){const _0x4e7dc7=_0x55ee12;return this['_n'](_0x4e7dc7(0x4ff),[_0xc04e99],![]);}[_0x55ee12(0x660)](_0x12f81d){const _0x4f5a54=_0x55ee12;return this[_0x4f5a54(0x4ff)](typeof _0x12f81d==='string'?_0x12f81d:_0x12f81d['id']);}[_0x55ee12(0x364)](_0x1e9301){return this['_n']('getCursor',[_0x1e9301],![]);}[_0x55ee12(0x899)](_0x37336e){const _0x23259a=_0x55ee12;return this['_n'](_0x23259a(0x899),[_0x37336e]);}[_0x55ee12(0x88c)](_0x46b955){const _0x3f5814=_0x55ee12;return this['_n'](_0x3f5814(0x88c),[_0x46b955]);}[_0x55ee12(0x19d)](_0x389e5c){const _0x181d5b=_0x55ee12;return this['_n'](_0x181d5b(0x19d),[_0x389e5c],![]);}[_0x55ee12(0x363)](_0xfc224b,_0x12111e){const _0x1eac5b=_0x55ee12;return this['_n'](_0x1eac5b(0x363),[_0xfc224b,_0x12111e]);}async[_0x55ee12(0x4fe)](_0x403aa7,_0x4763ad){const _0x287ead=_0x55ee12;return this['_n'](_0x287ead(0x4fe),[_0x403aa7,_0x4763ad??0x7530]);}['pause'](_0x190b0b){const _0x11b039=_0x55ee12;return this['_n'](_0x11b039(0x444),[_0x190b0b]);}['resume'](_0x25afe4){const _0x936c66=_0x55ee12;return this['_n'](_0x936c66(0x6f9),[_0x25afe4]);}async[_0x55ee12(0x7a1)](_0x285333){const _0xba4774=_0x55ee12;return this['_n'](_0xba4774(0x7a1),[_0x285333]);}[_0x55ee12(0x75a)](_0x898c20){const _0x5b5267=_0x55ee12;return this['_n'](_0x5b5267(0x75a),[_0x898c20]);}[_0x55ee12(0x764)](_0x2108c0){const _0x48fe97=_0x55ee12;return this['_n'](_0x48fe97(0x764),[_0x2108c0]);}[_0x55ee12(0x52a)](_0x226c0b,_0x549a4b={}){const _0x58b972=_0x55ee12;return this['_n'](_0x58b972(0x52a),[_0x226c0b,_0x549a4b]);}async[_0x55ee12(0x564)](_0x5bdd52,_0x4bd4cc,_0x5611d9){const _0x4c188f=_0x55ee12,[_0x168303,_0x55d3b7]=this['_n'](_0x4c188f(0x564),[_0x5bdd52,_0x4bd4cc,_0x5611d9]);return{'version':_0x168303,'flipClock':_0x55d3b7};}async[_0x55ee12(0x4cf)](_0x1498c2,_0x48b5a9,_0x10418a={}){const _0x25e234=_0x55ee12;return this['_n'](_0x25e234(0x4cf),[_0x1498c2,_0x48b5a9,_0x10418a]);}}_0x2f0d4f[_0x55ee12(0x772)]=function _0x4568bc(_0xa4ac88,_0x574bf2){const _0x3d5783=_0x55ee12;if(typeof _0xa4ac88!==_0x3d5783(0x460)||!_0xa4ac88)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x574bf2!==_0x3d5783(0x5c4))throw new Error(_0x3d5783(0x5be));_0x95f07('proc','registerHandler',[_0xa4ac88,_0x574bf2]);},_0x2f0d4f[_0x55ee12(0x3a6)]=function _0xd55eeb(_0x1a438a,_0x4d4057){const _0x40a029=_0x55ee12;if(typeof _0x1a438a!==_0x40a029(0x460)||!_0x1a438a)throw new Error(_0x40a029(0x69f));if(typeof _0x4d4057!==_0x40a029(0x5c4))throw new Error(_0x40a029(0x6b6));let _0xbd5b44=null;_0x95f07('proc',_0x40a029(0x3a6),[_0x1a438a,(_0x234bfb,_0x258744)=>{if(!_0xbd5b44)_0xbd5b44=_0x4d4057();return _0xbd5b44(_0x234bfb,_0x258744);}]);},_0x2f0d4f[_0x55ee12(0x7ba)]=_0x43e4bd=>/closed|not open|released/i[_0x55ee12(0x738)](String(_0x43e4bd)),_0x2f0d4f[_0x55ee12(0x842)]=![];function _0x95f07(_0x53484e,_0x48ae02,_0x525408){const {staticCall:_0x5b163e}=requireLib();return _0x5b163e(_0x53484e,_0x48ae02,_0x525408);}return processor[_0x55ee12(0x3f6)]=_0x2f0d4f,processor['exports'][_0x55ee12(0x458)]=_0x2f0d4f,processor[_0x55ee12(0x3f6)][_0x55ee12(0x553)]=_0x42969d,processor[_0x55ee12(0x3f6)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4b5457=_0x1c5fdf;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x2d435e={'PUT':_0x4b5457(0x77c),'REMOVE':_0x4b5457(0x7e6),'INDEX_DROP':'dropIndex','INDEX_REGISTER':'registerIndex','INDEX_RESET':'resetIndex','TYPE_REGISTER':_0x4b5457(0x2db),'TYPE_DROP':_0x4b5457(0x716),'FTS_REGISTER':_0x4b5457(0x37f),'FTS_DROP':_0x4b5457(0x83f),'FTS_RESET':_0x4b5457(0x3d6),'SCHEMA_SET':_0x4b5457(0x266),'SCHEMA_DROP':'dropSchema','TTL_SET':'setTtl','TTL_CLEAR':_0x4b5457(0x5b3)},_0x406cae={'SYSTEM_READY':_0x4b5457(0x6b1),'FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':_0x4b5457(0x1d2),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x4b5457(0x4bd),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x4b5457(0x27d),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':'item:create','ITEM_UPDATE':_0x4b5457(0x58c),'ITEM_REMOVE':_0x4b5457(0x574),'ITEM_PENDING':'item:pending','INDEX_RESET':_0x4b5457(0x809),'INDEX_READY':_0x4b5457(0x495),'INDEX_PROGRESS':_0x4b5457(0x6ce),'VIEW_PROGRESS':_0x4b5457(0x781),'INDEX_DROP':_0x4b5457(0x1d5),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':'fts:registered','FTS_DROP':_0x4b5457(0x423),'FTS_RESET':_0x4b5457(0x75d),'SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x4b5457(0x8a4),'UNIQUE_VIOLATION':_0x4b5457(0x348),'UNIQUE_VIOLATION_RESOLVED':_0x4b5457(0x4d2),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x4b5457(0x6e8),'SYNC_APPLY':'sync:apply','TXN_START':_0x4b5457(0x1a8),'TXN_END':_0x4b5457(0x4f7),'TXN_ROLLBACK':_0x4b5457(0x44b),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x4b5457(0x58e),'ENV_OPENED':_0x4b5457(0x2bb),'ENV_REMOVED':_0x4b5457(0x41e),'SYSTEM_ENV_RELEASE':_0x4b5457(0x6d7),'TTL_EXPIRED':_0x4b5457(0x826),'TTL_SET':_0x4b5457(0x38b),'TTL_CLEAR':_0x4b5457(0x6ad),'LICENSE_INVALID':_0x4b5457(0x4d7),'LICENSE_ADDED':_0x4b5457(0x5ff),'LICENSE_ACTIVATED':_0x4b5457(0x734),'LICENSE_REMOVED':_0x4b5457(0x86a)},_0x4ad119={'CREATING':_0x4b5457(0x3ab),'RESETTING':_0x4b5457(0x3e1),'READY':_0x4b5457(0x37b),'DROPPING':'dropping','WAITING':_0x4b5457(0x2d1),'ERROR':_0x4b5457(0x1f1)},_0x96d3dd={'CREATED':_0x4b5457(0x609),'STARTING':_0x4b5457(0x42f),'STARTED':'started','STOPPING':_0x4b5457(0x74c),'STOPPED':_0x4b5457(0x35c)},_0x39aa5e={'CREATING':'creating','READY':_0x4b5457(0x37b),'HALTED':_0x4b5457(0x2d7),'STOPPED':_0x4b5457(0x35c),'RESETTING':_0x4b5457(0x3e1)},_0x551481=Object[_0x4b5457(0x7ff)]({'POKE':_0x4b5457(0x7a6),'DRAIN':'bus:drain','TYPE_DROP':'bus:type_drop','PROC':_0x4b5457(0x2f9),'ENV_RELEASE':_0x4b5457(0x404)});return okdbEnums={'BUS_EVENTS':_0x551481,'CHANGE_ACTIONS':_0x2d435e,'EVENTS':_0x406cae,'INDEX_STATE':_0x4ad119,'OKDB_STATE':_0x96d3dd,'VIEW_STATE':_0x39aa5e},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x34b1de=_0x1c5fdf;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x5aaca8={'SKIP':Symbol['for'](_0x34b1de(0x757))},{OKDBError:_0x386d4c}=requireOkdbError(),_0x490286={'value':null,'done':!![]};class _0x3964ef{constructor(_0x594751){const _0x2a2715=_0x34b1de;this[_0x2a2715(0x623)]=_0x594751;}get['DONE'](){return _0x490286;}[Symbol[_0x34b1de(0x84c)]](){const _0x46fea0=_0x34b1de;return this[_0x46fea0(0x623)]();}[_0x34b1de(0x4ba)](_0x591361){const _0x2322d3=this;return new _0x3964ef(()=>{const _0x24fd88=_0x20ac,_0x284d78=_0x2322d3[Symbol[_0x24fd88(0x84c)]]();return{'next'(){const _0x3db355=_0x24fd88;for(;;){const _0x293914=_0x284d78[_0x3db355(0x60b)]();if(_0x293914['done'])return{'done':!![],'value':undefined};const _0x536da1=_0x591361(_0x293914[_0x3db355(0x658)]);if(_0x536da1===_0x5aaca8[_0x3db355(0x7d4)])continue;if(_0x536da1===_0x490286)return _0x284d78[_0x3db355(0x523)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x536da1};}},'return'(){const _0x30f630=_0x24fd88;return _0x284d78[_0x30f630(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x24fd88(0x84c)]](){return this;}};});}[_0x34b1de(0x7f8)](_0x6d2d1e){const _0x57fe88=_0x34b1de;return this[_0x57fe88(0x4ba)](_0x1a7d06=>_0x6d2d1e(_0x1a7d06)?_0x1a7d06:_0x5aaca8[_0x57fe88(0x7d4)]);}['forEach'](_0x5bd827){for(const _0x5f1de2 of this)_0x5bd827(_0x5f1de2);}[_0x34b1de(0x5d1)](_0x575ac1=0x0,_0x105762=Infinity){const _0xdd6e40=this;return new _0x3964ef(()=>{const _0x231d41=_0x20ac,_0x57fb7b=_0xdd6e40[Symbol['iterator']]();let _0x543f51=0x0;return{'next'(){const _0x5cc7e2=_0x20ac;for(;;){const _0x105e76=_0x57fb7b[_0x5cc7e2(0x60b)]();if(_0x105e76[_0x5cc7e2(0x1e2)])return{'done':!![],'value':undefined};const _0x569922=_0x543f51++;if(_0x569922<_0x575ac1)continue;if(_0x569922>=_0x105762)return _0x57fb7b[_0x5cc7e2(0x523)]?.(),{'done':!![],'value':undefined};return _0x105e76;}},'return'(){const _0x48aa1f=_0x20ac;return _0x57fb7b[_0x48aa1f(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x231d41(0x84c)]](){return this;}};});}['at'](_0x1be224){let _0x5ba4c7=0x0;for(const _0x1ec66c of this)if(_0x5ba4c7++===_0x1be224)return _0x1ec66c;return undefined;}[_0x34b1de(0x703)](_0x1b4d4f){const _0x193554=this;return new _0x3964ef(()=>{const _0x569e1e=_0x20ac,_0x6973fe=_0x193554[Symbol[_0x569e1e(0x84c)]]();let _0x5c650f=[];return{'next'(){const _0x4dc666=_0x569e1e;for(;;){if(_0x5c650f['length'])return{'done':![],'value':_0x5c650f[_0x4dc666(0x4eb)]()};const _0x11b531=_0x6973fe['next']();if(_0x11b531['done'])return{'done':!![],'value':undefined};const _0x91350d=_0x1b4d4f(_0x11b531['value']);if(Array[_0x4dc666(0x55b)](_0x91350d))_0x5c650f=_0x5c650f[_0x4dc666(0x18e)](_0x91350d);else{if(_0x91350d!=null&&(_0x91350d instanceof _0x3964ef||typeof _0x91350d[Symbol[_0x4dc666(0x84c)]]===_0x4dc666(0x5c4)&&_0x4dc666(0x6d3)in _0x91350d))_0x5c650f=_0x5c650f[_0x4dc666(0x18e)](Array[_0x4dc666(0x6a7)](_0x91350d));else{if(_0x91350d!==_0x5aaca8[_0x4dc666(0x7d4)])return{'done':![],'value':_0x91350d};}}}},'return'(){const _0x32bd5a=_0x569e1e;return _0x6973fe[_0x32bd5a(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x569e1e(0x84c)]](){return this;}};});}[_0x34b1de(0x18e)](_0xef8be7){const _0x547919=this;return new _0x3964ef(()=>{const _0xc7650d=_0x20ac;let _0x1b200b=_0x547919[Symbol['iterator']](),_0x23cbeb=![];return{'next'(){const _0x43ad6d=_0x20ac;for(;;){const _0x2b0b7f=_0x1b200b['next']();if(!_0x2b0b7f[_0x43ad6d(0x1e2)])return _0x2b0b7f;if(_0x23cbeb)return{'done':!![],'value':undefined};_0x23cbeb=!![],_0x1b200b=_0xef8be7[Symbol[_0x43ad6d(0x84c)]]();}},'return'(){const _0x39c89e=_0x20ac;return _0x1b200b[_0x39c89e(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xc7650d(0x84c)]](){return this;}};});}[_0x34b1de(0x37a)](_0x3edf06){const _0x90e04e=this;return new _0x3964ef(()=>{const _0x1353c4=_0x20ac,_0x2b48e4=_0x90e04e[Symbol[_0x1353c4(0x84c)]]();return{'next'(){const _0x2552f2=_0x1353c4;for(;;){try{return _0x2b48e4[_0x2552f2(0x60b)]();}catch(_0x3b29e5){const _0x380688=_0x3edf06(_0x3b29e5);if(_0x380688===_0x5aaca8[_0x2552f2(0x7d4)]||_0x380688===undefined)continue;return{'done':![],'value':_0x380688};}}},'return'(){return _0x2b48e4['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x34b1de(0x7bc)](){const _0x977945=_0x34b1de;return Array[_0x977945(0x6a7)](this);}get[_0x34b1de(0x6d3)](){return Array['from'](this);}}const _0x160c44={'total':0x0,'byLabel':{},'last':null};function _0x52c880(_0x17b1e8){const _0x1472b7=_0x34b1de;_0x160c44['total']++;if(_0x17b1e8)_0x160c44[_0x1472b7(0x7dc)][_0x17b1e8]=(_0x160c44[_0x1472b7(0x7dc)][_0x17b1e8]??0x0)+0x1;_0x160c44[_0x1472b7(0x3ea)]={'label':_0x17b1e8??null,'at':Date[_0x1472b7(0x785)]()};}function _0xde8b98(){const _0x287127=_0x34b1de;return{'total':_0x160c44[_0x287127(0x471)],'byLabel':{..._0x160c44['byLabel']},'last':_0x160c44[_0x287127(0x3ea)]};}function _0x3b86df(_0x1a5311,_0x27b5d8={}){const {getTxnId:_0x2950c1,resume:_0x962f77,label:_0x15522f,baseline:_0x314c1a}=_0x27b5d8;return new _0x3964ef(()=>{const _0xb088cf=_0x20ac;let _0x20fff0=null,_0x1362c3=![],_0x2200a7=![],_0x232987=![],_0x2ff8fe,_0x26c9cb=0x0,_0x38fd15;return{'next'(){const _0x52c63d=_0x20ac;if(_0x232987)return{'done':!![],'value':undefined};if(_0x2200a7){let _0x166afa=![];if(_0x962f77&&_0x2950c1)try{_0x166afa=_0x2950c1()===_0x38fd15;}catch{}if(!_0x166afa){_0x232987=!![],_0x52c880(_0x15522f);throw new _0x386d4c(_0x962f77?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x52c63d(0x19a)+_0x52c63d(0x445):_0x52c63d(0x18d)+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x52c63d(0x2fe),_0x52c63d(0x498));}_0x20fff0=_0x962f77(_0x2ff8fe,_0x26c9cb)[Symbol['iterator']](),_0x2200a7=![];}if(!_0x20fff0){if(_0x314c1a!==undefined)_0x38fd15=_0x314c1a;else try{_0x38fd15=_0x2950c1?_0x2950c1():undefined;}catch{_0x38fd15=undefined;}try{_0x20fff0=_0x1a5311()[Symbol[_0x52c63d(0x84c)]]();}catch(_0x2427ed){_0x232987=!![];throw _0x2427ed;}}!_0x1362c3&&(_0x1362c3=!![],queueMicrotask(()=>{const _0x587805=_0x52c63d;_0x1362c3=![];if(_0x232987||_0x2200a7)return;try{_0x20fff0?.[_0x587805(0x523)]?.();}catch{}_0x20fff0=null,_0x2200a7=!![];}));const _0x41f76c=_0x20fff0[_0x52c63d(0x60b)]();if(_0x41f76c['done'])return _0x232987=!![],{'done':!![],'value':undefined};return _0x2ff8fe=_0x41f76c[_0x52c63d(0x658)],_0x26c9cb++,_0x41f76c;},'return'(){const _0x3bce90=_0x20ac;_0x232987=!![];try{_0x20fff0?.[_0x3bce90(0x523)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0xb088cf(0x84c)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x3b86df,'OKDBGuardedRange':_0x3964ef,'recordGuardTrip':_0x52c880,'getGuardTripStats':_0xde8b98},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x5e352b=_0x1c5fdf;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x2c21cd,performance:_0x58dbb2}=require$$0$1,_0x4aee49=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x5360c2=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x27a400=process.env.OKDB_LOOP_LAG_ALL==='1',_0x27999b=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0xaff596{constructor(){const _0x1102a1=_0x20ac;this[_0x1102a1(0x28f)]=_0x4aee49,this[_0x1102a1(0x88b)]=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this[_0x1102a1(0x601)]=(_0x5413f8,_0x36e00a)=>process['stderr']['write'](_0x5413f8+(_0x36e00a?'\x20'+JSON[_0x1102a1(0x34d)](_0x36e00a):'')+'\x0a');}[_0x5e352b(0x785)](){const _0x3b9b4e=_0x5e352b;return _0x58dbb2[_0x3b9b4e(0x785)]();}[_0x5e352b(0x725)](_0x124889){const _0x58a225=_0x5e352b;if(typeof _0x124889===_0x58a225(0x5c4))this[_0x58a225(0x601)]=_0x124889;}[_0x5e352b(0x190)](_0x36ac14,_0xf3dd0f,_0x24cce7){const _0x1ac80b=_0x5e352b;if(!this[_0x1ac80b(0x28f)])return;let _0x5337bc=this[_0x1ac80b(0x88b)]['get'](_0x36ac14);!_0x5337bc&&(_0x5337bc={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x1ac80b(0x398)](_0x36ac14,_0x5337bc)),_0x5337bc['ms']+=_0xf3dd0f,_0x5337bc[_0x1ac80b(0x768)]+=0x1,_0xf3dd0f>_0x5337bc[_0x1ac80b(0x303)]&&(_0x5337bc[_0x1ac80b(0x303)]=_0xf3dd0f,_0x5337bc[_0x1ac80b(0x3d9)]=_0x24cce7||'');}['start'](_0x58e0e7){const _0x7e4b2d=_0x5e352b;if(!this[_0x7e4b2d(0x28f)]||this['_started'])return;this[_0x7e4b2d(0x17f)]=!![];if(_0x58e0e7)this[_0x7e4b2d(0x601)]=_0x58e0e7;this['_h']=_0x2c21cd({'resolution':0xa}),this['_h'][_0x7e4b2d(0x894)](),this['_timer']=setInterval(()=>this[_0x7e4b2d(0x342)](),_0x5360c2);if(this[_0x7e4b2d(0x463)][_0x7e4b2d(0x54c)])this[_0x7e4b2d(0x463)][_0x7e4b2d(0x54c)]();}[_0x5e352b(0x381)](_0x51ecb8){const _0x17a532=_0x5e352b;if(!this[_0x17a532(0x2e7)])this[_0x17a532(0x2e7)]=new Set();this[_0x17a532(0x2e7)][_0x17a532(0x3cc)](_0x51ecb8);if(!this[_0x17a532(0x17f)])this['_startAdmission']();}['offWindow'](_0x50d3f3){const _0x34e7c8=_0x5e352b;this[_0x34e7c8(0x2e7)]?.[_0x34e7c8(0x6f8)](_0x50d3f3);}[_0x5e352b(0x36f)](){const _0x32fe83=_0x5e352b;if(this[_0x32fe83(0x235)])return;this[_0x32fe83(0x235)]=!![];!this['_h']&&(this['_h']=_0x2c21cd({'resolution':0xa}),this['_h']['enable']());const _0x552685=_0x5360c2;this[_0x32fe83(0x3bb)]=setInterval(()=>{const _0x3911d4=_0x32fe83,_0x1579ee=this['_h'];if(!_0x1579ee)return;const _0x11cf83=_0x1579ee[_0x3911d4(0x17b)](0x63)/0xf4240,_0x281bc3=_0x1579ee['max']/0xf4240,_0x550d51=_0x1579ee[_0x3911d4(0x849)]/0xf4240;_0x1579ee[_0x3911d4(0x3b4)]();if(this[_0x3911d4(0x2e7)])for(const _0x1e6acb of this[_0x3911d4(0x2e7)]){try{_0x1e6acb({'p99Ms':_0x11cf83,'maxMs':_0x281bc3,'meanMs':_0x550d51,'reportMs':_0x552685});}catch{}}},_0x552685);if(this['_admissionTimer'][_0x32fe83(0x54c)])this[_0x32fe83(0x3bb)]['unref']();}[_0x5e352b(0x342)](){const _0x3ee131=_0x5e352b,_0x4a72c8=this['_h'],_0x567183=_0x4a72c8[_0x3ee131(0x6c5)]/0xf4240,_0x51afe0=_0x4a72c8[_0x3ee131(0x17b)](0x63)/0xf4240,_0x28e2c8=_0x4a72c8[_0x3ee131(0x849)]/0xf4240;_0x4a72c8[_0x3ee131(0x3b4)]();const _0xf3dc7=[...this[_0x3ee131(0x88b)]['entries']()][_0x3ee131(0x4ba)](([_0x3f0887,_0x2a402e])=>({'label':_0x3f0887,..._0x2a402e}))[_0x3ee131(0x1ab)]((_0x66441d,_0x17211d)=>_0x17211d['ms']-_0x66441d['ms'])[_0x3ee131(0x5d1)](0x0,0x8);this[_0x3ee131(0x88b)][_0x3ee131(0x7be)]();const _0x9c3592=_0xf3dc7['reduce']((_0x3b78d6,_0x681aa0)=>_0x3b78d6+_0x681aa0['ms'],0x0),_0x230898=_0xf3dc7[_0x3ee131(0x4ba)](_0x522f49=>_0x522f49['label']+'='+_0x522f49['ms'][_0x3ee131(0x72a)](0x0)+_0x3ee131(0x59b)+_0x522f49[_0x3ee131(0x768)]+(_0x522f49[_0x3ee131(0x303)]>0x5?'(worst\x20'+_0x522f49[_0x3ee131(0x303)][_0x3ee131(0x72a)](0x0)+'ms'+(_0x522f49[_0x3ee131(0x3d9)]?'\x20'+_0x522f49[_0x3ee131(0x3d9)]:'')+')':''));(_0x27a400||_0x567183>=_0x27999b)&&this['_log'](_0x3ee131(0x788)+_0x5360c2+_0x3ee131(0x5c5)+_0x567183['toFixed'](0x0)+'ms\x20p99='+_0x51afe0[_0x3ee131(0x72a)](0x0)+_0x3ee131(0x636)+_0x28e2c8['toFixed'](0x0)+_0x3ee131(0x3aa)+_0x9c3592[_0x3ee131(0x72a)](0x0)+'ms'+(_0x230898[_0x3ee131(0x2f6)]?_0x3ee131(0x6b9)+_0x230898[_0x3ee131(0x486)]('\x20\x20'):''),{'feature':_0x3ee131(0x4bc)});if(this[_0x3ee131(0x2e7)])for(const _0x59494a of this['_windowCbs']){try{_0x59494a({'p99Ms':_0x51afe0,'maxMs':_0x567183,'meanMs':_0x28e2c8,'reportMs':_0x5360c2});}catch{}}}[_0x5e352b(0x584)](){const _0x604fdc=_0x5e352b;if(this['_timer'])clearInterval(this[_0x604fdc(0x463)]);if(this['_h'])this['_h'][_0x604fdc(0x510)]();this[_0x604fdc(0x463)]=null,this['_h']=null,this[_0x604fdc(0x17f)]=![];}}const _0x282826=new _0xaff596();if(_0x282826['enabled'])_0x282826[_0x5e352b(0x84e)]();return okdbLoopMonitor={'LOOP':_0x282826},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x924e8e=_0x1c5fdf;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0xe948ab={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x1fed23}=requireOkdbEnums(),{OKDBError:_0x276ec0}=requireOkdbError(),{recordGuardTrip:_0x4c8184,guardSnapshotIterable:_0x4e5509}=requireOkdbGuardedRange(),{LOOP:_0x572360}=requireOkdbLoopMonitor();function _0x12ee47(_0x13b9ff){return _0x13b9ff['map'](_0x3db1bb=>{const _0x5ed6f0=_0x20ac,[_0x57359d,_0x12d06e]=_0x3db1bb[_0x5ed6f0(0x588)]||[];return{'action':_0x3db1bb[_0x5ed6f0(0x7b4)],'type':_0x57359d,'key':_0x12d06e};});}class _0x210b20{[_0x924e8e(0x263)];['actions']=[];[_0x924e8e(0x322)]=[];[_0x924e8e(0x568)]=[];constructor(_0x392d77,_0x35365b={'useReadTransaction':![]}){const _0x349c22=_0x924e8e;this[_0x349c22(0x263)]=_0x392d77,this['options']=_0x35365b,this['id']=_0xe948ab['v4']();if(this[_0x349c22(0x667)][_0x349c22(0x668)])try{this[_0x349c22(0x2da)]=this[_0x349c22(0x263)]['db'][_0x349c22(0x5aa)]()[_0x349c22(0x3a4)];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x349c22(0x602)]=this[_0x349c22(0x667)][_0x349c22(0x668)]?this[_0x349c22(0x263)]['db'][_0x349c22(0x668)]():null,this[_0x349c22(0x891)]=![],this[_0x349c22(0x1ef)]=![],this[_0x349c22(0x602)]&&queueMicrotask(()=>{const _0x3a5122=_0x349c22;this[_0x3a5122(0x602)]&&(this[_0x3a5122(0x5f0)](),this[_0x3a5122(0x1ef)]=!![]);});}[_0x924e8e(0x814)](_0x585e59){const _0x12ba74=_0x924e8e;this[_0x12ba74(0x322)]['push'](_0x585e59);}[_0x924e8e(0x1c1)](_0x36d976){const _0x5ae766=_0x924e8e;this[_0x5ae766(0x568)]['push'](_0x36d976);}[_0x924e8e(0x5f0)](){const _0x17ca19=_0x924e8e;if(!this['readTransaction'])return;try{this[_0x17ca19(0x602)][_0x17ca19(0x1e2)]();}catch(_0x511fca){}this[_0x17ca19(0x602)]=null;}[_0x924e8e(0x7a9)](){const _0x4dce40=_0x924e8e;if(this[_0x4dce40(0x891)])throw new _0x276ec0(_0x4dce40(0x876),_0x4dce40(0x747));if(this[_0x4dce40(0x1ef)]){let _0x2fbb7e=![];if(this[_0x4dce40(0x667)]['useReadTransaction']===_0x4dce40(0x229)&&this['_txnIdAtSnapshot']!==undefined)try{_0x2fbb7e=this[_0x4dce40(0x263)]['db'][_0x4dce40(0x5aa)]()[_0x4dce40(0x3a4)]===this[_0x4dce40(0x2da)];}catch{}if(!_0x2fbb7e){_0x4c8184((this[_0x4dce40(0x263)]?.['name']??'?')+':useReadTransaction');throw new _0x276ec0(_0x4dce40(0x5e8)+_0x4dce40(0x41d)+_0x4dce40(0x3bd)+_0x4dce40(0x304),_0x4dce40(0x498));}}}[_0x924e8e(0x4ff)](_0x59e374,_0x9d6adf){const _0x16e311=_0x924e8e;return this[_0x16e311(0x7a9)](),this['okdb'][_0x16e311(0x4ff)](_0x59e374,_0x9d6adf,{'transaction':this[_0x16e311(0x602)]});}[_0x924e8e(0x7f9)](_0x4b6fc6,_0x473fd5){const _0x52750d=_0x924e8e;return this['_assertOpen'](),this['okdb'][_0x52750d(0x7f9)](_0x4b6fc6,_0x473fd5,{'transaction':this[_0x52750d(0x602)]});}[_0x924e8e(0x7ae)](_0x3179cd,_0x194e8a){const _0x50178e=_0x924e8e;return this[_0x50178e(0x7a9)](),this['okdb'][_0x50178e(0x7ae)](_0x3179cd,_0x194e8a,{'transaction':this[_0x50178e(0x602)]});}[_0x924e8e(0x223)](_0x3af0b4){const _0x27220d=_0x924e8e;if(!this[_0x27220d(0x667)][_0x27220d(0x668)])return _0x3af0b4;if(_0x3af0b4&&typeof _0x3af0b4[_0x27220d(0x8a9)]===_0x27220d(0x5c4))return _0x3af0b4;if(Array['isArray'](_0x3af0b4))return _0x3af0b4;const _0x48026a=this,_0x1d6854=_0x48026a[_0x27220d(0x667)][_0x27220d(0x668)]===_0x27220d(0x229),_0x328aff=()=>{const _0x3dea1f=_0x27220d;if(!_0x48026a[_0x3dea1f(0x1ef)])return![];if(!_0x1d6854)return!![];if(_0x48026a[_0x3dea1f(0x2da)]===undefined)return!![];try{return _0x48026a[_0x3dea1f(0x263)]['db'][_0x3dea1f(0x5aa)]()[_0x3dea1f(0x3a4)]!==_0x48026a['_txnIdAtSnapshot'];}catch{return!![];}};return _0x4e5509(()=>{const _0x450027=_0x27220d;if(_0x48026a['_closed'])throw new _0x276ec0(_0x450027(0x876),'TXN_CLOSED');if(_0x328aff()){_0x4c8184((_0x48026a[_0x450027(0x263)]?.[_0x450027(0x80a)]??'?')+_0x450027(0x343));throw new _0x276ec0(_0x450027(0x1f4)+_0x450027(0x49d)+_0x450027(0x1e5),_0x450027(0x498));}return _0x3af0b4;},{'label':(_0x48026a['okdb']?.[_0x27220d(0x80a)]??'?')+_0x27220d(0x343),..._0x1d6854?{'baseline':_0x48026a[_0x27220d(0x2da)],'getTxnId':()=>_0x48026a[_0x27220d(0x263)]['db'][_0x27220d(0x5aa)]()[_0x27220d(0x3a4)],'resume':(_0x5c97eb,_0x148e94)=>_0x3af0b4['slice'](_0x148e94)}:{}});}[_0x924e8e(0x655)](_0x1cb52e,_0x1300f1={}){const _0x31362b=_0x924e8e;return this['_assertOpen'](),this[_0x31362b(0x223)](this[_0x31362b(0x263)][_0x31362b(0x655)](_0x1cb52e,{'transaction':this[_0x31362b(0x602)],..._0x1300f1}));}['getValues'](_0x436e8b,_0xdcd759={}){const _0x34c7c5=_0x924e8e;return this[_0x34c7c5(0x7a9)](),this[_0x34c7c5(0x223)](this[_0x34c7c5(0x263)]['getValues'](_0x436e8b,{'transaction':this['readTransaction'],..._0xdcd759}));}[_0x924e8e(0x608)](_0x781aac,_0x7f9a74={}){const _0x23dd3b=_0x924e8e;return this[_0x23dd3b(0x7a9)](),this[_0x23dd3b(0x223)](this[_0x23dd3b(0x263)][_0x23dd3b(0x608)](_0x781aac,{'transaction':this[_0x23dd3b(0x602)],..._0x7f9a74}));}[_0x924e8e(0x807)](_0x1522fa,_0x3c1450,_0x2a0443={}){const _0x83a822=_0x924e8e;return this['_assertOpen'](),this[_0x83a822(0x223)](this[_0x83a822(0x263)][_0x83a822(0x807)](_0x1522fa,_0x3c1450,{'transaction':this[_0x83a822(0x602)],..._0x2a0443}));}[_0x924e8e(0x71e)](_0x2f757b,_0x3c1cc3,_0x499cb4={}){const _0x561c6e=_0x924e8e;return this[_0x561c6e(0x7a9)](),this[_0x561c6e(0x223)](this[_0x561c6e(0x263)][_0x561c6e(0x71e)](_0x2f757b,_0x3c1cc3,{'transaction':this[_0x561c6e(0x602)],..._0x499cb4}));}[_0x924e8e(0x7da)](_0x1550f4=null){const _0x3ed120=_0x924e8e;return this[_0x3ed120(0x7a9)](),this[_0x3ed120(0x263)][_0x3ed120(0x7da)](_0x1550f4,{'transaction':this['readTransaction']});}[_0x924e8e(0x34c)](_0x33a8be){const _0x1ee096=_0x924e8e;return this['_assertOpen'](),this[_0x1ee096(0x263)][_0x1ee096(0x34c)](_0x33a8be,{'transaction':this[_0x1ee096(0x602)]});}[_0x924e8e(0x77c)](_0x16516a,_0x16d926,_0x4d7eea,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x924e8e(0x785)](),origin:origin=null,ttl:ttl=null}={}){const _0x4ccaef=_0x924e8e;this[_0x4ccaef(0x24d)][_0x4ccaef(0x3c0)]({'action':'put','args':[_0x16516a,_0x16d926,_0x4d7eea,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x3dc)](_0x2de8f6,_0x215637,_0x39eb7b,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x924e8e(0x785)](),origin:origin=null,ttl:ttl=null}={}){const _0x310920=_0x924e8e;this['actions'][_0x310920(0x3c0)]({'action':_0x310920(0x3dc),'args':[_0x2de8f6,_0x215637,_0x39eb7b,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x296)](_0x370ac6,_0x3d38be,_0x290ad2,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x4818ec=_0x924e8e;this[_0x4818ec(0x24d)][_0x4818ec(0x3c0)]({'action':'patch','args':[_0x370ac6,_0x3d38be,_0x290ad2,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x1d9)](_0x5db82a,_0x4413ce,_0x2ee76b,{version:version=null,timestamp:timestamp=Date[_0x924e8e(0x785)](),origin:origin=null,ttl:ttl=null}={}){const _0x1f3edb=_0x924e8e;this[_0x1f3edb(0x24d)][_0x1f3edb(0x3c0)]({'action':'create','args':[_0x5db82a,_0x4413ce,_0x2ee76b,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x7e6)](_0x2aecdd,_0x2d3ce4,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x3ca3ad=_0x924e8e;this[_0x3ca3ad(0x24d)][_0x3ca3ad(0x3c0)]({'action':_0x3ca3ad(0x7e6),'args':[_0x2aecdd,_0x2d3ce4,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x924e8e(0x83e)](_0x1bdcd5,_0x88772d,_0x3cc6b2){const _0x4914f7=_0x924e8e;this['actions'][_0x4914f7(0x3c0)]({'action':_0x4914f7(0x83e),'args':[_0x1bdcd5,_0x88772d,_0x3cc6b2]});}['clearTTL'](_0x1974e5,_0x622507){const _0x57977e=_0x924e8e;this['actions'][_0x57977e(0x3c0)]({'action':'clearTTL','args':[_0x1974e5,_0x622507]});}[_0x924e8e(0x63f)](){const _0x3c3881=_0x924e8e;if(this[_0x3c3881(0x891)])return;for(const _0x417986 of this['_undoHooks']){try{_0x417986();}catch{}}this[_0x3c3881(0x263)][_0x3c3881(0x230)][_0x3c3881(0x380)](_0x1fed23[_0x3c3881(0x464)],{'id':this['id']}),this['actions']=[],this[_0x3c3881(0x5f0)](),this['_closed']=!![];}async[_0x924e8e(0x715)](){const _0x23fa74=_0x924e8e;if(this[_0x23fa74(0x891)])throw new Error(_0x23fa74(0x876));const _0x350677={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x23fa74(0x24d)]};this[_0x23fa74(0x263)][_0x23fa74(0x230)]['emit'](_0x1fed23[_0x23fa74(0x5de)],_0x350677);try{const _0x271747=_0x572360[_0x23fa74(0x28f)]?_0x572360[_0x23fa74(0x785)]():0x0;await this[_0x23fa74(0x263)][_0x23fa74(0x337)][_0x23fa74(0x4b7)](()=>{const _0x4ae215=_0x23fa74;for(const _0x2e044d of this['actions']){const _0x22a71b=this[_0x4ae215(0x263)]['_'+_0x2e044d['action']];if(typeof _0x22a71b!==_0x4ae215(0x5c4))throw new Error('Unknown\x20transaction\x20action:\x20'+_0x2e044d[_0x4ae215(0x7b4)]);_0x22a71b[_0x4ae215(0x765)](this['okdb'],this,..._0x2e044d[_0x4ae215(0x588)]);}}),_0x572360['enabled']&&_0x572360[_0x23fa74(0x190)]('txn-commit',_0x572360[_0x23fa74(0x785)]()-_0x271747,(this[_0x23fa74(0x263)][_0x23fa74(0x80a)]??'?')+'\x20actions='+this['actions'][_0x23fa74(0x2f6)]);}catch(_0x5643d5){for(const _0x570ff9 of this[_0x23fa74(0x568)]){try{_0x570ff9();}catch{}}this[_0x23fa74(0x5f0)](),this[_0x23fa74(0x891)]=!![];if(_0x5643d5 instanceof _0x276ec0)throw _0x5643d5;const _0x46576a={'cause':_0x5643d5,'env':this[_0x23fa74(0x263)]?.[_0x23fa74(0x80a)],'envPath':this[_0x23fa74(0x263)]?.[_0x23fa74(0x1aa)],'pid':process[_0x23fa74(0x327)],'txnId':this['id'],'actionCount':this[_0x23fa74(0x24d)]['length'],'actions':_0x12ee47(this[_0x23fa74(0x24d)]),'nativeCode':_0x5643d5?.[_0x23fa74(0x22a)],'nativeName':_0x5643d5?.[_0x23fa74(0x80a)]};try{this['okdb']?.['log']?.[_0x23fa74(0x1f1)]?.(_0x23fa74(0x1f2),{'env':_0x46576a[_0x23fa74(0x81f)],'envPath':_0x46576a[_0x23fa74(0x4e2)],'pid':_0x46576a[_0x23fa74(0x327)],'txnId':_0x46576a[_0x23fa74(0x180)],'actionCount':_0x46576a['actionCount'],'actions':_0x46576a[_0x23fa74(0x24d)],'nativeCode':_0x46576a['nativeCode'],'error':_0x5643d5?.['message'],'stack':_0x5643d5?.['stack']});}catch{}throw new _0x276ec0(_0x5643d5?.['message']||_0x23fa74(0x7db),_0x23fa74(0x45f),_0x46576a);}this[_0x23fa74(0x263)][_0x23fa74(0x230)][_0x23fa74(0x380)](_0x1fed23[_0x23fa74(0x5d5)],_0x350677);for(const _0x97087e of this[_0x23fa74(0x322)]){try{await _0x97087e();}catch{}}this['actions']=[],this[_0x23fa74(0x5f0)](),this[_0x23fa74(0x891)]=!![];}static[_0x924e8e(0x81e)](_0x1e51aa){const _0x237f89=_0x924e8e;return Object[_0x237f89(0x7ff)]({'id':_0x1e51aa['id'],'put':_0x1e51aa['put'][_0x237f89(0x818)](_0x1e51aa),'update':_0x1e51aa['update']['bind'](_0x1e51aa),'patch':_0x1e51aa[_0x237f89(0x296)][_0x237f89(0x818)](_0x1e51aa),'create':_0x1e51aa['create']['bind'](_0x1e51aa),'remove':_0x1e51aa['remove'][_0x237f89(0x818)](_0x1e51aa),'setTTL':_0x1e51aa[_0x237f89(0x83e)][_0x237f89(0x818)](_0x1e51aa),'clearTTL':_0x1e51aa['clearTTL']['bind'](_0x1e51aa),'commit':_0x1e51aa[_0x237f89(0x715)][_0x237f89(0x818)](_0x1e51aa),'rollback':_0x1e51aa[_0x237f89(0x63f)][_0x237f89(0x818)](_0x1e51aa),'get':_0x1e51aa[_0x237f89(0x4ff)]['bind'](_0x1e51aa),'getEntry':_0x1e51aa['getEntry'][_0x237f89(0x818)](_0x1e51aa),'getMany':_0x1e51aa[_0x237f89(0x7ae)][_0x237f89(0x818)](_0x1e51aa),'getRange':_0x1e51aa[_0x237f89(0x655)][_0x237f89(0x818)](_0x1e51aa),'getValues':_0x1e51aa[_0x237f89(0x47c)][_0x237f89(0x818)](_0x1e51aa),'getKeys':_0x1e51aa[_0x237f89(0x608)][_0x237f89(0x818)](_0x1e51aa),'byIndex':_0x1e51aa[_0x237f89(0x807)][_0x237f89(0x818)](_0x1e51aa),'query':_0x1e51aa[_0x237f89(0x71e)][_0x237f89(0x818)](_0x1e51aa),'getClock':_0x1e51aa[_0x237f89(0x7da)][_0x237f89(0x818)](_0x1e51aa),'getCount':_0x1e51aa[_0x237f89(0x34c)]['bind'](_0x1e51aa),'read':_0x1e51aa,'raw':_0x1e51aa});}static[_0x924e8e(0x872)](_0x381321,_0x37f9a3=[]){const _0x48a5a5=_0x924e8e;if(!Array['isArray'](_0x37f9a3))throw new _0x276ec0(_0x48a5a5(0x771),_0x48a5a5(0x320));for(const _0x1684ac of _0x37f9a3){if(Array[_0x48a5a5(0x55b)](_0x1684ac)){const [_0x57f4a7,..._0x55ada1]=_0x1684ac;if(typeof _0x381321[_0x57f4a7]!==_0x48a5a5(0x5c4))throw new _0x276ec0('Unknown\x20transaction\x20action:\x20'+_0x57f4a7,_0x48a5a5(0x84b),{'action':_0x57f4a7});_0x381321[_0x57f4a7](..._0x55ada1);continue;}if(!_0x1684ac||typeof _0x1684ac!==_0x48a5a5(0x86d))throw new _0x276ec0(_0x48a5a5(0x575),_0x48a5a5(0x62f));const {action:_0x1e49ad}=_0x1684ac;if(typeof _0x1e49ad!==_0x48a5a5(0x460)||typeof _0x381321[_0x1e49ad]!=='function')throw new _0x276ec0('Unknown\x20transaction\x20action:\x20'+_0x1e49ad,_0x48a5a5(0x84b),{'action':_0x1e49ad});switch(_0x1e49ad){case _0x48a5a5(0x77c):case _0x48a5a5(0x3dc):case'create':_0x381321[_0x1e49ad](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac[_0x48a5a5(0x7e4)],_0x1684ac[_0x48a5a5(0x658)],{..._0x1684ac[_0x48a5a5(0x667)],'ttl':_0x1684ac[_0x48a5a5(0x7e1)]??_0x1684ac['options']?.[_0x48a5a5(0x7e1)]??null});break;case _0x48a5a5(0x296):_0x381321[_0x48a5a5(0x296)](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac[_0x48a5a5(0x7e4)],_0x1684ac[_0x48a5a5(0x296)],{..._0x1684ac[_0x48a5a5(0x667)],'ttl':_0x1684ac[_0x48a5a5(0x7e1)]??_0x1684ac['options']?.[_0x48a5a5(0x7e1)]??null});break;case'remove':_0x381321[_0x48a5a5(0x7e6)](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac['key'],_0x1684ac[_0x48a5a5(0x667)]||{});break;case _0x48a5a5(0x83e):_0x381321[_0x48a5a5(0x83e)](_0x1684ac['type'],_0x1684ac[_0x48a5a5(0x7e4)],_0x1684ac[_0x48a5a5(0x7e1)]);break;case _0x48a5a5(0x188):_0x381321[_0x48a5a5(0x188)](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac['key']);break;default:throw new _0x276ec0('Unsupported\x20transaction\x20action:\x20'+_0x1e49ad,_0x48a5a5(0x84b),{'action':_0x1e49ad});}}}static async[_0x924e8e(0x373)](_0x588478,_0x55a681,_0x3d6b5a={}){const _0x2ac58d=_0x924e8e,_0x19e784=new _0x210b20(_0x588478,_0x3d6b5a),_0x4323d4=_0x210b20[_0x2ac58d(0x81e)](_0x19e784);try{typeof _0x55a681===_0x2ac58d(0x5c4)?await _0x55a681(_0x4323d4):_0x210b20[_0x2ac58d(0x872)](_0x19e784,_0x55a681||[]);const _0xee31c3=_0x19e784['actions'][_0x2ac58d(0x2f6)];return await _0x19e784['commit'](),{'id':_0x19e784['id'],'actions':_0xee31c3};}catch(_0x8d4b9e){try{_0x19e784['rollback']();}catch(_0x31634c){}throw _0x8d4b9e;}}}return okdbTransaction=_0x210b20,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x578bd0=_0x1c5fdf;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x578bd0(0x834)](dist,_0x578bd0(0x1b7),{'value':!![]});const _0x477efa=new Float64Array(0x2),_0x41c2c6=new Int32Array(_0x477efa[_0x578bd0(0x672)],0x0,0x4),{lowIdx:_0x5a0f52,highIdx:_0x1b633f}=((()=>{if(new Uint8Array(new Uint32Array([0xffee1100])['buffer'])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x310f38=![],_0x55bbbe;try{_0x55bbbe=new TextEncoder();}catch(_0x1c34f8){}function _0x5b28db(_0x4b06c5,_0x433954,_0x500c31,_0xae0f2a){const _0x364057=_0x578bd0;let _0x257600=_0x433954[_0x364057(0x2dd)];if(!_0x257600)_0x257600=_0x433954['dataView']=new DataView(_0x433954['buffer'],_0x433954[_0x364057(0x46b)],_0x433954['byteLength']+0x3>>0x2<<0x2);switch(typeof _0x4b06c5){case _0x364057(0x460):let _0x3f41a9=_0x4b06c5[_0x364057(0x2f6)],_0x2870f7=_0x4b06c5['charCodeAt'](0x0);if(!(_0x2870f7>=0x1c))_0x433954[_0x500c31++]=0x1b;if(_0x3f41a9<0x40){let _0x20f27b,_0x466b23;for(_0x20f27b=0x0;_0x20f27b<_0x3f41a9;_0x20f27b++){_0x2870f7=_0x4b06c5[_0x364057(0x7cc)](_0x20f27b);if(_0x2870f7<=0x4)_0x433954[_0x500c31++]=0x4,_0x433954[_0x500c31++]=_0x2870f7;else{if(_0x2870f7<0x80)_0x433954[_0x500c31++]=_0x2870f7;else{if(_0x2870f7<0x800)_0x433954[_0x500c31++]=_0x2870f7>>0x6|0xc0,_0x433954[_0x500c31++]=_0x2870f7&0x3f|0x80;else(_0x2870f7&0xfc00)===0xd800&&((_0x466b23=_0x4b06c5['charCodeAt'](_0x20f27b+0x1))&0xfc00)===0xdc00?(_0x2870f7=0x10000+((_0x2870f7&0x3ff)<<0xa)+(_0x466b23&0x3ff),_0x20f27b++,_0x433954[_0x500c31++]=_0x2870f7>>0x12|0xf0,_0x433954[_0x500c31++]=_0x2870f7>>0xc&0x3f|0x80,_0x433954[_0x500c31++]=_0x2870f7>>0x6&0x3f|0x80,_0x433954[_0x500c31++]=_0x2870f7&0x3f|0x80):(_0x433954[_0x500c31++]=_0x2870f7>>0xc|0xe0,_0x433954[_0x500c31++]=_0x2870f7>>0x6&0x3f|0x80,_0x433954[_0x500c31++]=_0x2870f7&0x3f|0x80);}}}}else{if(_0x433954[_0x364057(0x80b)])_0x500c31+=_0x433954[_0x364057(0x80b)](_0x4b06c5,_0x500c31,_0x433954['byteLength']-_0x500c31);else _0x500c31+=_0x55bbbe['encodeInto'](_0x4b06c5,_0x433954[_0x364057(0x289)](_0x500c31))[_0x364057(0x4d5)];if(_0x500c31>_0x433954['length']-0x4)throw new RangeError(_0x364057(0x898));}break;case _0x364057(0x46d):_0x477efa[0x0]=_0x4b06c5;let _0x54f958=_0x41c2c6[_0x5a0f52],_0x2730a9=_0x41c2c6[_0x1b633f],_0x5af3da;if(_0x4b06c5<0x0)return _0x257600[_0x364057(0x7d3)](_0x500c31+0x4,~(_0x54f958>>>0x4|_0x2730a9<<0x1c)),_0x257600['setInt32'](_0x500c31+0x0,(_0x2730a9^0x7fffffff)>>>0x4),_0x257600['setInt32'](_0x500c31+0x8,(_0x54f958&0xf^0xf)<<0x4,!![]),_0x500c31+0x9;else{if(_0x54f958&0xf||_0xae0f2a)_0x5af3da=0x9;else{if(_0x54f958&0xfffff)_0x5af3da=0x8;else{if(_0x54f958||_0x2730a9&0xf)_0x5af3da=0x6;else _0x5af3da=0x4;}}}_0x257600['setInt32'](_0x500c31+0x0,_0x2730a9>>>0x4|0x10000000),_0x257600['setInt32'](_0x500c31+0x4,_0x54f958>>>0x4|_0x2730a9<<0x1c),_0x257600[_0x364057(0x7d3)](_0x500c31+0x8,(_0x54f958&0xf)<<0x4,!![]);return _0x500c31+_0x5af3da;case _0x364057(0x86d):if(_0x4b06c5){if(Array[_0x364057(0x55b)](_0x4b06c5)){for(let _0xe06485=0x0,_0x3b3171=_0x4b06c5[_0x364057(0x2f6)];_0xe06485<_0x3b3171;_0xe06485++){if(_0xe06485>0x0)_0x433954[_0x500c31++]=0x0;_0x500c31=_0x5b28db(_0x4b06c5[_0xe06485],_0x433954,_0x500c31,!![]);}break;}else{if(_0x4b06c5 instanceof Uint8Array){_0x433954[_0x364057(0x398)](_0x4b06c5,_0x500c31),_0x500c31+=_0x4b06c5[_0x364057(0x2f6)];break;}else throw new Error(_0x364057(0x375)+JSON[_0x364057(0x34d)](_0x4b06c5));}}else _0x433954[_0x500c31++]=0x0;break;case _0x364057(0x6d6):_0x257600[_0x364057(0x17a)](_0x500c31++,_0x4b06c5?0x7:0x6,!![]);return _0x500c31;case _0x364057(0x4e8):let _0xabe48=Number(_0x4b06c5);if(BigInt(_0xabe48)>_0x4b06c5){_0x477efa[0x0]=_0xabe48;if(_0xabe48>0x0){if(_0x41c2c6[_0x5a0f52])_0x41c2c6[_0x5a0f52]--;else _0x41c2c6[_0x1b633f]--,_0x41c2c6[_0x5a0f52]=0xffffffff;}else{if(_0x41c2c6[_0x5a0f52]<0xffffffff)_0x41c2c6[_0x5a0f52]++;else _0x41c2c6[_0x1b633f]++,_0x41c2c6[_0x5a0f52]=0x0;}_0xabe48=_0x477efa[0x0];}let _0x551aa9=_0x4b06c5-BigInt(_0xabe48);if(_0x551aa9===0x0n)return _0x5b28db(_0xabe48,_0x433954,_0x500c31,_0xae0f2a);_0x5b28db(_0xabe48,_0x433954,_0x500c31,_0xae0f2a),_0x500c31+=0x9;let _0x2bd122=BigInt((_0x41c2c6[_0x1b633f]>>0x14&0x7ff)-0x437),_0x2f46a8=_0x551aa9>>_0x2bd122;_0x433954[_0x500c31-0x1]|=Number(_0x2f46a8),_0x551aa9-=_0x2f46a8<<_0x2bd122;let _0xf8360b=!![];while(_0x551aa9||_0xf8360b){_0xf8360b=![],_0x2bd122-=0x7n;let _0x432ee4=_0x551aa9>>_0x2bd122;_0x433954[_0x500c31++]=Number(_0x432ee4)|0x80,_0x551aa9-=_0x432ee4<<_0x2bd122;}return _0x500c31;case _0x364057(0x777):return _0x500c31;case'symbol':_0x433954[_0x500c31++]=0x2;return _0x5b28db(_0x4b06c5['description'],_0x433954,_0x500c31,_0xae0f2a);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0x4b06c5);}if(_0x310f38&&!_0xae0f2a)_0x257600[_0x364057(0x17a)](_0x500c31,0x0);return _0x500c31;}let _0x17057b;function _0x107e5b(_0x2d2d75,_0x5ab64a,_0xd1c87d,_0x112930){const _0x1fcf22=_0x578bd0;_0x17057b=_0x5ab64a;let _0x143ea3=_0x2d2d75[_0x17057b],_0x5cb7b1;if(_0x143ea3<0x18){if(_0x143ea3<0x8){_0x17057b++;if(_0x143ea3==0x6)_0x5cb7b1=![];else{if(_0x143ea3==0x7)_0x5cb7b1=!![];else{if(_0x143ea3==0x0)_0x5cb7b1=null;else{if(_0x143ea3==0x2)_0x5cb7b1=Symbol['for'](_0x56a34d(_0x2d2d75,_0xd1c87d));else return Uint8Array[_0x1fcf22(0x3c3)][_0x1fcf22(0x5d1)]['call'](_0x2d2d75,_0x5ab64a,_0xd1c87d);}}}}else{let _0x3e2f05;try{_0x3e2f05=_0x2d2d75['dataView']||(_0x2d2d75[_0x1fcf22(0x2dd)]=new DataView(_0x2d2d75[_0x1fcf22(0x672)],_0x2d2d75['byteOffset'],_0x2d2d75[_0x1fcf22(0x6ed)]+0x3>>0x2<<0x2));}catch(_0x487f45){_0x3e2f05=_0x2d2d75[_0x1fcf22(0x2dd)]||(_0x2d2d75[_0x1fcf22(0x2dd)]=new DataView(_0x2d2d75[_0x1fcf22(0x672)],_0x2d2d75[_0x1fcf22(0x46b)],_0x2d2d75[_0x1fcf22(0x672)]['byteLength']-_0x2d2d75[_0x1fcf22(0x46b)]));}let _0xc38015=_0x3e2f05[_0x1fcf22(0x7c7)](_0x17057b)<<0x4,_0x24dfdd=_0xd1c87d-_0x17057b,_0x691df;if(_0x24dfdd>0x4)_0x691df=_0x17057b+0x8<=_0x2d2d75[_0x1fcf22(0x2f6)]?_0x3e2f05[_0x1fcf22(0x7c7)](_0x17057b+0x4):_0x2d2d75[_0x17057b+0x4]<<0x18|_0x2d2d75[_0x17057b+0x5]<<0x10|_0x2d2d75[_0x17057b+0x6]<<0x8|_0x2d2d75[_0x17057b+0x7],_0xc38015|=_0x691df>>>0x1c,_0x24dfdd<=0x6&&(_0x691df&=-0x10000),_0x691df=_0x691df<<0x4,_0x24dfdd>0x8&&(_0x691df=_0x691df|_0x2d2d75[_0x17057b+0x8]>>0x4);else _0x691df=0x0;_0x143ea3<0x10&&(_0xc38015=_0xc38015^0x7fffffff,_0x691df=~_0x691df);_0x41c2c6[_0x1b633f]=_0xc38015,_0x41c2c6[_0x5a0f52]=_0x691df,_0x5cb7b1=_0x477efa[0x0],_0x17057b+=0x9;if(_0x24dfdd>0x9&&_0x2d2d75[_0x17057b]>0x0){_0x5cb7b1=BigInt(_0x5cb7b1);let _0x1e4eac=_0xc38015>>0x14&0x7ff,_0xdb371d=_0x2d2d75[_0x17057b-0x1]&0xf;_0x5cb7b1+=BigInt(_0xdb371d)<<BigInt(_0x1e4eac-0x437);while((_0xdb371d=_0x2d2d75[_0x17057b])>0x0&&_0x17057b++<_0xd1c87d){_0x5cb7b1+=BigInt(_0xdb371d&0x7f)<<BigInt((_0x5ab64a-_0x17057b)*0x7+_0x1e4eac-0x3f8);}}}}else{_0x143ea3==0x1b&&_0x17057b++;_0x5cb7b1=_0x56a34d(_0x2d2d75,_0xd1c87d);if(_0x17057b<_0xd1c87d)_0x17057b--;}while(_0x17057b<_0xd1c87d){if(_0x2d2d75[_0x17057b]===0x0)_0x17057b++;if(_0x112930)return _0x5d9038[_0x1fcf22(0x324)]=_0x17057b,_0x5cb7b1;let _0x4f0b56=_0x107e5b(_0x2d2d75,_0x17057b,_0xd1c87d,!![]);if(_0x5cb7b1 instanceof Array)_0x5cb7b1[_0x1fcf22(0x3c0)](_0x4f0b56);else _0x5cb7b1=[_0x5cb7b1,_0x4f0b56];}return _0x5cb7b1;}const _0x1a01b0=()=>_0x310f38=!![],_0x5d9038={'writeKey':_0x5b28db,'readKey':_0x107e5b,'enableNullTermination':_0x1a01b0};let _0x2100e6=[],_0x89943f=0x0;const _0x39e3b1=typeof Buffer!==_0x578bd0(0x777),_0x352042=_0x39e3b1?Buffer[_0x578bd0(0x394)]:Uint8Array,_0x173121=_0x308345=>{const _0x330811=_0x578bd0;let _0x265578;_0x89943f+0x64>_0x2100e6['length']&&(_0x2100e6=new _0x352042(0x2000),_0x89943f=0x0,_0x265578=!![]);try{let _0xdaafce=_0x2100e6[_0x330811(0x5d1)](_0x89943f,_0x89943f=_0x5b28db(_0x308345,_0x2100e6,_0x89943f));if(_0x89943f>_0x2100e6[_0x330811(0x2f6)]){if(_0x265578)throw new Error(_0x330811(0x728));return _0x173121(_0x308345);}return _0xdaafce;}catch(_0xd38b94){if(_0x265578)throw _0xd38b94;return _0x89943f=_0x2100e6[_0x330811(0x2f6)],_0x173121(_0x308345);}},_0x79ec44=_0x1d094e=>{const _0x29ed40=_0x578bd0;return _0x107e5b(_0x1d094e,0x0,_0x1d094e[_0x29ed40(0x2f6)]);},_0x40e0ce=String[_0x578bd0(0x1e7)];function _0x9b3bba(){const _0x4c910b=_0x578bd0;let _0x15635a=_0x4c910b(0x3d7),_0x185319=[];for(let _0xd79404=0x0;_0xd79404<0x30;_0xd79404++){let _0x167b5a=_0x40e0ce((_0xd79404&0xf)+0x61)+_0x40e0ce((_0xd79404>>0x4)+0x61);_0x15635a+=_0x4c910b(0x841)+_0x167b5a+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x167b5a+_0x4c910b(0x1d4)+_0x167b5a+_0x4c910b(0x424)+_0x167b5a+'\x20=\x20finishUtf8('+_0x167b5a+_0x4c910b(0x605)+_0x167b5a+_0x4c910b(0x774)+_0x167b5a+_0x4c910b(0x7a8)+_0x185319+')\x0a\x09\x09}\x0a\x09\x09',_0x185319['push'](_0x167b5a);}return _0x15635a+=_0x4c910b(0x786)+_0x185319+_0x4c910b(0x56f),_0x15635a;}const _0x48c149=typeof process!==_0x578bd0(0x777)&&process[_0x578bd0(0x706)]?function(_0x57d503){let {setPosition:_0x4f9526,getPosition:_0x4640a9,readString:_0x5afa0f}=_0x57d503;return _0x8b22b1=>{_0x4f9526(_0x17057b);let _0xd4ca37=_0x5afa0f(_0x8b22b1);return _0x17057b=_0x4640a9(),_0xd4ca37;};}(new Function(_0x578bd0(0x1e7),'let\x20position;\x20let\x20readString\x20=\x20'+_0x9b3bba()+_0x578bd0(0x242)+'setPosition(p)\x20{\x20position\x20=\x20p\x20},'+'getPosition()\x20{\x20return\x20position\x20},'+_0x578bd0(0x7ca))(_0x40e0ce)):eval(_0x9b3bba());function _0x56a34d(_0x10808e,_0x16d77f){if(_0x10808e[_0x16d77f]>0x0){let _0x38a138=_0x10808e[_0x16d77f];try{return _0x10808e[_0x16d77f]=0x0,_0x48c149(_0x10808e);}finally{_0x10808e[_0x16d77f]=_0x38a138;}}else return _0x48c149(_0x10808e);}function _0x1b2e29(_0x9d61c5,_0x12c53b){const _0xfd8a48=_0x578bd0;if(typeof _0x9d61c5==_0xfd8a48(0x86d)){if(!_0x9d61c5)return _0x12c53b==null?0x0:-0x1;if(_0x9d61c5[_0xfd8a48(0x4f1)]){if(_0x12c53b==null)return 0x1;else return _0x12c53b['compare']?_0x9d61c5['compare'](_0x12c53b):-0x1;}let _0x5049f7;if(_0x12c53b instanceof Array){let _0x358edd=0x0;while((_0x5049f7=_0x1b2e29(_0x9d61c5[_0x358edd],_0x12c53b[_0x358edd]))==0x0&&_0x358edd<=_0x9d61c5['length']){_0x358edd++;}return _0x5049f7;}_0x5049f7=_0x1b2e29(_0x9d61c5[0x0],_0x12c53b);if(_0x5049f7==0x0&&_0x9d61c5[_0xfd8a48(0x2f6)]>0x1)return 0x1;return _0x5049f7;}else{if(typeof _0x9d61c5==typeof _0x12c53b)return typeof _0x9d61c5===_0xfd8a48(0x552)&&(_0x9d61c5=Symbol[_0xfd8a48(0x691)](_0x9d61c5),_0x12c53b=Symbol[_0xfd8a48(0x691)](_0x12c53b)),_0x9d61c5<_0x12c53b?-0x1:_0x9d61c5===_0x12c53b?0x0:0x1;else{if(typeof _0x12c53b=='object'){if(_0x12c53b instanceof Array)return-_0x1b2e29(_0x12c53b,_0x9d61c5);return 0x1;}else return _0x35f67c[typeof _0x9d61c5]<_0x35f67c[typeof _0x12c53b]?-0x1:0x1;}}}const _0x35f67c={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x30303f=null,_0x1cb3b5=new Uint8Array([0xff]);return dist[_0x578bd0(0x27f)]=_0x1cb3b5,dist[_0x578bd0(0x253)]=_0x30303f,dist[_0x578bd0(0x7b6)]=_0x1b2e29,dist[_0x578bd0(0x1a1)]=_0x1a01b0,dist[_0x578bd0(0x2bd)]=_0x5d9038,dist['fromBufferKey']=_0x79ec44,dist[_0x578bd0(0x723)]=_0x107e5b,dist[_0x578bd0(0x7c8)]=_0x173121,dist[_0x578bd0(0x866)]=_0x5b28db,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0xcf0a6b=_0x1c5fdf;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x3e0995}=requireDist(),_0x343611=0x7ba,_0x1973d9=0x1000;function _0x432388(_0x2172b4,_0x2d943f){const _0x2efa27=_0x20ac;switch(typeof _0x2172b4){case _0x2efa27(0x460):return _0x2172b4[_0x2efa27(0x2f6)]<=_0x343611&&_0x2172b4['isWellFormed']();case _0x2efa27(0x46d):case _0x2efa27(0x6d6):return!![];case'object':if(_0x2172b4===null)return!![];if(Array[_0x2efa27(0x55b)](_0x2172b4)){if(_0x2d943f>0x8||_0x2172b4[_0x2efa27(0x2f6)]>_0x343611)return![];for(let _0x3ac7b6=0x0;_0x3ac7b6<_0x2172b4['length'];_0x3ac7b6++)if(!_0x432388(_0x2172b4[_0x3ac7b6],_0x2d943f+0x1))return![];return!![];}return Buffer[_0x2efa27(0x531)](_0x2172b4)&&_0x2172b4['length']<=_0x343611;default:return![];}}function _0x401c4b(_0x49e113,_0x17ce86){const _0x12ad69=_0x20ac,_0x6f5242=typeof _0x49e113;if(_0x6f5242===_0x12ad69(0x460)){if(_0x49e113['length']>=0x40||!_0x49e113['isWellFormed']()){if(!_0x432388(_0x49e113,0x0))return-0x1;}}else{if(_0x6f5242!=='number'){if(Array[_0x12ad69(0x55b)](_0x49e113)?_0x49e113[_0x12ad69(0x2f6)]===0x0||!_0x432388(_0x49e113,0x0):!_0x432388(_0x49e113,0x0))return-0x1;}}let _0x139b75;try{_0x139b75=_0x3e0995(_0x49e113,_0x17ce86,0x0);}catch{return-0x1;}return _0x139b75>0x0&&_0x139b75<=_0x343611?_0x139b75:-0x1;}return keyenc={'encodeKey':_0x401c4b,'KEY_BUF_SIZE':_0x1973d9,'NO_FAST':Symbol(_0xcf0a6b(0x5d2))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x5086ed=_0x1c5fdf;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3a68d9=0x400,_0x31295d=_0x3a68d9-0x1,_0x5a8c90=0xea60;function _0x13d13d(_0x2d34b3,_0x2b2802){const _0x1f2115=_0x20ac;return _0x2d34b3*_0x3a68d9+Math[_0x1f2115(0x6c5)](0x0,Math['min'](_0x2b2802,_0x31295d));}function _0x542b2f(_0xef5c63){const _0x54ad02=Math['max'](0x0,Number(_0xef5c63)||0x0),_0x2631fc=_0x54ad02%_0x3a68d9,_0x4a1159=(_0x54ad02-_0x2631fc)/_0x3a68d9;return{'pt':_0x4a1159,'l':_0x2631fc};}function _0x417008(_0x82195a,_0x37a445=Date['now']()){const _0x205815=_0x20ac,{pt:_0x4253c6,l:_0x2b3bbd}=_0x542b2f(_0x82195a),_0xefe34e=Math['max'](_0x4253c6,_0x37a445),_0x174ed9=_0xefe34e===_0x4253c6?Math[_0x205815(0x3d2)](_0x2b3bbd+0x1,_0x31295d):0x0;return _0x13d13d(_0xefe34e,_0x174ed9);}function _0x35666e(_0x101477,_0x28add2,_0x3a258a=Date[_0x5086ed(0x785)]()){const _0xedc812=_0x5086ed,{pt:_0x494678,l:_0x37062e}=_0x542b2f(_0x101477),{pt:_0x22613c,l:_0x3f8b7d}=_0x542b2f(_0x28add2),_0x4d7751=Math[_0xedc812(0x6c5)](_0x494678,_0x22613c,_0x3a258a);let _0x3dd70b;if(_0x4d7751===_0x494678&&_0x4d7751===_0x22613c)_0x3dd70b=Math['min'](Math[_0xedc812(0x6c5)](_0x37062e,_0x3f8b7d)+0x1,_0x31295d);else{if(_0x4d7751===_0x494678)_0x3dd70b=Math['min'](_0x37062e+0x1,_0x31295d);else _0x4d7751===_0x22613c?_0x3dd70b=Math[_0xedc812(0x3d2)](_0x3f8b7d+0x1,_0x31295d):_0x3dd70b=0x0;}return _0x13d13d(_0x4d7751,_0x3dd70b);}function _0x1254d2(_0x226c62,_0x5a3103){const _0x597380=Number(_0x226c62)||0x0,_0xe76e14=Number(_0x5a3103)||0x0;if(_0x597380<_0xe76e14)return-0x1;if(_0x597380>_0xe76e14)return 0x1;return 0x0;}function _0x5f4d85(_0x3fc6f2){return _0x542b2f(_0x3fc6f2)['pt'];}return okdbHlc={'send':_0x417008,'recv':_0x35666e,'compare':_0x1254d2,'toMs':_0x5f4d85,'encode':_0x13d13d,'decode':_0x542b2f,'SCALE':_0x3a68d9,'L_MAX':_0x31295d,'DRIFT_MAX':_0x5a8c90},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x43ff90=_0x1c5fdf;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0xb66a58,chunkedRange:_0x2d9cfc,pinnedChunks:_0x1b1c3b,claimPrefetch:_0xf4f1cc}=requireIterable(),{reclass:_0x548003,NotImplementedNative:_0x414f01,OKDBError:_0x103cf7,optionsArg:_0x3ef8ed}=requireErrors(),{OKDBViews:_0x3e31a3}=requireViews(),{OKDBQueue:_0x5a87b7}=requireQueue(),{OKDBTimeMachine:_0x5ec99e}=requireTimemachine(),_0x5ae2d3=_0x26bdd1=>{const _0x1a4864=_0x20ac;try{return!_0x26bdd1[_0x1a4864(0x5fd)]||_0x26bdd1[_0x1a4864(0x5fd)][_0x1a4864(0x246)](_0x1a4864(0x579));}catch{return!![];}},{OKDBFiles:_0x483c25}=requireFiles(),{OKDBEngines:_0x1fd849,OKDBPipelines:_0x22940e}=requireEngines(),{OKDBFunctions:_0x2513b8}=requireFunctions(),_0xb54acb=requireProcessor(),{RawDb:_0x2aa967}=requireRawdb(),_0x48a9fe=requireBridge();let _0x32cc14=null;const _0x53555a=()=>_0x32cc14||=requireOkdbTransaction(),_0x441cd1=(..._0x5ef429)=>requireOkdbGuardedRange()[_0x43ff90(0x36a)](..._0x5ef429),_0x25f607=Buffer[_0x43ff90(0x6a7)]([0xff]),_0x362b4b=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x2782b1=_0x362b4b&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x30287e}=requireKeyenc(),_0x5e3901=new Set(_0x362b4b?['getRange',_0x43ff90(0x807),_0x43ff90(0x71e),_0x43ff90(0x356),_0x43ff90(0x608)]:[]),_0x40e086=new Set(['get',_0x43ff90(0x7f9),_0x43ff90(0x7ae),_0x43ff90(0x655),_0x43ff90(0x608),_0x43ff90(0x47c),_0x43ff90(0x34c),_0x43ff90(0x70c),_0x43ff90(0x43e),_0x43ff90(0x807),'countByIndex',_0x43ff90(0x71e),'assertQueryOptions',_0x43ff90(0x789),_0x43ff90(0x7da),'getChanges',_0x43ff90(0x768),_0x43ff90(0x785),_0x43ff90(0x637),_0x43ff90(0x17d),_0x43ff90(0x88e),'getIndexStatus',_0x43ff90(0x571),_0x43ff90(0x59e),_0x43ff90(0x679),_0x43ff90(0x431),_0x43ff90(0x4f9),_0x43ff90(0x32b),_0x43ff90(0x620),_0x43ff90(0x7f4),_0x43ff90(0x439),_0x43ff90(0x18b),_0x43ff90(0x6e0),_0x43ff90(0x7ee),_0x43ff90(0x759),_0x43ff90(0x54b),'getDefaultTTL',_0x43ff90(0x80a),_0x43ff90(0x1aa),'id','lastTxnId',_0x43ff90(0x465),_0x43ff90(0x1f6),_0x43ff90(0x1b3),_0x43ff90(0x4c9)]),_0xdf5a46=new Set(['start',_0x43ff90(0x3ae),_0x43ff90(0x2be),_0x43ff90(0x5ba),_0x43ff90(0x7cb),_0x43ff90(0x3a3),_0x43ff90(0x5ec),_0x43ff90(0x70f),_0x43ff90(0x534),_0x43ff90(0x870),_0x43ff90(0x4b7),_0x43ff90(0x7e4),_0x43ff90(0x5d7),'prefix']);function _0x2bd2c9(_0x469fe4,_0x3a71e2,_0x5a979b){const _0x18e356=new Map();return(_0x2a5fad,_0x5dec1c)=>{const _0x256e2b=_0x20ac,_0x8ecddc=JSON[_0x256e2b(0x34d)](_0x5dec1c),_0x2698cb=_0x18e356['get'](_0x8ecddc);if(_0x2698cb){if(_0x2698cb['state']===_0x256e2b(0x73b))throw _0x2565bb();_0x18e356[_0x256e2b(0x6f8)](_0x8ecddc);if(_0x2698cb[_0x256e2b(0x827)]===_0x256e2b(0x582))throw _0x2698cb['value'];return _0x2698cb['value'];}const _0x4d4bde=_0x2a5fad(..._0x5dec1c);if(!_0x4d4bde||typeof _0x4d4bde[_0x256e2b(0x8a9)]!==_0x256e2b(0x5c4))return _0x4d4bde;const _0x45a4f2={'state':_0x256e2b(0x73b),'value':undefined},_0x5a0d07=(_0x21c5df,_0x326948)=>{const _0x4327c4=_0x256e2b;_0x45a4f2['state']=_0x21c5df,_0x45a4f2['value']=_0x326948;if(_0x18e356[_0x4327c4(0x4ff)](_0x8ecddc)!==_0x45a4f2)return;setTimeout(()=>_0x18e356[_0x4327c4(0x4ff)](_0x8ecddc)===_0x45a4f2&&_0x18e356['delete'](_0x8ecddc),0x7530)[_0x4327c4(0x54c)]();try{_0x469fe4['okdb'][_0x4327c4(0x7b0)](_0x4327c4(0x230),null,_0x4327c4(0x380),[_0x4327c4(0x1b8),{'env':_0x469fe4['name'],'type':_0x3a71e2,'field':_0x5a979b}],!![]);}catch{}};_0x4d4bde[_0x256e2b(0x8a9)](_0xe7f954=>_0x5a0d07('ok',_0xe7f954),_0x4300bf=>_0x5a0d07(_0x256e2b(0x582),_0x4300bf));for(let _0x539bf4=0x0;_0x539bf4<0x64&&_0x45a4f2[_0x256e2b(0x827)]===_0x256e2b(0x73b);_0x539bf4++)process[_0x256e2b(0x71f)]();if(_0x45a4f2[_0x256e2b(0x827)]==='ok')return _0x45a4f2[_0x256e2b(0x658)];if(_0x45a4f2[_0x256e2b(0x827)]===_0x256e2b(0x582))throw _0x45a4f2[_0x256e2b(0x658)];_0x18e356['set'](_0x8ecddc,_0x45a4f2);throw _0x2565bb();};}function _0x2565bb(){const _0x354dd0=_0x43ff90;return Object[_0x354dd0(0x60e)](new Error(_0x354dd0(0x5a4)),{'code':_0x354dd0(0x699)});}class _0x1de694{constructor(_0x439d43,_0x1797c7){const _0xbb8bb8=_0x43ff90;this[_0xbb8bb8(0x263)]=_0x439d43,this[_0xbb8bb8(0x80a)]=_0x1797c7,this[_0xbb8bb8(0x230)]=_0x439d43[_0xbb8bb8(0x230)],this[_0xbb8bb8(0x3de)]=_0x439d43[_0xbb8bb8(0x3de)],this['_isOpen']=!![],this['_txnBuf']=null,this[_0xbb8bb8(0x448)]=new _0x3e31a3(this),this[_0xbb8bb8(0x6e4)]=new _0xb54acb(this);if(!_0x1797c7[_0xbb8bb8(0x245)]('~')||_0x1797c7[_0xbb8bb8(0x75e)](_0xbb8bb8(0x2ab)))this['queue']=new _0x5a87b7(this);if(!_0x1797c7[_0xbb8bb8(0x245)]('~'))this[_0xbb8bb8(0x3a1)]=new _0x483c25(this);this[_0xbb8bb8(0x2fd)]=new _0x2513b8(_0x439d43,_0x1797c7),this[_0xbb8bb8(0x41f)]=new _0x1fd849(_0x439d43,_0x1797c7,_0x439d43[_0xbb8bb8(0x41f)]),this[_0xbb8bb8(0x5fc)]=new _0x22940e(_0x439d43,_0x1797c7);if(!_0x1797c7[_0xbb8bb8(0x245)]('~')&&_0x439d43[_0xbb8bb8(0x667)][_0xbb8bb8(0x579)]&&_0x5ae2d3(_0x439d43))this[_0xbb8bb8(0x579)]=new _0x5ec99e(this);_0x48a9fe['registerEnv'](this[_0xbb8bb8(0x1aa)],this);const _0x2974c3=this;this[_0xbb8bb8(0x337)]={async 'transaction'(_0x14ce5d){const _0x4122d4=_0xbb8bb8,_0x372b35=[];_0x2974c3[_0x4122d4(0x305)]=_0x372b35;try{_0x14ce5d();}finally{_0x2974c3[_0x4122d4(0x305)]=null;}return _0x2974c3[_0x4122d4(0x263)][_0x4122d4(0x287)][_0x4122d4(0x65c)](_0x4122d4(0x81f),_0x2974c3['name'],'commit',[_0x372b35]);},'drain'(){const _0x20a92e=_0xbb8bb8;return _0x2974c3[_0x20a92e(0x263)][_0x20a92e(0x287)][_0x20a92e(0x61a)]();},'flushLmdb'(){const _0x417187=_0xbb8bb8;return _0x2974c3[_0x417187(0x263)]['_wb'][_0x417187(0x61a)]();},'markClosed'(){}};const _0x277bb5=new _0x2aa967(this,'');_0x277bb5['getStats']=()=>({'lastTxnId':this['_n']('lastTxnId',[])}),Object[_0xbb8bb8(0x834)](_0x277bb5,_0xbb8bb8(0x252),{'get':()=>this[_0xbb8bb8(0x263)]['_wb'][_0xbb8bb8(0x61a)](),'configurable':!![]}),Object[_0xbb8bb8(0x834)](_0x277bb5,_0xbb8bb8(0x2f4),{'get':()=>this[_0xbb8bb8(0x263)][_0xbb8bb8(0x287)]['drain'](),'configurable':!![]});const _0x93800b=_0x277bb5[_0xbb8bb8(0x4ff)][_0xbb8bb8(0x818)](_0x277bb5);_0x277bb5[_0xbb8bb8(0x4ff)]=_0x50a58f=>_0x50a58f===_0xbb8bb8(0x79d)?this['_n'](_0xbb8bb8(0x7da),[null]):_0x93800b(_0x50a58f),this['db']=_0x277bb5;}async[_0x43ff90(0x508)](){const _0x32b564=_0x43ff90;this[_0x32b564(0x632)]=!![];}get[_0x43ff90(0x7ea)](){const _0x5cf15f=_0x43ff90;return new Map(this[_0x5cf15f(0x263)]['_call']('db',null,_0x5cf15f(0x5b9),[this[_0x5cf15f(0x80a)]],![]));}get[_0x43ff90(0x3c8)](){const _0x2b7681=_0x43ff90;return this[_0x2b7681(0x888)]||(this[_0x2b7681(0x888)]=new _0x2aa967(this,_0x2b7681(0x63d)));}[_0x43ff90(0x2d4)](_0x470cc2){const _0x3a782e=_0x43ff90,_0x314354=this[_0x3a782e(0x3c8)][_0x3a782e(0x4ff)](_0x470cc2);if(_0x314354===undefined||String(_0x470cc2)[_0x3a782e(0x245)](_0x3a782e(0x684))||String(_0x470cc2)['startsWith'](_0x3a782e(0x563))){const {OKDBError:_0x2934fc}=requireErrors();throw new _0x2934fc(_0x3a782e(0x20a)+_0x470cc2+'\x22\x20is\x20not\x20registered',_0x3a782e(0x1c6),{'type':_0x470cc2});}const _0x246a6d=this,_0x5ba460=new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2+_0x3a782e(0x53f)),_0x20dbee=new Map();for(const _0x37e2b6 of _0x5ba460[_0x3a782e(0x608)]()){const _0x121a39=_0x5ba460['get'](_0x37e2b6)||{},_0x246385={'parts':_0x37e2b6[_0x3a782e(0x2ee)]('~'),'db':new _0x2aa967(_0x246a6d,'type:'+_0x470cc2+_0x3a782e(0x379)+_0x37e2b6,{'dupSort':!![]})};if(_0x121a39[_0x3a782e(0x389)])_0x246385[_0x3a782e(0x389)]=_0x121a39['geoConfig'];if(_0x121a39[_0x3a782e(0x516)])_0x246385['unique']=!![];if(_0x121a39[_0x3a782e(0x66c)])_0x246385[_0x3a782e(0x66c)]=_0x121a39[_0x3a782e(0x66c)];_0x246385[_0x3a782e(0x60f)]=new Set((_0x121a39[_0x3a782e(0x60f)]??[])[_0x3a782e(0x4ba)](_0x4f05fc=>_0x4f05fc[_0x3a782e(0x5f2)]+':'+_0x4f05fc[_0x3a782e(0x80a)])),_0x20dbee[_0x3a782e(0x398)](_0x37e2b6,_0x246385);}return{'root':new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2),'data':new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2+_0x3a782e(0x286),{'useVersions':!![]}),'indexes':_0x5ba460,'clockToChange':new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2+_0x3a782e(0x881)),'keyToChange':new _0x2aa967(_0x246a6d,'type:'+_0x470cc2+_0x3a782e(0x1f3)),'fieldSchema':new Map(Object[_0x3a782e(0x207)](_0x314354[_0x3a782e(0x861)]||{})[_0x3a782e(0x4ba)](([_0x5801c2,_0x209358])=>[_0x5801c2,new Set(Array[_0x3a782e(0x55b)](_0x209358)?_0x209358:[_0x209358])])),'indexToDb':_0x20dbee,'ftsToDb':null,'schema':_0x314354[_0x3a782e(0x545)]||null,'defaultTTL':_0x314354[_0x3a782e(0x82d)]||null};}get[_0x43ff90(0x57c)](){const _0x52fad5=_0x43ff90,_0x36c77e=this,_0x56bdd5=()=>_0x36c77e[_0x52fad5(0x17d)]();return{'get':_0x17627a=>{const _0x183c1a=_0x52fad5;try{return _0x36c77e[_0x183c1a(0x2d4)](_0x17627a);}catch{return undefined;}},'has':_0x5c63a9=>_0x56bdd5()[_0x52fad5(0x75e)](_0x5c63a9),'keys':()=>_0x56bdd5()[Symbol[_0x52fad5(0x84c)]](),get 'size'(){const _0x2852b7=_0x52fad5;return _0x56bdd5()[_0x2852b7(0x2f6)];}};}[_0x43ff90(0x796)](){const _0x17873f=_0x43ff90;return this[_0x17873f(0x17d)]();}get[_0x43ff90(0x86f)](){const _0x11dd82=_0x43ff90;return this[_0x11dd82(0x7bb)]||(this[_0x11dd82(0x7bb)]=new _0x2aa967(this,'changes'));}get['clockToChangeDb'](){const _0xa11d35=_0x43ff90;return this[_0xa11d35(0x85d)]||(this[_0xa11d35(0x85d)]=new _0x2aa967(this,'clocks'));}['_advanceHlcOnRecv'](_0x4f75e7){const _0x4002b0=_0x43ff90;return this['_n'](_0x4002b0(0x797),[_0x4f75e7]);}get['_noChangelog'](){const _0x5981ab=_0x43ff90;return!this['_n'](_0x5981ab(0x5fb),[],![]);}get[_0x43ff90(0x591)](){const _0x4a2f7e=_0x43ff90;return this[_0x4a2f7e(0x3b0)]!==undefined?this[_0x4a2f7e(0x3b0)]:this['_n'](_0x4a2f7e(0x5fb),[],![]);}set[_0x43ff90(0x591)](_0x5d3776){const _0x4f4683=_0x43ff90;this[_0x4f4683(0x3b0)]=_0x5d3776;}get[_0x43ff90(0x612)](){const _0xecc452=_0x43ff90;return this['_compactLock']||(this['_compactLock']=new(requireLock())[(_0xecc452(0x390))](this[_0xecc452(0x263)],_0xecc452(0x199),'compact',{'ttlMs':0xea60}));}get[_0x43ff90(0x1aa)](){const _0x355d8f=_0x43ff90;return this[_0x355d8f(0x438)]??(this[_0x355d8f(0x438)]=this['_n'](_0x355d8f(0x1aa),[]));}get['id'](){return this['_n']('id',[]);}get[_0x43ff90(0x302)](){const _0x237c53=_0x43ff90;return this['okdb'][_0x237c53(0x302)];}['_n'](_0x258750,_0x37f071){const _0x36c3d4=_0x43ff90;return this[_0x36c3d4(0x263)][_0x36c3d4(0x7b0)]('env',this[_0x36c3d4(0x80a)],_0x258750,_0x37f071,!_0x40e086[_0x36c3d4(0x868)](_0x258750));}[_0x43ff90(0x309)](_0x2794e4){const _0x1c4a09=_0x43ff90;return this[_0x1c4a09(0x263)][_0x1c4a09(0x1d6)](_0x2794e4);}['_np'](_0x55aa36,_0x3636bb){const _0x43c8c7=_0x43ff90;if(_0x5e3901[_0x43c8c7(0x868)](_0x55aa36===_0x43c8c7(0x59e)?_0x3636bb[0x1]:_0x55aa36))return this[_0x43c8c7(0x263)]['_callRows'](this[_0x43c8c7(0x80a)],_0x55aa36,_0x3636bb);return this['okdb'][_0x43c8c7(0x52c)](_0x43c8c7(0x81f),this[_0x43c8c7(0x80a)],_0x55aa36,_0x3636bb);}[_0x43ff90(0x4b7)](_0x21790e={'useReadTransaction':![]}){return new(_0x53555a())(this,_0x21790e);}async['txn'](_0x485247,_0x1965b7){return _0x53555a()['run'](this,_0x485247,_0x1965b7);}[_0x43ff90(0x18f)](_0x3ed2c5,_0x2088aa){const _0x3c45b4=_0x43ff90;if(this[_0x3c45b4(0x305)])this[_0x3c45b4(0x305)][_0x3c45b4(0x3c0)]({'action':_0x3ed2c5,'args':_0x2088aa});else this['_n'](_0x3ed2c5,_0x2088aa);}['_put'](_0x27d7a8,_0x277423,_0x2e7d6b,_0x3c5196,_0x1c8298){const _0x1f2b67=_0x43ff90;this['_low'](_0x1f2b67(0x77c),[_0x277423,_0x2e7d6b,_0x3c5196,_0x1c8298]);}[_0x43ff90(0x4d8)](_0x82d9ba,_0x344e6c,_0x281ebb,_0x1f6753,_0x11ce7e){const _0x4f6e67=_0x43ff90;this[_0x4f6e67(0x18f)]('update',[_0x344e6c,_0x281ebb,_0x1f6753,_0x11ce7e]);}[_0x43ff90(0x422)](_0xa0449a,_0x36729a,_0x3eb59e,_0x529825,_0x518583){const _0x48092f=_0x43ff90;this['_low'](_0x48092f(0x296),[_0x36729a,_0x3eb59e,_0x529825,_0x518583]);}['_create'](_0x11b73a,_0x57f9b4,_0x5ab042,_0x37f39f,_0x26e4fe){const _0x1711f2=_0x43ff90;this[_0x1711f2(0x18f)](_0x1711f2(0x1d9),[_0x57f9b4,_0x5ab042,_0x37f39f,_0x26e4fe]);}['_remove'](_0x335983,_0x297305,_0x20667e,_0x4a4bab){this['_low']('remove',[_0x297305,_0x20667e,_0x4a4bab]);}['_setTTL'](_0x788aa7,_0x52af1e,_0x4d6d98,_0x4da485){const _0x3fc2fe=_0x43ff90;this[_0x3fc2fe(0x18f)](_0x3fc2fe(0x83e),[_0x52af1e,_0x4d6d98,_0x4da485]);}[_0x43ff90(0x61b)](_0x422e30,_0x4cf26d,_0x55ad02){const _0x8eaac=_0x43ff90;this['_low'](_0x8eaac(0x188),[_0x4cf26d,_0x55ad02]);}['_w'](_0x4e27f8,_0x23cbd7){const _0xcae6d=_0x43ff90;return this['okdb'][_0xcae6d(0x287)][_0xcae6d(0x65c)](_0xcae6d(0x81f),this['name'],_0x4e27f8,_0x23cbd7);}[_0x43ff90(0x77c)](_0x5f9c75,_0x244af0,_0x23cf9a,_0x24ced6={}){const _0x4cef07=_0x43ff90;return this['_w'](_0x4cef07(0x77c),[_0x5f9c75,_0x244af0,_0x23cf9a,_0x24ced6]);}['update'](_0x3b6007,_0x2b378f,_0x50ce24,_0x4a4122={}){return this['_w']('update',[_0x3b6007,_0x2b378f,_0x50ce24,_0x4a4122]);}['patch'](_0x4bf005,_0x1677a4,_0x3569d3,_0x35dbab={}){const _0x4c3fb5=_0x43ff90;return this['_w'](_0x4c3fb5(0x296),[_0x4bf005,_0x1677a4,_0x3569d3,_0x35dbab]);}[_0x43ff90(0x1d9)](_0x278a29,_0x391885,_0x31215c,_0x1b181e={}){const _0x1f9166=_0x43ff90;return this['_w'](_0x1f9166(0x1d9),[_0x278a29,_0x391885,_0x31215c,_0x1b181e]);}['remove'](_0x5dde1c,_0xef0f2b,_0xf41e5c={}){const _0x33c5bc=_0x43ff90;return this['_w'](_0x33c5bc(0x7e6),[_0x5dde1c,_0xef0f2b,_0xf41e5c]);}[_0x43ff90(0x4ff)](_0x4f009c,_0x5c7530,_0x38778b){const _0x1f391a=_0x43ff90;if(_0x2782b1&&typeof _0x4f009c==='string'){const _0x154020=this[_0x1f391a(0x263)][_0x1f391a(0x61c)](this[_0x1f391a(0x80a)],_0x4f009c,_0x5c7530);if(_0x154020!==_0x30287e)return _0x154020===null?this['_n'](_0x1f391a(0x4ff),[_0x4f009c,_0x5c7530]):_0x154020;}if(_0x362b4b&&(typeof _0x5c7530==='string'||typeof _0x5c7530==='number')){const _0x19c8d3=this[_0x1f391a(0x263)]['_getRaw'](this[_0x1f391a(0x80a)],_0x4f009c,_0x5c7530);if(_0x19c8d3!==null)return _0x19c8d3;}return this['_n'](_0x1f391a(0x4ff),[_0x4f009c,typeof _0x5c7530===_0x1f391a(0x552)?null:_0x5c7530]);}[_0x43ff90(0x7ae)](_0xd2ce00,_0x135997,_0x304c02){const _0x517ab7=_0x43ff90,_0x23d935=[_0xd2ce00,Array[_0x517ab7(0x55b)](_0x135997)&&_0x135997['some'](_0x4ddc17=>typeof _0x4ddc17===_0x517ab7(0x552))?_0x135997[_0x517ab7(0x4ba)](_0x450ae6=>typeof _0x450ae6==='symbol'?null:_0x450ae6):_0x135997];return _0x362b4b?this['okdb']['_callRows'](this[_0x517ab7(0x80a)],'getMany',_0x23d935):this['_n']('getMany',_0x23d935);}['getEntry'](_0x4a8ce3,_0x932944,_0x223012){const _0x5ba102=_0x43ff90;return this['_n']('getEntry',[_0x4a8ce3,typeof _0x932944===_0x5ba102(0x552)?null:_0x932944]);}['getCount'](_0x19d8f5,_0x5d7b45){const _0x2bf86a=_0x43ff90;return this['_assertRangeOptions'](_0x2bf86a(0x34c),_0x5d7b45),this['_n'](_0x2bf86a(0x34c),[_0x19d8f5,_0x1f0333(_0x5d7b45)]);}[_0x43ff90(0x488)](_0x37600f,_0x7b753c,_0x2b8e46=[]){const _0x46ce9f=_0x43ff90;if(!_0x7b753c||typeof _0x7b753c!=='object')return;for(const _0x33fd77 of Object[_0x46ce9f(0x542)](_0x7b753c)){if(!_0xdf5a46[_0x46ce9f(0x868)](_0x33fd77)&&!_0x2b8e46[_0x46ce9f(0x75e)](_0x33fd77))throw new _0x103cf7(_0x37600f+_0x46ce9f(0x386)+_0x33fd77+'\x27','UNKNOWN_RANGE_OPTION',{'option':_0x33fd77});}}['_range'](_0x3432a5,_0x2a7fef,_0x11bb8e,_0x191b49,_0x412a8c,_0x4367e7){const _0x4929d2=_0x43ff90;this[_0x4929d2(0x488)](_0x3432a5,_0x191b49);const _0x5cf465=_0x191b49?.[_0x4929d2(0x870)],_0x43fa4d=_0x1f0333(_0x191b49);if(_0x5cf465===!![]||_0x5cf465===_0x4929d2(0x229)){const _0x3ccd23=this[_0x4929d2(0x626)](_0x3432a5,_0x2a7fef,_0x59441c=>[_0x11bb8e,{..._0x43fa4d,..._0x59441c}],_0x191b49);return _0x4367e7?_0x3ccd23[_0x4929d2(0x4ba)](_0x4367e7):_0x3ccd23;}const _0x448373=_0x2d9cfc(_0x11c5b5=>this['_np'](_0x2a7fef,[_0x11bb8e,_0x11c5b5]),_0x43fa4d,_0x412a8c,{'rows':_0x2a7fef===_0x4929d2(0x655)});return _0x4367e7?_0x448373['map'](_0x4367e7):_0x448373;}[_0x43ff90(0x626)](_0x415395,_0x4b9d3a,_0x596d17,_0xdd26fa,_0x4679fb,_0x5cdd38=![]){const _0x45a8e5=_0x43ff90,{source:_0x153609,prefetch:_0x1953a2}=_0x1b1c3b((_0x28c83f,_0x390b9b)=>_0x28c83f===_0x45a8e5(0x679)?this['_n'](_0x28c83f,_0x390b9b):this['_np'](_0x28c83f,_0x390b9b),_0x4b9d3a,_0x596d17,_0xdd26fa||{},_0x4679fb),_0x13a60f=_0x1953a2(),_0x117b64=!_0x5cdd38&&_0xdd26fa&&_0xdd26fa[_0x45a8e5(0x870)]==='tolerant';let _0x5f5267=null;return _0x441cd1(()=>({[Symbol[_0x45a8e5(0x84c)]]:()=>_0x5f5267=_0x153609(0x0,_0xf4f1cc(_0x13a60f))}),{'label':this[_0x45a8e5(0x80a)]+':'+_0x415395,..._0x117b64?{'getTxnId':()=>this['db']['getStats']()[_0x45a8e5(0x3a4)],'resume':()=>({[Symbol[_0x45a8e5(0x84c)]]:()=>_0x5f5267=_0x5f5267[_0x45a8e5(0x191)]()})}:{}});}[_0x43ff90(0x655)](_0x38a421,_0x30f49a){const _0x38b9e6=_0x43ff90;return this[_0x38b9e6(0x223)](_0x38b9e6(0x655),'getRange',_0x38a421,_0x30f49a,_0x23bee9=>_0x23bee9[_0x38b9e6(0x7e4)]);}[_0x43ff90(0x608)](_0x3effc1,_0x4788aa){const _0x1ae0c2=_0x43ff90;return this['_range']('getKeys',_0x1ae0c2(0x608),_0x3effc1,_0x4788aa,_0xd35d6d=>_0xd35d6d);}[_0x43ff90(0x47c)](_0x31fe2c,_0xdd591f){const _0x3fe2a8=_0x43ff90;return this[_0x3fe2a8(0x223)]('getValues',_0x3fe2a8(0x655),_0x31fe2c,_0xdd591f,_0x7f50ac=>_0x7f50ac[_0x3fe2a8(0x7e4)],_0x52d720=>_0x52d720['value']);}[_0x43ff90(0x70c)](_0x40a0c6,_0x198318,_0xe93643={}){const _0x8a3164=_0x43ff90;return this[_0x8a3164(0x655)](_0x40a0c6,{'start':_0x198318,'end':_0x198318+'￿',..._0xe93643});}[_0x43ff90(0x43e)](_0x3ed589,_0x19a1c6,_0x2af00b={}){const _0x3eab29=_0x43ff90;this[_0x3eab29(0x488)]('getIndex',_0x2af00b,['prefix']);const _0x3e00e3=_0x1f0333(_0x2af00b);if(_0x2af00b&&_0x2af00b[_0x3eab29(0x4b7)])return _0xb66a58(this['_n']('getIndex',[_0x3ed589,_0x19a1c6,_0x3e00e3]));return this[_0x3eab29(0x626)](_0x3eab29(0x43e),'getIndex',_0x423fd7=>[_0x3ed589,_0x19a1c6,{..._0x3e00e3,..._0x423fd7}],_0x2af00b,undefined,!![]);}[_0x43ff90(0x807)](_0x2161c5,_0x306fe7,_0x1ffc19){const _0x36efb2=_0x43ff90;this[_0x36efb2(0x488)](_0x36efb2(0x807),_0x1ffc19,['prefix','includeViolations']);const _0x1f356b=_0x1f0333(_0x1ffc19);if(_0x1ffc19&&_0x1ffc19[_0x36efb2(0x4b7)])return _0xb66a58(this['_n'](_0x36efb2(0x807),[_0x2161c5,_0x306fe7,_0x1f356b]));return this[_0x36efb2(0x626)](_0x36efb2(0x807),_0x36efb2(0x807),_0x22521c=>[_0x2161c5,_0x306fe7,{..._0x1f356b,..._0x22521c}],_0x1ffc19,undefined,!![]);}[_0x43ff90(0x407)](_0x2af347,_0x3544d3,_0x1aea73={}){return this['_n']('countByIndex',[_0x2af347,_0x3544d3,_0x1f0333(_0x1aea73)]);}[_0x43ff90(0x71e)](_0x1b6871,_0x4ee69a={},_0x341c9b={}){const _0x33ac90=_0x43ff90,_0x39fc12=_0x1971b7(_0x341c9b);if(_0x341c9b){for(const _0x3ac096 of Object[_0x33ac90(0x542)](_0x341c9b))if(_0x3ac096!==_0x33ac90(0x3b5)&&typeof _0x341c9b[_0x3ac096]==='function')_0x39fc12[_0x3ac096]=null;}if(_0x341c9b&&(_0x341c9b[_0x33ac90(0x6bf)]||_0x341c9b[_0x33ac90(0x4f6)]))return this['_n'](_0x33ac90(0x537),[_0x39fc12]),this[_0x33ac90(0x84f)](_0x1b6871,_0x4ee69a,_0x341c9b);const _0x28aecb=typeof _0x341c9b['select']==='function'?_0x341c9b[_0x33ac90(0x3b5)]:null;if(_0x341c9b['near']||_0x3642e6(_0x4ee69a)||_0x341c9b[_0x33ac90(0x4b7)]!==undefined){let _0xd3b32a=this['_n'](_0x33ac90(0x71e),[_0x1b6871,_0x4ee69a,_0x39fc12]);if(_0x28aecb)_0xd3b32a=_0xd3b32a[_0x33ac90(0x4ba)](_0x28aecb);if(_0x341c9b['near']||_0x3642e6(_0x4ee69a))return _0xd3b32a;return _0xb66a58(_0xd3b32a);}const _0x24c606=_0x18d620=>typeof _0x18d620==='number'&&Number[_0x33ac90(0x887)](_0x18d620)?Math[_0x33ac90(0x6c5)](0x0,_0x18d620):Infinity;let _0x3c0309;if(_0x341c9b[_0x33ac90(0x74b)]){const _0x41b376=_0x2fd96c=>typeof _0x2fd96c==='number'&&_0x2fd96c>0x0?Math[_0x33ac90(0x6c1)](_0x2fd96c):0x0;_0x3c0309=this[_0x33ac90(0x626)](_0x33ac90(0x71e),_0x33ac90(0x71e),_0x2b5e88=>[_0x1b6871,_0x4ee69a,{..._0x39fc12,..._0x2b5e88}],null,{'limitOf':()=>_0x24c606(_0x39fc12['limit']),'offsetOf':()=>_0x41b376(_0x39fc12[_0x33ac90(0x7cb)])});}else _0x3c0309=_0x2d9cfc(_0x53541a=>{const _0x452791=_0x33ac90,{__after:_0xbef0af,..._0x1d9c15}=_0x53541a;return this[_0x452791(0x526)](_0x452791(0x71e),_0xbef0af===undefined?[_0x1b6871,_0x4ee69a,_0x1d9c15]:[_0x1b6871,_0x4ee69a,_0x1d9c15,_0xbef0af]);},_0x39fc12,_0x12af9a=>_0x12af9a[_0x33ac90(0x7e4)],{'limitOf':_0x24c606,'rows':!![],'prefetch':!![],'resumeOpts':(_0xa03f42,_0x237d0d)=>{const _0x3fb306=_0x33ac90;_0xa03f42[_0x3fb306(0x7cb)]=0x0,_0xa03f42['__after']=_0x237d0d;}});return _0x28aecb?_0x3c0309[_0x33ac90(0x4ba)](_0x28aecb):_0x3c0309;}async[_0x43ff90(0x84f)](_0x4e7886,_0x2796d0,_0xec83e8){const _0x29f6f4=_0x43ff90,{select:_0x4679a6,..._0x4d14d2}=_0x1971b7(_0xec83e8);let _0x250f97={..._0x4d14d2};const _0x563584=_0x250f97[_0x29f6f4(0x74b)];if(_0x563584&&!Array[_0x29f6f4(0x55b)](_0x563584)&&typeof _0x563584==='object'&&_0x563584[_0x29f6f4(0x861)]){const {fields:_0x15b954,prefix:_0x435805,start:_0x3f3e81,end:_0x79e11c}=_0x563584;_0x250f97={..._0x250f97,'index':_0x15b954,'prefix':_0x435805??_0x250f97['prefix'],'startIndex':_0x3f3e81??_0x250f97[_0x29f6f4(0x2c3)],'endIndex':_0x79e11c??_0x250f97['endIndex']};}const _0x5d625b=await this[_0x29f6f4(0x263)][_0x29f6f4(0x217)]('embeddings',null,'hybridQuery',[this['name'],_0x4e7886,_0x2796d0,_0x250f97],![]),_0x15ad2c=typeof _0xec83e8[_0x29f6f4(0x3b5)]===_0x29f6f4(0x5c4)?_0xec83e8[_0x29f6f4(0x3b5)]:null;if(!_0x15ad2c)return _0x5d625b;return _0x5d625b[_0x29f6f4(0x4ba)](_0x4347ff=>{const {score:_0x1ff29d,ftsScore:_0x4a2c75,numTerms:_0x53d75b,maxScore:_0x46d10b,vectorScore:_0x15586f,chunkHash:_0x183e55,chunk:_0x303311,..._0x2c226e}=_0x4347ff,_0x5c4f99=_0x15ad2c(_0x2c226e);for(const [_0xf62919,_0x5874e6]of Object['entries']({'score':_0x1ff29d,'ftsScore':_0x4a2c75,'numTerms':_0x53d75b,'maxScore':_0x46d10b,'vectorScore':_0x15586f,'chunkHash':_0x183e55,'chunk':_0x303311}))if(_0x5874e6!==undefined)_0x5c4f99[_0xf62919]=_0x5874e6;return _0x5c4f99;});}[_0x43ff90(0x789)](_0x52e45a,_0x49b7eb,_0x2e5004={}){const _0x5a2cfe=_0x43ff90;let _0xffef45=this['_n']('geoQuery',[_0x52e45a,_0x49b7eb,_0x1971b7(_0x2e5004)]);if(typeof _0x2e5004[_0x5a2cfe(0x3b5)]==='function')_0xffef45=_0xffef45[_0x5a2cfe(0x4ba)](_0x2e5004['select']);return _0xffef45;}[_0x43ff90(0x7da)](_0x447286=null,_0xa77f8a={}){const _0x479c34=_0x43ff90;return this['_n'](_0x479c34(0x7da),[_0x447286]);}['getChanges'](_0x26d5c2=null,_0x5e2837=0x0,_0x3b152b=Number['MAX_SAFE_INTEGER'],_0x2e2340={}){const _0x14f88d=_0x43ff90,_0x1e6476=_0x1f0333(_0x2e2340);if(_0x2e2340&&_0x2e2340[_0x14f88d(0x4b7)])return _0xb66a58(this['_n']('getChanges',[_0x26d5c2,_0x5e2837,_0x3b152b,_0x1e6476]));return this[_0x14f88d(0x626)]('getChanges',_0x14f88d(0x356),_0x553da0=>[_0x26d5c2,_0x5e2837,_0x3b152b,{..._0x1e6476,..._0x553da0}],_0x2e2340);}[_0x43ff90(0x768)](_0xf2522f){const _0x1bbeb8=_0x43ff90;if(Array[_0x1bbeb8(0x55b)](_0xf2522f))return _0xf2522f['length'];let _0xfcf734=0x0;for(const _0xfff0f0 of _0xf2522f)_0xfcf734++;return _0xfcf734;}*[_0x43ff90(0x261)](_0x1e92d4){yield*_0x1e92d4;}[_0x43ff90(0x785)](){const _0x4a244a=_0x43ff90;return requireOkdbHlc()[_0x4a244a(0x78e)](this[_0x4a244a(0x4b2)]);}get['_ttlTimeout'](){const _0x2b1cf0=_0x43ff90,_0x1159d3=this['okdb'][_0x2b1cf0(0x7df)]?this[_0x2b1cf0(0x263)]['_call']('db',null,_0x2b1cf0(0x321),[this[_0x2b1cf0(0x80a)]],![]):null;if(!_0x1159d3)return null;if(this['__ttlCancelledGen']===_0x1159d3[_0x2b1cf0(0x2a3)])return null;this['_timerObjs']=this[_0x2b1cf0(0x224)]||new Map();let _0x11aae4=this[_0x2b1cf0(0x224)][_0x2b1cf0(0x4ff)](_0x1159d3[_0x2b1cf0(0x2a3)]);if(!_0x11aae4){const _0x326a88=this;_0x11aae4={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x1159d3[_0x2b1cf0(0x2a3)],'at':_0x1159d3['at'],'target':_0x1159d3[_0x2b1cf0(0x248)],get '_destroyed'(){const _0x5d2507=_0x2b1cf0,_0x41aa5a=_0x326a88[_0x5d2507(0x263)][_0x5d2507(0x7df)]?_0x326a88[_0x5d2507(0x263)][_0x5d2507(0x7b0)]('db',null,_0x5d2507(0x321),[_0x326a88[_0x5d2507(0x80a)]],![]):null;return!_0x41aa5a||_0x41aa5a['gen']!==this[_0x5d2507(0x2a3)]||_0x326a88[_0x5d2507(0x3e3)]===this[_0x5d2507(0x2a3)];}},this[_0x2b1cf0(0x224)][_0x2b1cf0(0x398)](_0x1159d3[_0x2b1cf0(0x2a3)],_0x11aae4);}return _0x11aae4;}['_cancelTTLTimeout'](){const _0x267969=_0x43ff90,_0x5de761=this[_0x267969(0x263)][_0x267969(0x7b0)]('db',null,'ttlTimer',[this[_0x267969(0x80a)]],![]);if(_0x5de761)this[_0x267969(0x3e3)]=_0x5de761[_0x267969(0x2a3)];}get[_0x43ff90(0x586)](){const _0x5199e3=_0x43ff90,_0x2aecae=this['okdb'][_0x5199e3(0x7b0)]('db',null,'ttlTimer',[this[_0x5199e3(0x80a)]],![]);return _0x2aecae?_0x2aecae[_0x5199e3(0x248)]:null;}get['_autoCompactTimer'](){const _0x64340e=_0x43ff90;return this['okdb'][_0x64340e(0x7b0)]('db',null,_0x64340e(0x709),[this[_0x64340e(0x80a)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x43ff90(0x25b)](){const _0x5611e7=_0x43ff90;this['okdb'][_0x5611e7(0x7b0)]('db',null,_0x5611e7(0x276),[this[_0x5611e7(0x80a)]],![]);}[_0x43ff90(0x195)](){const _0x41ea6b=_0x43ff90;this['okdb'][_0x41ea6b(0x7b0)]('db',null,'stopAutoCompactCheck',[this[_0x41ea6b(0x80a)]],![]);}get['_autoCompact'](){const _0x40e2d5=_0x43ff90,_0x39ad26=(_0x3dbc4e,_0x252d89)=>this[_0x40e2d5(0x263)][_0x40e2d5(0x7b0)]('db',null,_0x3dbc4e,[this[_0x40e2d5(0x80a)],..._0x252d89],![]),_0x82a588=Object[_0x40e2d5(0x542)](_0x39ad26('autoCompactState',[])||{}),_0x1b54d4={};for(const _0x2de74b of _0x82a588)Object[_0x40e2d5(0x834)](_0x1b54d4,_0x2de74b,{'enumerable':!![],'get':()=>_0x39ad26(_0x40e2d5(0x89d),[])?.[_0x2de74b],'set':_0x524b25=>{const _0x2684bf=_0x40e2d5;_0x39ad26(_0x2684bf(0x485),[_0x2de74b,_0x524b25]);}});return _0x1b54d4;}get['_hlc'](){const _0x51ac21=_0x43ff90;return this['_n'](_0x51ac21(0x465),[]);}[_0x43ff90(0x483)](_0x345f4e,_0xdec2c4){return require$$16['isDeepStrictEqual'](_0x345f4e,_0xdec2c4);}async[_0x43ff90(0x2db)](_0x3290b9,_0x2a0094){const _0x3b8300=_0x43ff90;return this['_wsettle'](this['_n'](_0x3b8300(0x2db),[_0x3290b9]));}[_0x43ff90(0x637)](_0x205886){const _0x1e93c5=_0x43ff90;return this['_n'](_0x1e93c5(0x637),[_0x205886]);}[_0x43ff90(0x17d)](){const _0x44e7d5=_0x43ff90;return this['_n'](_0x44e7d5(0x17d),[]);}async[_0x43ff90(0x716)](_0x10ce35,_0x26e4ed){const _0x4a7b58=_0x43ff90;return this['_wsettle'](this['_n'](_0x4a7b58(0x716),[_0x10ce35]));}async[_0x43ff90(0x816)](_0x31f734,_0x2db739){const _0x2e789d=_0x43ff90,{timestamp:_0x335af4,indexes:indexes=[]}=_0x3ef8ed(_0x2db739);return this[_0x2e789d(0x309)](this['_n']('ensureType',[_0x31f734,{'indexes':indexes}]));}async['ensure'](_0x287aaf){const _0x33e125=_0x43ff90,{type:_0x22f72a,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x3ef8ed(_0x287aaf,'spec');if(!_0x22f72a)throw new Error(_0x33e125(0x7f7));await this[_0x33e125(0x816)](_0x22f72a,{'indexes':indexes});for(const _0x239d27 of fts){const {name:_0x4096ab,fields:_0x264222,..._0x137880}=_0x239d27;if(!_0x4096ab||!_0x264222)throw new Error(_0x33e125(0x860));await this[_0x33e125(0x263)][_0x33e125(0x6bf)]['ensure'](_0x22f72a,_0x4096ab,{'fields':_0x264222,..._0x137880},this);}for(const _0x48cefb of views){const {name:_0x2d2b76,definition:_0x2e225d}=_0x48cefb;if(!_0x2d2b76||!_0x2e225d)throw new Error(_0x33e125(0x7f6));if(!await this[_0x33e125(0x448)][_0x33e125(0x6e9)](_0x2d2b76))await this[_0x33e125(0x448)]['create'](_0x2d2b76,_0x2e225d);}if(schema)await this[_0x33e125(0x266)](_0x22f72a,schema);}async['registerIndex'](_0x55b69c,_0xb5f05d,_0x42adf9){const _0x238161=_0x43ff90,_0x36d1f8=this['_n']('registerIndexDeferred',[_0x55b69c,_0xb5f05d,typeof _0x42adf9===_0x238161(0x86d)?_0x42adf9:{}]);if(!_0x36d1f8)return this[_0x238161(0x309)](undefined);const _0x197ec0=this['_n'](_0x238161(0x2d9),[_0x55b69c,_0xb5f05d,!![]]);if(_0x197ec0===undefined)return this[_0x238161(0x309)](undefined);return this[_0x238161(0x309)](await this[_0x238161(0x3f0)](_0x55b69c,_0xb5f05d,_0x197ec0));}async[_0x43ff90(0x3f0)](_0x4d6af0,_0x11f9e6,_0x364e8){const _0x4f68a2=_0x43ff90,_0x1c3abe=_0x4d6af0+'@'+[][_0x4f68a2(0x18e)](_0x11f9e6)['join']('~');if(!this[_0x4f68a2(0x290)])this['_indexBuilds']=new Map();const _0x214dc0=this[_0x4f68a2(0x290)][_0x4f68a2(0x4ff)](_0x1c3abe);if(_0x214dc0)return _0x214dc0;const _0x3c4450=((async()=>{const _0x11516d=_0x4f68a2;do await new Promise(_0x502277=>setImmediate(_0x502277));while(!this['_n'](_0x11516d(0x57f),[_0x4d6af0,_0x11f9e6,_0x364e8,!![]]));})());this['_indexBuilds'][_0x4f68a2(0x398)](_0x1c3abe,_0x3c4450);try{return await _0x3c4450;}finally{this[_0x4f68a2(0x290)]['delete'](_0x1c3abe);}}async[_0x43ff90(0x663)](_0x15a549,_0x3b65e7,_0x4d0726){return this['_wsettle'](this['_n']('dropIndex',[_0x15a549,_0x3b65e7]));}async[_0x43ff90(0x449)](_0x4d127d,_0x26060b,_0x4d5b52){const _0x217a60=_0x43ff90,_0x1de188=this[_0x217a60(0x290)]&&this[_0x217a60(0x290)][_0x217a60(0x4ff)](_0x4d127d+'@'+[][_0x217a60(0x18e)](_0x26060b)[_0x217a60(0x486)]('~'));if(_0x1de188)return _0x1de188;const _0x4257bc=this['_n'](_0x217a60(0x2d9),[_0x4d127d,_0x26060b,_0x4d5b52]);if(_0x4257bc===undefined)return;return await new Promise(_0x3f624f=>setImmediate(_0x3f624f)),this[_0x217a60(0x309)](await this[_0x217a60(0x3f0)](_0x4d127d,_0x26060b,_0x4257bc));}[_0x43ff90(0x88e)](_0x4ade63,_0xa121f1){const _0x54295c=_0x43ff90;return this['_n'](_0x54295c(0x88e),[_0x4ade63,_0xa121f1]);}['getIndexStatus'](_0x5a9b9d,_0x30c8ee){const _0x5e6f76=_0x43ff90;return this['_n'](_0x5e6f76(0x5b0),[_0x5a9b9d,_0x30c8ee]);}async[_0x43ff90(0x3eb)](_0x1a881c,_0xf806e5){const _0x1d5d11=_0x43ff90;if(this['_n'](_0x1d5d11(0x5b0),[_0x1a881c,_0xf806e5])==='ready')return!![];let _0xd9555a=0xa;for(;;){await new Promise(_0x4cdc27=>setTimeout(_0x4cdc27,_0xd9555a));if(!this['okdb'][_0x1d5d11(0x7df)]||this['_closedHandle'])return![];let _0x5c749b;try{_0x5c749b=this['_n'](_0x1d5d11(0x571),[_0x1a881c,Array[_0x1d5d11(0x55b)](_0xf806e5)?_0xf806e5[_0x1d5d11(0x486)]('~'):String(_0xf806e5)['split'](',')['join']('~')]);}catch{return![];}const _0xa73d17=_0x5c749b&&_0x5c749b['status'];if(_0xa73d17===_0x1d5d11(0x37b))return!![];if(_0xa73d17===undefined)return![];_0xd9555a=Math[_0x1d5d11(0x3d2)](_0xd9555a*0x2,0xfa);}}[_0x43ff90(0x571)](_0x3d365f,_0x12f9e2){return this['_n']('getIndexMeta',[_0x3d365f,_0x12f9e2])??null;}[_0x43ff90(0x431)](_0x599eb8,_0x17a16c){const _0x574dfc=_0x43ff90;return this['_n'](_0x574dfc(0x431),[_0x599eb8,_0x17a16c]);}[_0x43ff90(0x4f9)](_0x58bf91,_0x1ab7ad){const _0x3f38eb=_0x43ff90;return this['_n'](_0x3f38eb(0x4f9),[_0x58bf91,_0x1ab7ad]);}['getUniqueViolation'](_0x41b1dc,_0x2b7e2d,_0x1f9c8c){return this['_n']('getUniqueViolation',[_0x41b1dc,_0x2b7e2d,_0x1f9c8c])??null;}[_0x43ff90(0x620)](_0x21470f){const _0x3f47cd=_0x43ff90;return this['_n'](_0x3f47cd(0x620),[_0x21470f])??null;}async[_0x43ff90(0x266)](_0x25046a,_0x9721de){const _0x3406ab=_0x43ff90;return this[_0x3406ab(0x309)](this['_n'](_0x3406ab(0x266),[_0x25046a,_0x9721de]));}async[_0x43ff90(0x2c9)](_0x1f8a82){const _0x1e1ce6=_0x43ff90;return this[_0x1e1ce6(0x309)](this['_n'](_0x1e1ce6(0x2c9),[_0x1f8a82]));}[_0x43ff90(0x7f4)](_0x489e85,_0x4bcb45){const _0x27c350=_0x43ff90;return this['_n'](_0x27c350(0x7f4),[_0x489e85,_0x4bcb45])??null;}['listViolations'](_0x54ebac){return this['_n']('listViolations',[_0x54ebac]);}[_0x43ff90(0x18b)](_0xd80f04,_0x3c9edf,_0x21f798){const _0x512210=_0x43ff90;return this['_n'](_0x512210(0x18b),[_0xd80f04,_0x3c9edf,_0x21f798])??null;}[_0x43ff90(0x6e0)](_0x164d37){return this['_n']('listRefViolations',[_0x164d37]);}async[_0x43ff90(0x83e)](_0x1d6081,_0x2d017a,_0x28809b){const _0x3c9d0a=_0x43ff90;return this['_wsettle'](this['_n'](_0x3c9d0a(0x83e),[_0x1d6081,_0x2d017a,_0x28809b]));}[_0x43ff90(0x7ee)](_0x4447e3,_0x3d985c){const _0x127e53=_0x43ff90;return this['_n'](_0x127e53(0x7ee),[_0x4447e3,_0x3d985c]);}async[_0x43ff90(0x188)](_0x536322,_0x2d34b8){const _0x215253=_0x43ff90;return this[_0x215253(0x309)](this['_n']('clearTTL',[_0x536322,_0x2d34b8]));}async[_0x43ff90(0x7a5)](_0xa0c2dc){const _0x27ef98=_0x43ff90;return this['_n'](_0x27ef98(0x7a5),[_0xa0c2dc]);}[_0x43ff90(0x759)](_0x5e9fd4={}){return this['_n']('listTTL',[_0x5e9fd4]);}[_0x43ff90(0x54b)](_0x32aa73){const _0x17d0a3=_0x43ff90;return this['_n'](_0x17d0a3(0x54b),[_0x32aa73]);}async[_0x43ff90(0x4dc)](_0x280d53,_0x1e3cd5){const _0x5a8f6f=_0x43ff90;return this[_0x5a8f6f(0x309)](this['_n'](_0x5a8f6f(0x4dc),[_0x280d53,_0x1e3cd5]));}[_0x43ff90(0x3d1)](_0x54ced1){const _0x5c5a95=_0x43ff90;return this['_n'](_0x5c5a95(0x3d1),[_0x54ced1]);}async[_0x43ff90(0x6a1)](_0x49eb17){const _0x4b48f8=_0x43ff90;return this[_0x4b48f8(0x309)](this['_n']('clearDefaultTTL',[_0x49eb17]));}async[_0x43ff90(0x2bc)](_0x32d7cd,_0x1eab7d,_0x31bbfe,_0x183ba4){const _0x466f45=_0x43ff90,{batch:batch=null,batchSize:_0x96dec2}=_0x3ef8ed(_0x183ba4);if(typeof _0x32d7cd!==_0x466f45(0x460)||!_0x32d7cd)throw new _0x103cf7(_0x466f45(0x84a),_0x466f45(0x185));if(typeof _0x1eab7d!==_0x466f45(0x460)||!_0x1eab7d)throw new _0x103cf7('resolveField:\x20field\x20required',_0x466f45(0x185));if(_0x31bbfe!=null&&typeof _0x31bbfe!==_0x466f45(0x5c4))throw new _0x103cf7(_0x466f45(0x377),_0x466f45(0x185));if(batch!=null&&typeof batch!==_0x466f45(0x5c4))throw new _0x103cf7('resolveField:\x20options.batch\x20must\x20be\x20a\x20function','BAD_PARAM');if(!_0x31bbfe&&!batch)throw new _0x103cf7(_0x466f45(0x555),_0x466f45(0x185));if(_0x96dec2!==undefined&&!(Number[_0x466f45(0x887)](_0x96dec2)&&_0x96dec2>0x0))throw new _0x103cf7('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x466f45(0x185));const _0x24e90e=batch?async _0x114add=>(await batch(_0x114add))[_0x466f45(0x4ba)](_0x1729cc=>_0x1729cc instanceof Error?{'__error':!![],'message':_0x1729cc[_0x466f45(0x5e1)]}:_0x1729cc):null,_0x170d73=_0x2bd2c9(this,_0x32d7cd,_0x1eab7d),_0x47e21e=this['_n'](_0x466f45(0x2bc),[_0x32d7cd,_0x1eab7d,_0x31bbfe?(_0x40556b,_0x136ae0)=>_0x170d73(_0x31bbfe,[_0x40556b,_0x136ae0]):null,{'batch':_0x24e90e?_0x49f7a6=>_0x170d73(_0x24e90e,[_0x49f7a6]):null,'batchSize':_0x96dec2}]);return()=>this['_n']('removeResolver',[_0x47e21e]);}async[_0x43ff90(0x49a)](_0x545760,_0x54bcb9){const _0x4ce0c2=_0x43ff90;return this['_n'](_0x4ce0c2(0x49a),[_0x545760,_0x54bcb9]);}[_0x43ff90(0x1f6)](_0x61063c){const _0x2e2a90=_0x43ff90;return this['_n'](_0x2e2a90(0x1f6),[_0x61063c]);}async[_0x43ff90(0x1b3)](_0x2dd411,_0x48bec5,_0x151421,_0x12870e){const _0x3bab65=_0x43ff90;return this[_0x3bab65(0x263)][_0x3bab65(0x217)]('env',this['name'],_0x3bab65(0x1b3),[_0x2dd411,_0x48bec5,_0x151421,_0x12870e],![]);}async[_0x43ff90(0x4c9)](_0x1ba55d,_0x2c9796,_0x4eb56f){const _0x5e18fa=_0x43ff90;return this[_0x5e18fa(0x263)][_0x5e18fa(0x217)](_0x5e18fa(0x81f),this[_0x5e18fa(0x80a)],'readFieldMany',[_0x1ba55d,_0x2c9796,_0x4eb56f],![]);}[_0x43ff90(0x26f)](){}[_0x43ff90(0x42c)](_0x1dac9d,_0x5ea976,_0x130418,_0x18536f={},_0x317d74={}){const _0x2db16a=_0x43ff90;return this[_0x2db16a(0x263)][_0x2db16a(0x7b0)](_0x2db16a(0x6bf),null,'ftsQuery',[_0x1dac9d,_0x5ea976,_0x130418,_0x18536f,_0x317d74,this[_0x2db16a(0x80a)]],![]);}get[_0x43ff90(0x6bf)](){const _0x28c8d8=_0x43ff90;return this['okdb'][_0x28c8d8(0x6bf)];}[_0x43ff90(0x79f)](){const _0xa54198=_0x43ff90;return this[_0xa54198(0x263)][_0xa54198(0x7b0)]('env',this[_0xa54198(0x80a)],'getResolvedOptions',[],![]);}['diag'](){const _0x24ef44=_0x43ff90;return this['okdb'][_0x24ef44(0x371)]();}[_0x43ff90(0x1a0)](){const _0x21c273=_0x43ff90;return this[_0x21c273(0x263)][_0x21c273(0x7b0)]('env',this[_0x21c273(0x80a)],_0x21c273(0x1a0),[],![]);}[_0x43ff90(0x5ca)](){}get[_0x43ff90(0x5db)](){const _0x15619f=_0x43ff90;return this[_0x15619f(0x455)]||(this[_0x15619f(0x455)]=new(requireLock())['NativeLock'](this['okdb'],this['name'],_0x15619f(0x81f)));}[_0x43ff90(0x682)](){const _0x466581=_0x43ff90;return this[_0x466581(0x263)]['_call'](_0x466581(0x81f),this[_0x466581(0x80a)],_0x466581(0x682),[],![]);}['_registerType'](_0x4c2a8a){const _0x51eb87=_0x43ff90;this['_n'](_0x51eb87(0x2db),[_0x4c2a8a]);}[_0x43ff90(0x817)](_0x897b96){const _0x5c33da=_0x43ff90;this['_n'](_0x5c33da(0x769),[_0x897b96]);}[_0x43ff90(0x27b)](){const _0x30fbc9=_0x43ff90;return this['_n'](_0x30fbc9(0x787),[]);}[_0x43ff90(0x70b)](_0x5a9ce0,_0xe048d2){return _0x5a9ce0+'\x09'+_0xe048d2;}[_0x43ff90(0x66f)](_0x3249b2){const _0x2b9194=_0x43ff90,_0x16762b=_0x3249b2[_0x2b9194(0x374)]('\x09');return{'type':_0x3249b2[_0x2b9194(0x5d1)](0x0,_0x16762b),'key':_0x3249b2['slice'](_0x16762b+0x1)};}get[_0x43ff90(0x2af)](){const _0x11547a=_0x43ff90;if(!this['_ttlState']()[_0x11547a(0x28f)])return null;return this['__ttlByKey']||(this[_0x11547a(0x2b3)]=new _0x2aa967(this,_0x11547a(0x4d4)));}get[_0x43ff90(0x2ef)](){const _0x3f3595=_0x43ff90;if(!this[_0x3f3595(0x27b)]()['enabled'])return null;return this[_0x3f3595(0x347)]||(this[_0x3f3595(0x347)]=new _0x2aa967(this,_0x3f3595(0x3d5),{'dupSort':!![]}));}['_setTTLEntry'](_0x1e975b,_0x4f81f7,_0x2a3273){const _0x201700=_0x43ff90;this['_n'](_0x201700(0x1cd),[_0x1e975b,_0x4f81f7,_0x2a3273]);}['_isExpired'](_0x2ac156,_0x4221db){const _0x122f3a=_0x43ff90,_0x22b268=this[_0x122f3a(0x2af)]?.['get'](this[_0x122f3a(0x70b)](_0x2ac156,_0x4221db));return _0x22b268!=null&&_0x22b268<=Date['now']();}get[_0x43ff90(0x528)](){const _0x3513d5=_0x43ff90;return this[_0x3513d5(0x27b)]()[_0x3513d5(0x2e6)]??null;}get[_0x43ff90(0x700)](){const _0x39a3e8=_0x43ff90;return this[_0x39a3e8(0x27b)]()[_0x39a3e8(0x231)]||0x0;}get[_0x43ff90(0x3e0)](){return![];}[_0x43ff90(0x257)](){}async[_0x43ff90(0x595)](_0x4f64ab,_0x2e5834){const _0x38d080=_0x43ff90;if(this['_rebuilding']){const {OKDBError:_0x4e4938}=requireErrors();throw new _0x4e4938(_0x38d080(0x247),'REBUILD_IN_PROGRESS');}this[_0x38d080(0x2e0)]=!![];try{return await this['okdb'][_0x38d080(0x217)](_0x38d080(0x81f),this[_0x38d080(0x80a)],_0x4f64ab,[_0x2e5834],!![]);}finally{this[_0x38d080(0x2e0)]=![];}}async[_0x43ff90(0x88f)](_0x1e99f4={}){const _0x5a6dff=_0x43ff90;return this[_0x5a6dff(0x595)]('compact',_0x1e99f4);}async['repair'](_0xb2bd89={}){const _0x54110c=_0x43ff90;return this[_0x54110c(0x595)](_0x54110c(0x1d3),_0xb2bd89);}}_0x1de694[_0x43ff90(0x54e)]=_0x25f607;function _0x3642e6(_0x928b7d){const _0x5aebb4=_0x43ff90;if(!_0x928b7d||typeof _0x928b7d!=='object')return![];for(const _0x3ea63f of Object[_0x5aebb4(0x542)](_0x928b7d)){const _0x51f055=_0x928b7d[_0x3ea63f];if(_0x51f055&&typeof _0x51f055==='object'&&(_0x51f055[_0x5aebb4(0x1af)]||_0x51f055[_0x5aebb4(0x353)]))return!![];}return![];}function _0x1f0333(_0x240bff){const _0x303e91=_0x43ff90;if(!_0x240bff||typeof _0x240bff!==_0x303e91(0x86d))return{};const _0x4b5797={};for(const _0x4b6831 of Object[_0x303e91(0x542)](_0x240bff)){if(_0x4b6831===_0x303e91(0x4b7)||_0x4b6831===_0x303e91(0x870))continue;_0x4b5797[_0x4b6831]=_0x240bff[_0x4b6831];}return _0x4b5797;}function _0x1971b7(_0x2329a4){const _0x21e84d=_0x43ff90;if(!_0x2329a4||typeof _0x2329a4!=='object')return{};const _0x1b5ff6={};for(const _0x1e8f21 of Object['keys'](_0x2329a4)){if(typeof _0x2329a4[_0x1e8f21]===_0x21e84d(0x5c4))continue;_0x1b5ff6[_0x1e8f21]=_0x2329a4[_0x1e8f21];}return _0x1b5ff6;}return env={'OKDBEnv':_0x1de694,'HIGH_SENTINEL':_0x25f607},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x3a8041}=requireErrors();function _0x293bb4(_0x1d52b8){const _0x26f8a0=_0x4d81c5=>{throw new _0x3a8041(_0x1d52b8,_0x4d81c5);};return new Proxy(function(){},{'get'(_0x56ca7c,_0x9e992c){const _0x49562d=_0x20ac;if(typeof _0x9e992c===_0x49562d(0x552)||_0x9e992c===_0x49562d(0x8a9)||_0x9e992c===_0x49562d(0x7bc)||_0x9e992c===_0x49562d(0x731))return undefined;if(_0x9e992c===_0x49562d(0x184))return _0x1d52b8;return(..._0x270800)=>_0x26f8a0(_0x1d52b8+'.'+String(_0x9e992c));},'apply'(){_0x26f8a0(_0x1d52b8);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x293bb4},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x59ae48=_0x1c5fdf;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x130bde(_0x1e5486,_0x5c1444={}){const _0x1dc4fd=_0x20ac,_0x197851=[];let _0x304f80=![];_0x1e5486['endsWith']('/*')&&(_0x304f80=!![],_0x1e5486=_0x1e5486[_0x1dc4fd(0x5d1)](0x0,-0x2),_0x197851['push']('*'));let _0x42db2a=_0x1e5486[_0x1dc4fd(0x756)](/\/+$/,'')[_0x1dc4fd(0x756)](/\[([^\]]*)\]/g,(_0x4137ed,_0x4d43f2)=>{const _0x1e2c1f=_0x1dc4fd,_0x46b1a7=_0x4d43f2[_0x1e2c1f(0x756)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x4082ed,_0x74002a)=>{const _0x330976=_0x1e2c1f;return _0x197851[_0x330976(0x3c0)](_0x74002a),_0x330976(0x884);});return _0x1e2c1f(0x795)+_0x46b1a7+')?';})[_0x1dc4fd(0x756)](/\/:(\w+)/g,(_0x1b09e5,_0x4cdeda)=>{const _0x5a5f97=_0x1dc4fd;return _0x197851[_0x5a5f97(0x3c0)](_0x4cdeda),_0x5a5f97(0x884);});if(_0x42db2a==='')_0x42db2a='/';return{'keys':_0x197851,'defaults':_0x5c1444||{},'wildcard':_0x304f80,'regex':new RegExp('^'+_0x42db2a+(_0x304f80?_0x1dc4fd(0x883):'')+_0x1dc4fd(0x354))};}const _0x272019=require$$0$3,{PassThrough:_0x2c04c0}=require$$1;function _0xdf3eaa(_0x35b046){const _0x46a552=_0x20ac,_0x327217=_0x35b046['lastIndexOf'](':'),_0x20ca61=_0x35b046[_0x46a552(0x5d1)](0x0,_0x327217)[_0x46a552(0x756)](/^\[|\]$/g,'');return{'address':_0x20ca61,'family':_0x20ca61[_0x46a552(0x75e)](':')?'IPv6':'IPv4','port':Number(_0x35b046[_0x46a552(0x5d1)](_0x327217+0x1))};}class _0x50b0c5 extends _0x272019['Server']{constructor(_0x16744e,_0x550596){const _0x214f1b=_0x20ac;super(),this[_0x214f1b(0x274)]=_0x16744e,this[_0x214f1b(0x3e7)]=_0xdf3eaa(_0x550596),this['listening']=!![],this[_0x214f1b(0x714)]=setInterval(()=>{},0x7fffffff);}get['listening'](){return this['_listening'];}set[_0x59ae48(0x85b)](_0x269b1f){const _0x5e751e=_0x59ae48;this[_0x5e751e(0x701)]=_0x269b1f;}[_0x59ae48(0x675)](){const _0x3163e6=_0x59ae48;return this[_0x3163e6(0x85b)]?{...this[_0x3163e6(0x3e7)]}:null;}['_release'](){const _0x24f892=_0x59ae48;if(this[_0x24f892(0x714)])clearInterval(this[_0x24f892(0x714)]);this[_0x24f892(0x714)]=null;}[_0x59ae48(0x508)](_0x1b76e7){const _0x13c0e1=_0x59ae48;this[_0x13c0e1(0x82b)]();const _0x4e8283=this[_0x13c0e1(0x274)][_0x13c0e1(0x508)]();if(_0x1b76e7)_0x4e8283[_0x13c0e1(0x8a9)](()=>_0x1b76e7(),_0x1b76e7);return this;}[_0x59ae48(0x56d)](){const _0x416e06=_0x59ae48;return this[_0x416e06(0x714)]?.[_0x416e06(0x56d)](),this;}[_0x59ae48(0x54c)](){const _0x16b5fa=_0x59ae48;return this['_keepAlive']?.[_0x16b5fa(0x54c)](),this;}}class _0x497b8d{constructor(_0x7311a8){const _0x4aea72=_0x59ae48;this['okdb']=_0x7311a8,this[_0x4aea72(0x55f)]=[],this['auth']={'cookieName':_0x4aea72(0x66a)};}get[_0x59ae48(0x284)](){const _0x2300ab=_0x59ae48;return this[_0x2300ab(0x55f)][0x0]||null;}['_n'](_0x5337ee,_0x31f114=[]){const _0x2fc080=_0x59ae48;return this['okdb'][_0x2fc080(0x217)](_0x2fc080(0x367),null,_0x5337ee,_0x31f114,!![]);}async[_0x59ae48(0x76f)](_0x3e412f,_0xb5e965,_0xf3d6d1={},_0x3cf140={}){const _0x3d1bb6=_0x59ae48;let _0x1fbd0a=await this['_n']('handle',[_0x3e412f,_0xb5e965,_0xf3d6d1,_0x3cf140]),_0x493b34=0x0;return _0x1fbd0a=await this[_0x3d1bb6(0x313)](_0x1fbd0a,_0x493b34),_0x1fbd0a;}async[_0x59ae48(0x313)](_0x52745e,_0x129e67){const _0x4c3871=_0x59ae48;while(_0x52745e&&typeof _0x52745e===_0x4c3871(0x86d)&&_0x52745e[_0x4c3871(0x181)]!==undefined){await new Promise(_0xdc8f6c=>setTimeout(_0xdc8f6c,_0x129e67<0x5?0x1:0x5)),_0x129e67++,_0x52745e=await this['_n'](_0x4c3871(0x349),[_0x52745e[_0x4c3871(0x181)]]);}if(_0x52745e&&_0x52745e['body']&&typeof _0x52745e['body']===_0x4c3871(0x86d)&&_0x52745e[_0x4c3871(0x5c8)][_0x4c3871(0x57b)]!==undefined)_0x52745e[_0x4c3871(0x5c8)]=this['_stream'](_0x52745e['body'][_0x4c3871(0x57b)]);return _0x52745e;}[_0x59ae48(0x78a)](_0x14fa06){const _0x31c961=_0x59ae48,_0x3ae314=new _0x2c04c0();let _0x44e9d4=![];const _0x43ee83=()=>{const _0x178f81=_0x20ac;if(_0x44e9d4)return;_0x44e9d4=!![],clearTimeout(_0x6b3e7e),setImmediate(()=>this[_0x178f81(0x263)][_0x178f81(0x7df)]&&this[_0x178f81(0x263)][_0x178f81(0x7b0)](_0x178f81(0x367),null,_0x178f81(0x72b),[_0x14fa06],!![]));};let _0x6b3e7e=null;const _0x58df74=()=>{const _0x3f7199=_0x20ac;if(_0x44e9d4)return;let _0xe9adc3;try{_0xe9adc3=this[_0x3f7199(0x263)][_0x3f7199(0x7b0)](_0x3f7199(0x367),null,_0x3f7199(0x1b6),[_0x14fa06],!![]);}catch{_0xe9adc3={'chunks':[],'end':!![]};}for(const _0xf32bdb of _0xe9adc3[_0x3f7199(0x479)])_0x3ae314['write'](_0xf32bdb);if(_0xe9adc3['end']){_0x44e9d4=!![],_0x3ae314[_0x3f7199(0x3ae)]();return;}_0x6b3e7e=setTimeout(_0x58df74,_0xe9adc3[_0x3f7199(0x479)][_0x3f7199(0x2f6)]?0x0:0xa);};_0x3ae314['on'](_0x31c961(0x508),_0x43ee83),_0x58df74();if(!_0x44e9d4)_0x58df74();if(_0x44e9d4)_0x3ae314[_0x31c961(0x864)]();else{if(!_0x6b3e7e)_0x6b3e7e=setTimeout(_0x58df74,0x0);}return _0x3ae314;}[_0x59ae48(0x3cc)](_0x207440,_0x2f8fe8,_0x3b5efd,_0x117b1a={}){const _0xe9475c=_0x59ae48;return this[_0xe9475c(0x263)]['_call'](_0xe9475c(0x367),null,_0xe9475c(0x3cc),[_0x207440,_0x2f8fe8,_0x3b5efd,_0x117b1a,![]],!![]),this;}['addRaw'](_0x4269e6,_0x472d01,_0x5a229c,_0x52e4ea={}){const _0x2c8fde=_0x59ae48;return this[_0x2c8fde(0x263)][_0x2c8fde(0x7b0)](_0x2c8fde(0x367),null,_0x2c8fde(0x3cc),[_0x4269e6,_0x472d01,_0x5a229c,_0x52e4ea,!![]],!![]),this;}[_0x59ae48(0x82f)](_0x1e4685,_0x59c0a4){const _0x9dca8c=_0x59ae48,_0x32f2e1=async _0x2bedf8=>{const _0xee8222=_0x20ac,_0x794c78={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x4afc2c={'status'(_0x24ad2f){const _0x120560=_0x20ac;return _0x794c78[_0x120560(0x392)]=_0x24ad2f,_0x4afc2c;},'setHeader'(_0x4eb71e,_0x338897){const _0x84e2ec=_0x20ac;_0x794c78[_0x84e2ec(0x1e1)]['push']([_0x4eb71e,_0x338897]);},'send'(_0x30f036){const _0x41150b=_0x20ac;_0x794c78['hasBody']=!![],_0x794c78[_0x41150b(0x5c8)]=_0x30f036;}};_0x2bedf8[_0xee8222(0x1a9)]={'remoteAddress':_0x2bedf8['remoteAddress']??null};const _0x405ae6=await _0x59c0a4(_0x2bedf8,_0x4afc2c);return{'allowed':_0x405ae6!==![],..._0x794c78};};this[_0x9dca8c(0x263)][_0x9dca8c(0x7b0)](_0x9dca8c(0x367),null,'guard',[_0x2c652c=>!!_0x1e4685(_0x2c652c),_0x32f2e1],!![]);}[_0x59ae48(0x622)](_0x358fdf){const _0x2d5815=_0x59ae48,_0x422f2b=async _0x5f044f=>{const _0x2897bd={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x185c82=![];const _0x1bfd6f={'status'(_0x1d5fa3){const _0xddc525=_0x20ac;return _0x2897bd[_0xddc525(0x392)]=_0x1d5fa3,_0x1bfd6f;},'setHeader'(_0x4534f4,_0x41baa4){const _0x2b298f=_0x20ac;_0x2897bd[_0x2b298f(0x1e1)][_0x2b298f(0x3c0)]([_0x4534f4,_0x41baa4]);},'send'(_0x5ba4ab){const _0x47cf8c=_0x20ac;_0x2897bd[_0x47cf8c(0x23a)]=!![],_0x2897bd[_0x47cf8c(0x5c8)]=_0x5ba4ab;}};return _0x5f044f['socket']={'remoteAddress':_0x5f044f['remoteAddress']??null},await _0x358fdf(_0x5f044f,_0x1bfd6f,async()=>{_0x185c82=!![];}),{'allowed':_0x185c82,..._0x2897bd};};return this[_0x2d5815(0x263)]['_call'](_0x2d5815(0x367),null,'use',[_0x422f2b],!![]),this;}get['maxBodyBytes'](){const _0x5a8828=_0x59ae48;return this[_0x5a8828(0x263)][_0x5a8828(0x7b0)](_0x5a8828(0x367),null,_0x5a8828(0x38d),[],![]);}set[_0x59ae48(0x719)](_0x1feb10){const _0x1046f6=_0x59ae48;this['okdb'][_0x1046f6(0x7b0)]('http',null,'setMaxBodyBytes',[Number(_0x1feb10)],![]);}[_0x59ae48(0x328)](_0x7afaa1,_0x4fb612,_0x52ed4f={}){const _0x4ebd39=_0x59ae48,_0xd8de36=new Map(),_0x3e1549=(_0x4ee81a,_0x1bf224)=>this[_0x4ebd39(0x263)][_0x4ebd39(0x7b0)](_0x4ebd39(0x367),null,_0x4ee81a,_0x1bf224,![]),_0x3c0ece=_0x48d000=>{const _0x3809b2=_0x4ebd39,{connId:_0x1a433a}=_0x48d000;if(_0x48d000[_0x3809b2(0x854)]){const _0x1a5ef3=_0xd8de36[_0x3809b2(0x4ff)](_0x1a433a);_0xd8de36[_0x3809b2(0x6f8)](_0x1a433a);if(typeof _0x1a5ef3===_0x3809b2(0x5c4))_0x1a5ef3();return;}const _0x1cd323=(_0x2d5d21,_0x304e08,_0x4a531b={})=>{const _0x46690e=_0x3809b2;try{_0x3e1549(_0x46690e(0x462),[_0x1a433a,_0x2d5d21,_0x304e08,_0x4a531b]);}catch{}},_0xffd2fa=()=>{const _0x248f93=_0x3809b2;try{_0x3e1549(_0x248f93(0x5b5),[_0x1a433a]);}catch{}},_0x1b43da=(_0x47e854,_0x54a6ee)=>_0x3e1549(_0x3809b2(0x3f2),[_0x1a433a,String(_0x47e854),String(_0x54a6ee)]),_0x38de8b={'auth':{'open':_0x48d000[_0x3809b2(0x400)],'isAuthenticated':_0x48d000['authenticated']}},_0x32ac37=_0x4fb612({'send':_0x1cd323,'close':_0xffd2fa,'params':_0x48d000[_0x3809b2(0x275)]??{},'query':_0x48d000['query']??{},'headers':_0x48d000['headers']??{},'context':_0x38de8b,'setHeader':_0x1b43da});_0xd8de36['set'](_0x1a433a,_0x32ac37);};return this['okdb'][_0x4ebd39(0x7b0)](_0x4ebd39(0x367),null,_0x4ebd39(0x328),[_0x7afaa1,_0x3c0ece,_0x52ed4f],!![]),this;}get[_0x59ae48(0x366)](){const _0x34ee37=_0x59ae48;return this[_0x34ee37(0x5ee)]();}[_0x59ae48(0x5ee)](){const _0x496b5d=_0x59ae48;return this[_0x496b5d(0x263)][_0x496b5d(0x7b0)]('http',null,'listRoutes',[],![])[_0x496b5d(0x4ba)](_0x380296=>({..._0x380296,'matcher':_0x130bde(_0x380296[_0x496b5d(0x1aa)],_0x380296[_0x496b5d(0x619)])}));}[_0x59ae48(0x869)](_0x42bb80,_0x492e36){const _0x54bcf2=_0x59ae48;return this[_0x54bcf2(0x263)][_0x54bcf2(0x7b0)](_0x54bcf2(0x367),null,_0x54bcf2(0x869),[_0x42bb80,_0x492e36],![]);}[_0x59ae48(0x5c6)](_0xe5bf39,_0x23f8dc={}){const _0x56ab01=_0x59ae48;if(typeof _0x23f8dc==='string'||Array[_0x56ab01(0x55b)](_0x23f8dc))_0x23f8dc={'host':_0x23f8dc};_0x23f8dc=_0x23f8dc??{};if((Number(_0x23f8dc['workers'])||0x0)>=0x1||_0x23f8dc[_0x56ab01(0x775)]!=null||_0x23f8dc['primaryOkdb']!=null){const _0x339a8b=new Error(_0x56ab01(0x292)+_0x56ab01(0x409)+_0x56ab01(0x269)+_0x56ab01(0x298));_0x339a8b['code']=_0x56ab01(0x587);throw _0x339a8b;}if(this[_0x56ab01(0x55f)][_0x56ab01(0x2f6)])throw new Error('HTTP\x20server\x20already\x20running');const _0x1e866f=_0x23f8dc['host']==null?[undefined]:[][_0x56ab01(0x18e)](_0x23f8dc[_0x56ab01(0x1c7)]);if(!_0x1e866f[_0x56ab01(0x2f6)]||_0x1e866f[_0x56ab01(0x7ce)](_0x306f54=>_0x306f54!==undefined&&(typeof _0x306f54!==_0x56ab01(0x460)||!_0x306f54))){const _0x3c52bb=new Error(_0x56ab01(0x651));_0x3c52bb[_0x56ab01(0x22a)]=_0x56ab01(0x519);throw _0x3c52bb;}const _0x494e51=require$$2[_0x56ab01(0x598)]?{..._0x23f8dc,'reuseport':!![]}:_0x23f8dc,_0x862243=this[_0x56ab01(0x263)]['_call']('http',null,'listen',[_0xe5bf39,_0x494e51],!![]),_0x44b9e6=_0x862243[_0x56ab01(0x402)]??_0xe5bf39,_0x27ab7f=_0x23f8dc['host']==null?':'+_0x44b9e6:_0x1e866f[_0x56ab01(0x4ba)](_0x3501a5=>(_0x3501a5[_0x56ab01(0x75e)](':')?'['+_0x3501a5+']':_0x3501a5)+':'+_0x44b9e6)[_0x56ab01(0x486)](',\x20');try{this['okdb'][_0x56ab01(0x4a5)][_0x56ab01(0x767)](_0x27ab7f);if(!require('node:cluster')[_0x56ab01(0x598)])this['okdb'][_0x56ab01(0x4a5)]['register']({'kind':_0x56ab01(0x384),'listenAddr':_0x27ab7f});}catch{}this['servers']=_0x862243[_0x56ab01(0x1f9)][_0x56ab01(0x4ba)](_0x5d7001=>new _0x50b0c5(this,_0x5d7001));const _0x2b09c9=this['servers'][0x0];return process[_0x56ab01(0x4a3)](()=>this['servers'][_0x56ab01(0x175)](_0x5062c0=>_0x5062c0[_0x56ab01(0x380)](_0x56ab01(0x85b)))),_0x2b09c9;}async[_0x59ae48(0x508)](_0x3974f8={}){const _0x150533=_0x59ae48,_0x2f1f25=this[_0x150533(0x55f)];this[_0x150533(0x55f)]=[];if(require$$2['isWorker']&&!process['connected']&&_0x3974f8[_0x150533(0x3c6)]==null)_0x3974f8={..._0x3974f8,'forceAfterMs':Infinity};if(_0x2f1f25[_0x150533(0x2f6)]){const _0x406a99=_0x3974f8['forceAfterMs']===Infinity?Infinity:Number[_0x150533(0x6ef)](_0x3974f8[_0x150533(0x3c6)])?Math[_0x150533(0x6c5)](0x0,_0x3974f8[_0x150533(0x3c6)]):0x3e8,_0x59d28e=Date[_0x150533(0x785)]();while(this[_0x150533(0x263)][_0x150533(0x7b0)]('http',null,_0x150533(0x69c),[],!![])>0x0&&Date[_0x150533(0x785)]()-_0x59d28e<_0x406a99)await new Promise(_0x393603=>setTimeout(_0x393603,0x5));_0x3974f8={..._0x3974f8,'forceAfterMs':_0x406a99===Infinity?0x3e8:Math[_0x150533(0x6c5)](0x0,_0x406a99-(Date['now']()-_0x59d28e))};}await this['_n'](_0x150533(0x508),[_0x3974f8]);for(const _0x70a24b of _0x2f1f25){_0x70a24b[_0x150533(0x82b)](),_0x70a24b[_0x150533(0x85b)]=![],_0x70a24b['emit'](_0x150533(0x508));}}}return http={'OKDBHttp':_0x497b8d},http;}var fts,hasRequiredFts;function requireFts(){const _0x3ef1e3=_0x1c5fdf;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x5a1308=_0x47a274=>(_0x47a274&&typeof _0x47a274===_0x3ef1e3(0x86d)?_0x47a274['name']:_0x47a274)??_0x3ef1e3(0x3e4);class _0x5bbaee{constructor(_0x4f7f27){this['okdb']=_0x4f7f27;}['_n'](_0x5bfee3,_0x3e8435,_0x253cb8=![]){const _0x5c6783=_0x3ef1e3;return this[_0x5c6783(0x263)][_0x5c6783(0x7b0)](_0x5c6783(0x6bf),null,_0x5bfee3,_0x3e8435,_0x253cb8);}[_0x3ef1e3(0x581)](_0x2c8171,_0x10930a){const _0x49f606=_0x3ef1e3;return this[_0x49f606(0x263)][_0x49f606(0x217)](_0x49f606(0x6bf),null,_0x2c8171,_0x10930a,!![]);}get[_0x3ef1e3(0x66e)](){const _0x3f7039=this,_0x344b99=_0x1b6085=>{const _0x23d6c9=_0x20ac,_0x46bd8a=_0x1b6085[_0x23d6c9(0x374)](':'),_0x936838=_0x1b6085[_0x23d6c9(0x5d1)](0x0,_0x46bd8a),_0x50eebf=_0x3f7039[_0x23d6c9(0x263)]['_envs'][_0x23d6c9(0x4ff)](_0x936838);if(!_0x50eebf)return undefined;const _0x4505b4=_0x50eebf['processor']['list']()[_0x23d6c9(0x5a2)](_0x306815=>_0x306815[_0x23d6c9(0x5b6)]==='fts:'+_0x1b6085);if(!_0x4505b4)return undefined;return _0x50eebf['processor']['_stopFor'](_0x4505b4['id'],_0x4505b4[_0x23d6c9(0x5b6)]);};return{'get':_0x344b99,'has':_0x41d7f7=>!!_0x344b99(_0x41d7f7)};}get[_0x3ef1e3(0x39a)](){return[];}[_0x3ef1e3(0x3f8)](){const _0x44e7a4=_0x3ef1e3,{RawDb:_0x383601}=requireRawdb();return new _0x383601(this[_0x44e7a4(0x263)][_0x44e7a4(0x25d)],_0x44e7a4(0x3ec));}[_0x3ef1e3(0x868)](_0x689aaa,_0x50f3a6,_0x4faf1b){const _0x3bf0c9=_0x3ef1e3;return this['_n'](_0x3bf0c9(0x868),[_0x689aaa,_0x50f3a6,_0x5a1308(_0x4faf1b)]);}['status'](_0x4def7b,_0x3d878c,_0x2063ba){const _0x4162e6=_0x3ef1e3;return this['_n'](_0x4162e6(0x392),[_0x4def7b,_0x3d878c,_0x5a1308(_0x2063ba)]);}[_0x3ef1e3(0x690)](_0x40f7ed,_0x38568b){const _0x3a72d2=_0x3ef1e3;return this['_n'](_0x3a72d2(0x690),[_0x40f7ed,_0x5a1308(_0x38568b)]);}async[_0x3ef1e3(0x20c)](_0x224568,_0x6f5c78,_0x48d886,_0x42650b,_0x371f50){const _0x1b4a72=_0x3ef1e3,_0x417d51=(_0x4bece4,_0x2dd260)=>this[_0x1b4a72(0x263)][_0x1b4a72(0x217)](_0x1b4a72(0x6bf),null,_0x4bece4,_0x2dd260,!![],![]),_0x1ca8c3=Date[_0x1b4a72(0x785)]()+0x1d4c0;let _0x38df24=_0x224568,_0x55e8a4=_0x6f5c78;for(;;){try{return await _0x417d51(_0x38df24,_0x55e8a4);}catch(_0x2897bb){if(_0x2897bb[_0x1b4a72(0x22a)]===_0x1b4a72(0x5c7)){_0x38df24=_0x1b4a72(0x87a),_0x55e8a4=[_0x48d886,_0x42650b,_0x5a1308(_0x371f50)];if(_0x2897bb[_0x1b4a72(0x2f7)]&&_0x2897bb[_0x1b4a72(0x2f7)]['wait'])await new Promise(_0x35efbd=>setTimeout(_0x35efbd,0x2));continue;}if(_0x2897bb[_0x1b4a72(0x22a)]!==_0x1b4a72(0x699)||Date['now']()>=_0x1ca8c3)throw _0x2897bb;}await new Promise(_0x1f4431=>setTimeout(_0x1f4431,0x5)),_0x38df24='reset',_0x55e8a4=[_0x48d886,_0x42650b,!![],_0x5a1308(_0x371f50)];}}async['register'](_0x35d286,_0xe43ea3,_0x573482,_0x57d533,_0x792dfd){return this['_build']('register',[_0x35d286,_0xe43ea3,_0x573482,_0x57d533,_0x5a1308(_0x792dfd)],_0x35d286,_0xe43ea3,_0x792dfd);}async[_0x3ef1e3(0x68d)](_0x4498c8,_0x4ac3cf,_0x2186a5){const _0x53e25c=_0x3ef1e3;return this[_0x53e25c(0x581)]('drop',[_0x4498c8,_0x4ac3cf,_0x5a1308(_0x2186a5)]);}async[_0x3ef1e3(0x4c3)](_0x2188f1,_0x1513e0,_0x3b6126,_0x158570){const _0x2a937f=_0x3ef1e3;return this[_0x2a937f(0x20c)](_0x2a937f(0x4c3),[_0x2188f1,_0x1513e0,_0x3b6126,_0x5a1308(_0x158570)],_0x2188f1,_0x1513e0,_0x158570);}async['reset'](_0x1df346,_0x1bb3f2,_0x1f579e,_0x9febdb){const _0x16d1cc=_0x3ef1e3;return this[_0x16d1cc(0x20c)](_0x16d1cc(0x3b4),[_0x1df346,_0x1bb3f2,_0x1f579e,_0x5a1308(_0x9febdb)],_0x1df346,_0x1bb3f2,_0x9febdb);}async[_0x3ef1e3(0x2c5)](_0x38b6a7,_0x1e89fe,_0x33f2a6,_0x2fc38a=0x1d4c0){const _0x37f661=_0x3ef1e3,_0x1c49f3=Date['now']()+_0x2fc38a;for(;;){try{return await this['_nm'](_0x38b6a7,[..._0x1e89fe,0x1]);}catch(_0x39f2d8){if(_0x39f2d8[_0x37f661(0x22a)]!==_0x33f2a6||Date[_0x37f661(0x785)]()>=_0x1c49f3)throw _0x39f2d8;}await new Promise(_0x1bb7b8=>setTimeout(_0x1bb7b8,0x2));}}async[_0x3ef1e3(0x37b)](_0x43922d,_0x1533b0,_0x26d371){const _0x5bd0f7=_0x3ef1e3;return this[_0x5bd0f7(0x2c5)]('ready',[_0x43922d,null,_0x5a1308(_0x26d371)],_0x5bd0f7(0x5dd));}async[_0x3ef1e3(0x803)](_0x5cb743,_0x247a38){const _0x575550=_0x3ef1e3;return this[_0x575550(0x2c5)](_0x575550(0x803),[_0x5cb743,_0x5a1308(_0x247a38)],_0x575550(0x178));}async[_0x3ef1e3(0x88f)](_0x261a31,_0x1ad544){const _0x2d6256=_0x3ef1e3;return this['_nm'](_0x2d6256(0x88f),[_0x261a31,_0x5a1308(_0x1ad544)]);}async[_0x3ef1e3(0x7de)](_0x1b2766={}){const _0x109856=_0x3ef1e3;return this[_0x109856(0x581)](_0x109856(0x7de),[_0x1b2766]);}async[_0x3ef1e3(0x7d9)](_0x8f62db){const _0x44e1d9=_0x3ef1e3;return this[_0x44e1d9(0x581)](_0x44e1d9(0x7d9),[_0x5a1308(_0x8f62db)]);}[_0x3ef1e3(0x1ec)](_0x227294){const _0x1e56d0=_0x3ef1e3;return this['_n'](_0x1e56d0(0x1ec),[_0x5a1308(_0x227294)]);}['search'](_0x396434,_0x3cb08d,_0x56ba62,_0x1c6d39,_0x34d8f5){const _0x23893b=_0x3ef1e3;return this['_n'](_0x23893b(0x64e),[_0x396434,_0x3cb08d,_0x56ba62,_0x1c6d39||{},_0x5a1308(_0x34d8f5)]);}['searchDocs'](_0x4994cf,_0x557b82,_0x305138,_0x6fe6bf,_0x790f84,_0x445e5c){const _0x3507ea=_0x3ef1e3;return this['_n'](_0x3507ea(0x82c),[_0x4994cf,_0x557b82,_0x305138,_0x6fe6bf||{},_0x5a1308(_0x790f84),_0x445e5c]);}['_searchWithScores'](_0x382ca3,_0xc9c74f,_0x146512,_0x4bbb44,_0x34fd9c){const _0x193297=_0x3ef1e3;return this['_n'](_0x193297(0x640),[_0x382ca3,_0xc9c74f,_0x146512,_0x4bbb44||{},_0x5a1308(_0x34fd9c)]);}[_0x3ef1e3(0x2ce)](){const _0x5744d9=_0x3ef1e3;return this['_n'](_0x5744d9(0x2ce),[]);}async[_0x3ef1e3(0x61a)](){const _0x4c76b0=_0x3ef1e3;return this[_0x4c76b0(0x581)]('drain',[]);}}return fts={'OKDBFts':_0x5bbaee},fts;}function _0x2854(){const _0x3f2570=['queue.worker(\x27','_set','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','OKDBInvalidValueError','\x27\x20already\x20registered','ttl:expired','state','registerReducer','_rawTxnBuf','_stateDb','_release','searchDocs','defaultTTL','_ensureTokensType','guard','Missing\x20plugin:\x20','_logEnv','items','ctxUpdateStatus','defineProperty','job.claim_expires\x20must\x20be\x20number|null','status_code','inBatch','sync','20wmrFAP','sessionId','dropped','_advanceHlcOnRecv','log\x20entry\x20fields\x20must\x20be\x20object|null','setTTL','dropFts','_id','\x0a\x09\x09let\x20','_inlineClosureWarned','running','durableTierLag','_cmd','_blobPath','files.upload:\x20id','LICENSE_FEATURE_DISABLED','mean','resolveField:\x20type\x20required','TXN_INVALID_ACTION','iterator','bucket\x20too\x20long','start','_hybridQuery','~ref_violations','mode','import','REF_VIOLATION','cleanup','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','OKDBError','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','removeSync','SYSTEM_POKE','toLowerCase','listening','durableRetryDoc','_clockToChangeDb','_flushTimer','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','fields','_store','admission','destroy','$type','writeKey','compaction','has','validateRouteInput','license:removed','areIndexesReady','prepareTxnEnqueue','object','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','changeToClockDb','snapshot','SCHEMA_COLLECTION_INVALID','applyOps','T_SESSION','_setPeerState','$options','Transaction\x20already\x20closed','_quantumGate','_reconcile','preparer\x20must\x20be\x20a\x20function','buildStep','job','reject','emitClearDone','INVALID_STATE','isRunning','\x20of\x20env\x20\x22',':clockToChange','validateBlobIntegrity','(?:/(.*))?','/([^/]+)','\x20already\x20exists','$where','isInteger','_typesDb','489160RXrZCW','HTTP_ERROR','_buckets','markSnapshotComplete','_fail','hasIndex','compact','INVALID_VALUE','_closed','getBucket','hasEmbedderFactory','enable','_buildOwnRow','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','uninstallEngine','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','resetCursor','job.bucket_tokens\x20must\x20be\x20int\x20>=1','_ts','ENCRYPTION_KEY_REQUIRED','autoCompactState','removeJob','durableWorkerStats','processRest()','_sweepOrphanLogs','__HOLD__','_connections','schema:drop','createEngine','attachFeed','importBlobs','doesExist','then','debounceTimer','_busFacade','Query\x20operator\x20\x22','forEach','_durableEmbedderInfo','embeddings:embed:settled','FTS_FLUSH_TIMEOUT','scheduled','setUint32','percentile','doc','listTypes','relay:error','_started','txnId','$pending','timestamp','_nodePrivateKey','__notImplementedNative','BAD_PARAM','BAD_EMBEDDER_FACTORY','_statusEnv','clearTTL','Cannot\x20set\x20enforce\x20schema\x20on\x20','embedBatch','getRefViolation','retryJob','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','concat','_low','note','resumed','~log','ALREADY_EXISTS','_startClaimedSoon','_stopAutoCompactCheck','removeEnvironment','interest','apiCall','~system','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','FOREIGN_KEY_VIOLATION','readerCheckIntervalMs','isSnapshotComplete','node','describeType','writerStatus','enableNullTermination',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','_getOidcDiscovery','flushMaxWait','ringSize','enableAll','db.processors.','txn:start','socket','path','sort','isDeepStrictEqual','PLUGIN_ALREADY_REGISTERED','viewOp','$near','backoff_multiplier','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','refreshThresholdMs','readField','hasNativeBatch','shutdownTimeout','streamRead','__esModule','field:resolver_registered','_rbuf','limitOf','runPoll','findOwner','openDB','write\x20batch:\x20missing\x20result','capacity','[log-sink]\x20','onUndo','OKDBSchemaValidationError','lastClock','handleError','drivers','TYPE_NOT_REGISTERED','host','_emit','ctxRelease','inputSchema','isOrchestrator','resetView','ttlSetEntry','$lte','getStateAt','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','backup','system:stopped','repair','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','index:drop','_settleWrite','_root','_dedupeKey','create','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','loginSelect','_jsSchemas','workerState','offsetOf','txnUndone','null','headers','done','_handlePoke','acquired','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','queue:removed','fromCharCode','invalid\x20log\x20level:\x20','1285550RwdSFJ','\x22\x20must\x20be\x20a\x20plain\x20object','registerBucketProjection','envSize','warn','pin','_readViewExpired','callBatch','error','transaction\x20commit\x20failed',':keyToChange','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','turnWaiters','resolvedFields','opts','engine','addrs','raw','Unique\x20constraint\x20violated\x20on\x20','isIndex','changeEncryptionKey:\x20to','_lookupAllByName','listRecords','max_concurrency','stopAll','setStorageResolver','sourceType','a\x20non-empty\x20string','signal','_licenseInterval','entries','embeddings:indexer:doc:queued','forgetDb','Type\x20\x22','fromEntries','_build','isType','vec:','buildOwnRow','getRunningEngine','_desired','engineStop','_claimGated','setHostPlugins','_info','hasStopFn','_callMacro','_blobStatusTxn','storage\x20adapter\x20is\x20gone','registerChunkStrategy','upsertLink','_setKey','job.buckets[].id\x20must\x20be\x20non-empty\x20string','pop','\x20returned\x20no\x20key','Embedder\x20factory\x20for\x20\x22','attachOKDB','nativeBinaryPath','_range','_timerObjs','shouldApplyChange','bucket.capacity\x20must\x20be\x20int\x20>=\x200','exportBlobs','getPrototypeOf','tolerant','code','_openLocalPeerDb','MCP_ERROR','for','returnRecoverableErrors','listIndexes','events','backoffUntil','_debounceTimer','_readBuf','stats','_admissionStarted','references','OKDBSchemaCollectionError','Buffer','chunk\x20strategy\x20must\x20be\x20a\x20function','hasBody','job.tag\x20must\x20be\x20string|null','remoteAddress','recommended','claim_expires','_buffer','\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.','isCoordinator',';return\x20{','durableRebuild','_buf','startsWith','isFeatureEnabled','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','target','\x20must\x20be\x20number','tries','reidentify','durableEmbedderInfo','actions','failed_ttl','queue:reconciled','bucket\x20\x22','_workers','committed','MINIMUM_KEY','~queue_jobs','clearScan','_detachLog','_scheduleTTLSweep','runtimeDeclarations','hasApi','floor','_startAutoCompactCheck','STOPPED','_systemEnv','_handleInProcess','resolveBackupDest','_stopFor','range','INDEXER','okdb','targetKey','markJobProgress','setSchema','token','registerAlgorithmFactory','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','_kbuf','true','removeTxn','view','applyInterestDelta','_enableChangelog','cursor','turns','_read','reconcilePeerPull','_http','params','startAutoCompactCheck','OKDBInvalidIndexKeyError','OKDBIndexAlreadyRegisteredError','_dedupeMax','_ensureDesired','_ttlState','_baselines','system:proc','quantum','MAXIMUM_KEY','change','_envSyncStop','started','createAndStartEngine','server','listProviders',':data','_wb','_markSeen','subarray','system','relay','reducers','_getPeerState','recordRun','enabled','_indexBuilds','_reconcilePeer','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','_settleWaiters','getOidcDiscovery','properties','patch','drainDeadlineMs','okdb.http.listen(port)\x20in\x20each\x20worker.','Blob\x20missing\x20for\x20file:\x20','regInfo','PUT','setKick','\x22\x20must\x20have\x20a\x20start()\x20method','meta','bus','flushDebounce','lookupByTokenHash','txnDone','gen','isEnabled','bulkRemoveChunk','a\x20string','_peerDb','privateKey','enqueueClaim','catalog',':emb:','files\x20feature\x20not\x20available','processor:\x20quantum.module\x20must\x20be\x20a\x20string','online','_ttlByKey','_syncLock','clearStuck','storeHasDiff','__ttlByKey','msg','killWorker','Map','validateOidcAccessToken','bucket.id\x20must\x20be\x20non-empty\x20string','tags\x20must\x20be\x20array\x20or\x20string','addEventListener','env:opened','resolveField','encoder','reverse','_resolveFilter','.\x20Valid:\x20','reencrypt:\x20env','startClaimed','startIndex','isBootstrap','_waitNative','job.bucket\x20must\x20be\x20string|null','inline','REMOVE','dropSchema','_onStop','pauseAllAndDrain','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','claim_id','listFtsEnvs','new','tokens','waiting','Type\x20\x27','indexer\x20engine\x20not\x20running:\x20\x22','_getType','exportEnvsBuf','apply','halted','handler','resetIndexBegin','_txnIdAtSnapshot','registerType','indexer','dataView','lmdb','empty\x20string','_rebuilding','exportEnvsToStream','consumeLoginState','registerViewReducer','_deliverEvent','changeEncryptionKey','nextExpiry','_windowCbs','getEngine','heartbeat','uninstalled','delta_limit','CREATED','formerIds','split','_ttlByExpiry','mcp','setPrototypeOf','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','createPublicKey','flushed','~log_entry','length','details','ExtendedIterable','bus:proc','logCap','flushQuantum','Plugin\x20must\x20have\x20a\x20name','functions','Array.from)\x20before\x20any\x20await.','txn','itemsPlan','markJobComplete','role','maxMs','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','_txnBuf','~queue_logs','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','~emb:models','_wsettle','licenses','orchestratorStarted','inNativeCall','closeSession','~processes','allSettled','embeddings:indexer:doc:done','connectionCount','refill_every','_settle','job_type.payload_schema.definition\x20must\x20be\x20object','_defaultEnv','engineStart','isSync','reg','_onPoke','\x22\x20requires\x20a\x20`handler`\x20function','ingest','_isOpenForIp','\x27\x20export\x20\x27','$mod','setPeersFn','TXN_INVALID_OPS','ttlTimer','_doHooks','nextTurn','position','Index\x20\x22','rowKey','pid','addSSE','grouped','level','getUniqueViolation','storeEnv','_ensureDbs','processor:paused','ONLINE','PLUGIN_NAME_CONFLICT','closeEnvLocally','_openEnvLazy','RELAY_FULL','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','mkdirSync','REVERSE_INDEX','_writer','sweepExpired','importBuf','markJobHeartbeat','_envs','startNewEnginesFromSync','item:','Schema\x20validation\x20failed\x20for\x20','setAddress','_isBootstrap','getRecord','_report',':txnRange','killAll','_clockListener','bucket\x20id\x20required','__ttlByExpiry','unique:violation','handleResult','getBinary','durableDoc','getCount','stringify','login','onDelete','_cursors','_refCache','_enqueueInTxn','$within','/?$','_ensureEnv','getChanges','describeTypeDetailed','createQueryTester','type','OKDBForeignKeyError','clone','stopped','_wrap','reencrypt','Engine\x20template\x20build()\x20is\x20required:\x20','docs','_subscribeEvent','_ensureTypeEnv','setCursor','getCursor','INVALID_PRIMARY_KEY','routes','http','status_message','onDone','guardSnapshotIterable',']\x20already\x20maps\x20to\x20\x27','debug','dedupeMax','ITEM_REMOVE','_startAdmission','once','diag','engineType','run','indexOf','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','syncLock','resolveField:\x20resolver\x20must\x20be\x20a\x20function','autoCompact',':index:','mapError','ready','durableCursorFloor','\x27\x20is\x20already\x20registered','_push','registerFts','emit','onWindow','OKDBVersionMismatchError','ies','standalone','doc_status:',':\x20unknown\x20option\x20\x27','indexContent','addBucket','geoConfig','_lookupByName','ttl:set','updated','getMaxBodyBytes','_writerWatchdogInterval','retryable','NativeLock','dupSort','status','\x22\x20on\x20\x22','allocUnsafeSlow','~queue_buckets','unregisterExtractor','docEntry','set','ENGINE_DRIVER_MISSING_START','_pendingOps','processor:ready','__desired','STARTED','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','failures','_features','files','setMaxListeners','inclusiveEnd','lastTxnId','5714019MVkvWk','registerQuantum','\x20log\x20entr','__tokenSecret','resumeJobType','ms\x20busy=','creating','setWake','an\x20environment\x20name','end','_pendingLocal','__syncOverride','durableStats','removed','getBlobStatus','reset','select','drives','authorization','cause','getTypeCount','_makeLazyVectorAdapter','_admissionTimer','_ackDb','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','File\x20not\x20found:\x20','embeddings:indexer:doc:failed','push','_blobStream','resetUnknownOptionsWarned','prototype','restrict','getFloat64','forceAfterMs',',\x20got\x20','typesDb','_teardownNative','open','node:events','add','Algorithm\x20factory\x20must\x20be\x20a\x20function','ctxEmit','signalWant','752372VATJMl','getDefaultTTL','min','repairBlobRefs','bucket.tokens\x20cannot\x20exceed\x20capacity','~ttl:expiry','resetFts','(source)\x20=>\x20{','registerExtractor','maxExtra','_uid','Invalid\x20primary\x20key\x20type:\x20','update','1396008RRzmlV','log','_resolveKeys','_sweepInProgress','resetting','FOREIGN_KEY_DELETE_RESTRICTED','__ttlCancelledGen','default','async','isTypeEmpty','_addr','stateNames','INVALID_TYPE_NAME','last','indexReady','~fts:envs','$exists','continueIteration','WORKER','_indexBuild','_feed','sseSetHeader','_readerCheckInterval','describeIndex','cookies','exports','no_action','_envIndexDb','bootSyncedPipelines','$payload','processor:resumed','job_type.defaults\x20must\x20be\x20object|null','fail','~queue_payloads','getRun','authOpen','pushEphemeral','port','setProcessingConfig','bus:env_release','OKDBAlreadyExistsError','viewDb','countByIndex','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','TYPE_ALREADY_REGISTERED','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','taken','_localViews','parseBearer','createLoginState','job_type.id\x20must\x20be\x20non-empty\x20string','job_type.defaults.','storeGetDiffs','storeEnvName','Engine\x20driver\x20already\x20registered:\x20\x22','processor:\x20module\x20\x27','max_tries','processor:error','encryption\x20key\x20function','patchSelf','failed','listLinks','hasEnv','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','env:removed','engines','item','export','_patch','fts:drop','\x20>=\x200x80)\x20','Cannot\x20delete\x20','QUERY_OPERATOR_FORBIDDEN','info','_assertFiles','LICENSE_LIMIT_EXCEEDED','_isFar','selfKey','ftsQuery','OKDBTypeNotRegisteredError','ensureTokensType','starting','detachFeed','getUniqueViolations','_refIndexDb','processor:\x20module.path\x20is\x20required','process\x20options.admission\x20must\x20be\x20a\x20function','_allEnvsWithFiles','BAD_ALGORITHM_FACTORY','process(filter)','_path','listViolations','ENGINE_INVALID_TEMPLATE','_runRecord','OKDBNotFoundError','_durableWorkerStats','getIndex','setPeerState','pump','data','storeGetConfig','clients','pause','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','_plugins','_jsFactories','views','resetIndex','Environment\x20\x22','txn:rollback','assertCreateAllowed','queue','claim\x20requires\x20non-empty\x20type',';\x20got\x20','Plugin\x20\x27','_staticCall','~files','stopView','INDEX_HAS_CONSUMERS','_locks','_handles','license','OKDBProcessor','~processes:desired','isOpenForIp','requires','readerCheck','job.type\x20must\x20be\x20non-empty\x20string','turn','TXN_ERROR','string','metaDb','sseSend','_timer','TXN_ROLLBACK','hlc','uninstall','_asArray','_getNodeRecord','removeEventListener','queue:clear-progress','byteOffset','\x20documents\x20fail\x20validation','number','okdb-node:\x20unknown\x20callback\x20id\x20','KNOWN_OPTIONS','getOpenWarning','total','OKDBTypeAlreadyRegisteredError','~proc:state','groupsDb','16uXdxej','refItemsDbs','existsSync','_ack','chunks','install','tryAcquire','getValues','finished','samplePayloads','backupRoot','dbs','ctxLog','3.1.0','equal','ITEM_PENDING','setAutoCompact','join','_native','_assertRangeOptions','node:stream','runtimeState','INDEXER_DOC_DONE','envNames','createWriteStream','clearDone','_changefeed','QUEUE_WORKER_REMOVED','isWanted','recordPeerAck','replaceMember','embedderNew','index:ready','createEnvironment','subscriptions','READER_HELD_ACROSS_AWAIT','scopedName','unresolveField','immediate','quarantined','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','msgpackr','balanced','_localViewApi','preview','resolve','nextTick','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','processes','__adminRelay','Date','_tokenSecret','T_INTEREST','recomputeFields','HTTP\x20','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','size','extend','markJobFail','child','Embedder\x20factory\x20must\x20be\x20a\x20function','_hlc','calculateDelta','ITEM_CREATE','bootRuntimeDeclarations','validate','transaction','processor:progress','load','map','embeddings','loop-lag','system:poke','INVALID_INDEX_KEY','listModels','~sub','claimGated','clearAsync','ensure','okdb._openEnvLazy:\x20env\x20\x22','_keyFns','modeApplied','OKDBInvalidPrimaryKeyError','afterTurn','readFieldMany','constructor','aborted','listBuckets','stream','upload','snapshotScan','claimed','setLastClock','unique:violation_resolved','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','~ttl:key','written','durableMarkFail','license:invalid','_update','registerDriver','invalid\x20job_type.status:\x20','plugins','setDefaultTTL','INDEX_PROGRESS','OKDBUniqueConstraintError','detachConsole','worker','PLUGIN_DEPENDENCY_MISSING','envPath','_run','getGcHorizon','_blobStatusDb','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','listJobTypes','bigint','createHash','_pdb','shift','isWriter','done_ttl','bucket\x20must\x20be\x20object','uploadTxn','Referenced\x20key\x20\x27','compare','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','_initialize','ctxProgress','Native','vector','txn:end','storeGetTotalHeadCount','hasUniqueViolations','_reconcileDesired','tag','records','ENGINE_INVALID_TYPE','awaitIdle','get','createSearch','stor','$regex','_drainOne','_detachConsole','processorsStop','getSecurityNotices','admin','close','node:util','sha256','digest','context','gcOrphanedBlobs','queue-worker','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','disable','addJobType','getFast','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','_keyListener','unique','removeLink','listPath','BAD_HOST','DOC_STATUS_CHANGE','_pumper','_onPending','trim','INDEX_ALREADY_REGISTERED','\x20which\x20does\x20not\x20exist','_openAckDb','sortedDb','module','return','$nor','pauseJobType','_np','appendJobLog','_nextExpiry','releaseClaim','restart','addInterest','_callPacked','createEmbedder','describeAllTypes','puts','granId','isBuffer','registerModel','listIndexKeys','values','durableMarkDone','durableClock','assertQueryOptions','intervalTimer','node:cluster','_durableIndexerStats','ctxHeartbeat','clearSync','_handlePending','$size',':index','Symbol.asyncIterator','nodeKeys','keys','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','__blobStatusDb','schema','authenticateRequest','\x22\x20tokens\x20too\x20large','RangeError','_draining','INDEXER_DOC_FAILED','ttlStats','unref','__cmd','HIGH_SENTINEL','ALL_EVENTS','algorithm\x20is\x20gone','_nodePublicKey','symbol','setNative','checkSignals','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','\x22\x20not\x20found\x20in\x20~envs','getEmbedderSchema','_onItem','errors','_env','isArray','_commitSessionMutation','randomUUID','\x20must\x20be\x20','servers','bootSyncedViewsInline','config','OKDBIndexHasConsumersError','__fts:','setMode','createIndexer','storePayload','_db','_undoHooks','$not','durableDocs','jsonrpcCode','_write','ref','processorsParticipating',')\x20+\x20readString(source)}','job.id\x20must\x20be\x20string','getIndexMeta','origin','EMBED_PENDING','item:remove','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','spawn','wake','229360kwfiyZ','timeMachine','$and','$streamId','typeSubDbs','index:','fetchJson','resetIndexFinish','_macro','_nm','err','reconcile','stop','runGc','_ttlTimerAt','HTTP_CLUSTER_REMOVED','args','getNodeRecord','__logsDb','register','item:update','failJob','type:drop','encryptionKeys','attachConsole','_sync','resolveModelDims','limits','typeId','_rebuild','describeChunk','_pending','isWorker','batch','SUB_ENV','ms/','_getRaw','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','pinned','setReadBuffer','SCHEMA_VALIDATION_FAILED','free','find','stopHandle','field\x20resolver\x20request\x20still\x20pending','exportToFile','write','_tids','job.tries\x20must\x20be\x20non-negative\x20int','getPeerState','getStats','emb','fetchRemoteDelta','_seen','dirty','_clearChunked','getIndexStatus','abort','setLogSink','clearTtl','_lockHandle','sseClose','cursorKey','_remove','ERROR','formerOrigins','limit','group','~file:blob_status','importFromStream','registerHandler:\x20fn\x20must\x20be\x20a\x20function','utf8','continueOnRecoverableError','ensureTypeEnv','send','_sinks','function','ms\x20max=','listen','FTS_BUILD_CONTINUE','body','okdb-node:\x20unknown\x20bridge\x20op\x20','refreshReadTxn','listVectorStores','priority','patchDeclaration','_OPTION_HINTS','\x22\x20to\x20enable\x20it.','Database\x20already\x20opened/closed','slice','okdb.noFast','createWorker','putSync','TXN_END','fieldPath','valuesForKey','queue:failed','_isReader','_rootDb','locks','readHashRange','FTS_READY_TIMEOUT','TXN_START','_ensureVectorStore','_deliver','message','OKDBIndexNotRegisteredError','job\x20id\x20required','setCurrentDb','_okdbAdminAttached','getRaw','reason','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','__peers','features','STARTING','exclusiveStart','read','listRoutes','listRuns','_closeReadTransaction','getPeerAcks','kind','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','session','_dupArg','engine:','process()\x20entry\x20\x22','\x20dropped\x20(buffer\x20full)','SYSTEM_STOPPED','isReader','hasChangelog','pipelines','_license','pipelineFamily','license:added','release','_log','readTransaction','existing','\x22)\x20before\x20open()',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','quarantinedEnvs','tryClaimTokens','getKeys','created','_pressure','next','cancelJob','Invalid\x20index\x20key\x20type\x20for\x20\x27','assign','usedBy','exportBuf','_adminRelay','compactLock','refs','okdb-','STOPPING','trunc','lookupAllByName','bucket','defaults','drain','_clearTTL','_getFast','blobsDir','registerEmbedderFactory','feed:','getSchema','_running','use','_makeIterator','updateBucket','queue:log','_lazyPinned','\x27\x20is\x20not\x20a\x20function','maxDbs','busEmit','notes','dims','catch','encryption\x20key\x20function\x20failed:\x20','Foreign\x20key\x20violation:\x20','TXN_INVALID_OP','driver','instanceTimerArmed','_closedHandle','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','flushTicket','removeJobLogsAfterCommit','ms\x20mean=','hasType','native','buckets','node:path','exportToStream','allowUnsafe','types','listPeers','rollback','searchWithScores','disableAll','bootLogMark','__stateDb','_attached','TypeError','BAD_PLUGIN','removeListener','vector-search','envs','queue:retry','timerArmed','summary','mapSize','search','lookupByName','Referenced\x20type\x20\x27','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','WORKERS_REMOVED','payload','previewTemplate','getRange','_ensurePeerState','_facade','value','_tx','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','peers','enqueue','INDEXER_DOC_QUEUED','job_type.defaults.buckets\x20must\x20be\x20array|null','health','_status','_subscribed','job.finished\x20must\x20be\x20number|null','dropIndex','files.upload:\x20stream','durableEngineDoc','migrate','options','useReadTransaction','remote','okdb_session','processors','createdBy','header','_processorStops','_ttlParseComposite','_customReducers','rows','buffer','acquiredAt','CHANGEFEED_QUANTUM','address','inflight','setKeyBuffer','~processes:cmd','unpin','streamByHash','stateInfo','durableMarkDelete','storeEnvPath','runDrop','bootSyncedEngines','vecRemove','initialize','storageStats','OKDB','~fts:','isSetupMode','rebuild','dropAll','callAsync','dataEnv','_timerHandle','pressure','api','drop','getSelfNode','idempotency_key','list','keyFor','payload_schema','outgoing','prevDb','openEnv','__lock','Storage\x20resolver\x20must\x20be\x20a\x20function','ITEM_UPDATE','FIELD_RESOLVER_PENDING','registerPreparer','_meta','pendingResponses','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','queue:enqueued','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','subscribe','clearDefaultTTL','bootSyncedViews','resolvedOptions','asyncIterator','must\x20be\x20an\x20object;\x20got\x20null','setModeApplied','from','embedderCall','created_at','$gte','createPipeline','loaded','ttl:clear','callRows:\x20unexpected\x20row\x20stride\x20','dup','removeJobTypeSchema','system:ready','_validateOidcAccessToken','fingerprint','removeJobType','encryptionKey','registerQuantum:\x20load\x20must\x20be\x20a\x20function','definition','listBlobStatus','\x20│\x20','_retryPending','materializer','getHistory','DEFAULT_EVENTS','_sub','fts','bootRuntime','ceil','a\x20Buffer\x20or\x20readable\x20stream','_flushIntervalTimer','flushPoll','max','_writeBlob','$or','processor:\x20rebuild\x20must\x20be\x20a\x20function','cascade','oauth','_durableIndexerDocs','isLoopbackIp','embeddings:indexer:flushed','index:progress','job.priority\x20must\x20be\x20int','_syncExpiresAtField','retry_delay','isActive','asArray','_viewCache','job_type.payload_schema.enforce\x20must\x20be\x20boolean','boolean','system:env_release','-worker','throw','targetType','_registerType','bucket_tokens','getStatus','$gt','processorsStatus','listRefViolations','\x22\x20is\x20used\x20by:\x20','setToken','vectorSpace','processor','\x22\x20tokens\x20must\x20be\x20>=\x201','$ne','registerTarget','ref:violation_resolved','getDefinition','isHeld','listTemplates','DEFAULT_TTL_MS','byteLength','_callRows','isFinite','License\x20limit\x20exceeded:\x20','_key','callPacked','build','req','timer','\x27\x20at\x20','typeStats','delete','resume','reconcilePeer','enforced','match','refTrackingDbs','setJobTypeSchema','tag\x20too\x20long','_ttlBackoffUntil','_listening','Index\x20\x27','flatMap','resumeOpts','_oauthConfig','isBun','getJobType','_settled','autoCompactTimerArmed','ctrl','_ttlCompositeKey','getByPrefix','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','SEARCH','versions','newListener','VERSION_MISMATCH','auth','hasOwnProperty','_keepAlive','commit','dropType','_maxConnections','algorithm\x20has\x20no\x20method\x20','maxBodyBytes','$ref','root','proc','_durableIndexerDoc','query','_tickCallback','vectorStoreStats','removes','\x27\x20doesn\x27t\x20exist','readKey','ENGINE_DRIVER_ALREADY_REGISTERED','setLogger','embedder','clearFailed','Key\x20is\x20too\x20large','__okdb','toFixed','streamClose','use\x20engines.registerDriver()','getTemplate','_subsV2Obj','describeAllTypesDetailed','orchestrator','inspect','setBridge','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','license:activated','useVersions','toISOString','holder','test','_handlerName','removeBucket','pending','pokeHandler','tick','__warned','nodeKey','node:http','_durableEngineDoc','queue:rescheduled','bucketsDb','getJob','itemsGroups','\x20(required\x20by\x20','TXN_CLOSED','getEmbedderFactory','gateQuanta','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.','index','stopping','record','blobPath','hook','encryption:key-changed','Feature\x20not\x20licensed:\x20','forceResync','captureStackTrace','Blob\x20not\x20found:\x20','getLegacyCursor','replace','@harperdb/extended-iterable:skip','callStatic','listTTL','kick','version','subsBuilt','fts:reset','includes','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ttlMs','resolution','stack','job.retry_delay\x20must\x20be\x20int\x20>=\x200','retry','call','tierList','noteListenAddr','count','logChange','type:','_registrations','getAll','4986GMJnrB','off','handle','paused','txn\x20ops\x20must\x20be\x20an\x20array','registerHandler','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','\x20===\x204)\x0a\x09\x09\x09\x09','makeOkdb','_makePipelineApi','undefined','embed','Invalid\x20onDelete\x20rule\x20\x27','evict','getJobLogs','put','Cannot\x20register\x20plugins\x20after\x20start','installed','registerTemplate','spki','view:progress','patchConfig','handlerName','onLicenseExpired','now','return\x20fromCharCode(','ttlState','loop-lag\x20','geoQuery','_stream','updateJob','_quantum','when','toMs','handleDurableClock','bucket.tokens\x20must\x20be\x20int\x20>=\x200','setDeltaLimit','itemsDb','\x27\x20on\x20type\x20\x27','writeBlob','(?:','_typeKeys','advanceHlcOnRecv','embeddings:strategy:registered','unregisterTarget','_modeApplied','error_stack','_unknownOptionsWarned','clock','_afterDurable','getResolvedOptions','detach','setClaiming','_stops','effective','drainJobType','sweepExpiredTTL','bus:poke','processorHold','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','_assertOpen','hash','ENGINE_INVALID_DRIVER','TXN_ENV_MISMATCH','resumeAllAfterDrain','getMany','__sync:peer_state','_call','lockHeld','instance','emitProc','action','_settleRead','compareKeys','iterate','_flushDebounce','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','_isClosedEnvError','_changeToClockDb','toJSON','_scheduleFlush','clear','listAlgorithms','_defaultEnvObj','json','job.','_warnUnknownOptions','embeddings:indexer:ready','_ringSize','refreshTtlBatch','getInt32','toBufferKey','compiled','readString\x20}','offset','charCodeAt','lock','some','_pokeListener','links','\x20references\x20','log\x20entry\x20message\x20required','setInt32','SKIP','reducer','alg','issueToken','$in','compactStorage','getClock','Unknown\x20OKDB\x20transaction\x20error','byLabel','pumping','process','_isOpen','engineUninstall','ttl','getMeta','_bootLog','key','customReducerNames','remove','_listenAddr','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','getAuthOptions','_formerOrigins','$defs','applyChange','_emitProc','getTTL','unpack','284DAZqDJ','runRecord','sourceKey','bucket.updated\x20must\x20be\x20number','getViolation','exportName','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','ensure:\x20type\x20is\x20required','filter','getEntry','embedder\x20request\x20still\x20pending','\x27:\x20','cron','EMBEDDER','envName','freeze','stopWorkerBegin','Database\x20not\x20started','ENV_NOT_FOUND','flush','_onFeedChange','refill_amount','localViewStats','byIndex','~engines','index:reset','name','utf8Write','_tools','embeddings:pipeline:ready','bumpVersion','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','_listeners','job\x20type\x20must\x20be\x20object','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','_lock','onDo','authenticateToken','ensureType','_logChange','bind','_closeEnvLocally','_detachLogSink','isOAuthEmailAllowed','attach','embed-worker','createWriteFacade','env','./native-loader.js'];_0x2854=function(){return _0x3f2570;};return _0x2854();}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x4aa2e4=_0x1c5fdf;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x47bd1c,invalidArgument:_0x20ecff}=requireErrors();requireBridge();const _0x40af1e=Object[_0x4aa2e4(0x7ff)]({'EMBEDDER':_0x4aa2e4(0x726),'INDEXER':_0x4aa2e4(0x2dc),'SEARCH':_0x4aa2e4(0x648),'WORKER':_0x4aa2e4(0x81d)}),_0x589568=_0x2b6835=>typeof _0x2b6835==='string'||_0x2b6835==null?_0x2b6835:Array['from'](_0x2b6835);class _0x121a23{constructor(_0x230aa7){const _0x34a43c=_0x4aa2e4;this['okdb']=_0x230aa7,this[_0x34a43c(0x447)]=new Map(),this[_0x34a43c(0x1dc)]=new Map(),this[_0x34a43c(0x6d4)]=new Map();}['_n'](_0x4ff9d0,_0x195b14=[],_0x1f71b4=!![]){const _0x16f27f=_0x4aa2e4;return this[_0x16f27f(0x263)][_0x16f27f(0x7b0)](_0x16f27f(0x4bb),null,_0x4ff9d0,_0x195b14,_0x1f71b4);}[_0x4aa2e4(0x581)](_0x23cd78,_0x2b443a=[]){const _0x451ac3=_0x4aa2e4;return this[_0x451ac3(0x263)][_0x451ac3(0x217)](_0x451ac3(0x4bb),null,_0x23cd78,_0x2b443a,!![]);}[_0x4aa2e4(0x35d)](_0x589dfa){const _0x5b1029=_0x4aa2e4;return _0x589dfa?this[_0x5b1029(0x263)]['engines'][_0x5b1029(0x35d)](_0x589dfa):null;}[_0x4aa2e4(0x61e)](_0x23a316,_0x1f7142,_0x15893e={}){const _0x215bed=_0x4aa2e4;if(typeof _0x1f7142!==_0x215bed(0x5c4))throw new _0x47bd1c(_0x215bed(0x4b1),'BAD_PARAM',{'name':_0x23a316});this[_0x215bed(0x447)][_0x215bed(0x398)](_0x23a316,_0x1f7142),this['_jsSchemas'][_0x215bed(0x398)](_0x23a316,_0x15893e);const _0x5cd861=this['okdb'],_0x3fcc73=_0x589f80=>_0x1f7142(_0x589f80,_0x5cd861);_0x3fcc73['__okdb']=_0x5cd861,this['_n'](_0x215bed(0x61e),[_0x23a316,_0x3fcc73,_0x15893e??{}],![]);}[_0x4aa2e4(0x748)](_0xe2416f){const _0x422f9f=_0x4aa2e4,_0x2c37ee=this[_0x422f9f(0x447)][_0x422f9f(0x4ff)](_0xe2416f);if(_0x2c37ee)return _0x2c37ee;if(!this['_n'](_0x422f9f(0x893),[_0xe2416f],![]))return null;const _0x52424f=this;return(_0x67c47e={})=>{const _0x13c69d=_0x422f9f,_0x3cafc1=_0x52424f['_n'](_0x13c69d(0x494),[_0xe2416f,_0x67c47e],![]),_0x57bf6d=_0x52424f['_n'](_0x13c69d(0x1b4),[_0x3cafc1],![]),_0x26ca6f=(_0x27bdea,_0x39f187)=>_0x52424f['_n'](_0x13c69d(0x6a8),[_0x3cafc1,_0x27bdea,_0x39f187],![]),_0x548dcd={'embed':async _0x49417a=>Float32Array[_0x13c69d(0x6a7)](_0x26ca6f(_0x13c69d(0x778),_0x49417a)),'start':async()=>_0x26ca6f(_0x13c69d(0x84e)),'stop':async()=>{const _0x418971=_0x13c69d;_0x26ca6f('stop'),_0x26ca6f(_0x418971(0x5a1));}};if(_0x57bf6d)_0x548dcd['embedBatch']=async _0xcb0e32=>_0x26ca6f(_0x13c69d(0x18a),_0xcb0e32)[_0x13c69d(0x4ba)](_0x22cad2=>Float32Array[_0x13c69d(0x6a7)](_0x22cad2));return _0x548dcd;};}[_0x4aa2e4(0x557)](_0x3a6ab3){const _0x222ca9=_0x4aa2e4;return this[_0x222ca9(0x1dc)][_0x222ca9(0x4ff)](_0x3a6ab3)??this['_n'](_0x222ca9(0x557),[_0x3a6ab3],![])??undefined;}[_0x4aa2e4(0x268)](_0x2da466,_0x488b4b,_0x317062={}){const _0x475d8a=_0x4aa2e4;if(typeof _0x488b4b!=='function')throw new _0x47bd1c(_0x475d8a(0x3cd),_0x475d8a(0x185),{'name':_0x2da466});this['_n'](_0x475d8a(0x268),[_0x2da466,(_0x263e8d,_0x1c868c)=>_0x488b4b(_0x263e8d,_0x1c868c),_0x317062??{}],![]);}[_0x4aa2e4(0x7bf)](){const _0x2594f9=_0x4aa2e4;return this['_n'](_0x2594f9(0x7bf),[],![]);}[_0x4aa2e4(0x69a)](_0xe0407a,_0x1caa10){const _0xfa2f06=_0x4aa2e4;if(typeof _0x1caa10!=='function')throw new _0x47bd1c(_0xfa2f06(0x879),_0xfa2f06(0x185),{'name':_0xe0407a});this['_n'](_0xfa2f06(0x69a),[_0xe0407a,_0x1caa10]);}[_0x4aa2e4(0x21a)](_0xb1d7c2,_0x3be2b8){const _0x3ac360=_0x4aa2e4;if(typeof _0x3be2b8!=='function')throw new _0x47bd1c(_0x3ac360(0x239),_0x3ac360(0x185),{'name':_0xb1d7c2});this['_n'](_0x3ac360(0x21a),[_0xb1d7c2,_0x3be2b8]);}['setStorageResolver'](_0x4af9a6){const _0x522fa6=_0x4aa2e4;if(_0x4af9a6==null)return this['_n'](_0x522fa6(0x202),[null],![]);if(typeof _0x4af9a6!=='function')throw new _0x47bd1c(_0x522fa6(0x697),'BAD_PARAM');const _0x5c1e29=this[_0x522fa6(0x263)];this['_n'](_0x522fa6(0x202),[_0x56417b=>_0x4af9a6(_0x56417b,_0x5c1e29)],![]);}async[_0x4aa2e4(0x52d)](_0x32c6b2,_0x45af04={},_0x203731={},_0x126e14=null){const _0x3979dd=_0x4aa2e4;return this[_0x3979dd(0x35d)](await this[_0x3979dd(0x581)](_0x3979dd(0x52d),[_0x32c6b2,_0x45af04,_0x203731,_0x126e14]));}async[_0x4aa2e4(0x565)](_0x2deeea,_0x240461={},_0x230583={}){const _0x30060d=_0x4aa2e4;return this[_0x30060d(0x35d)](await this[_0x30060d(0x581)](_0x30060d(0x565),[_0x2deeea,_0x240461,_0x230583]));}async[_0x4aa2e4(0x500)](_0x412309,_0x211433={},_0x44df87={}){const _0x23d766=_0x4aa2e4;return this[_0x23d766(0x35d)](await this[_0x23d766(0x581)](_0x23d766(0x500),[_0x412309,_0x211433,_0x44df87]));}async[_0x4aa2e4(0x5d3)](_0x459569,_0x520271={},_0x59d9cf={}){const _0x432703=_0x4aa2e4;return this[_0x432703(0x35d)](await this['_nm'](_0x432703(0x5d3),[_0x459569,_0x520271,_0x59d9cf]));}async[_0x4aa2e4(0x6ab)](_0x2d300e,_0x290324={},_0x5ec2df={}){const _0x4498da=_0x4aa2e4,_0x23fc59=await this[_0x4498da(0x581)](_0x4498da(0x6ab),[_0x2d300e,_0x290324,_0x5ec2df]);return{'embedder':this[_0x4498da(0x35d)](_0x23fc59[_0x4498da(0x726)]),'indexer':this['_wrap'](_0x23fc59['indexer']),'worker':this['_wrap'](_0x23fc59['worker']),'search':this[_0x4498da(0x35d)](_0x23fc59['search']),'api':this[_0x4498da(0x776)](_0x23fc59[_0x4498da(0x499)],_0x23fc59[_0x4498da(0x726)][_0x4498da(0x80a)],_0x23fc59[_0x4498da(0x4e0)]?_0x23fc59[_0x4498da(0x4e0)][_0x4498da(0x80a)]:_0x23fc59[_0x4498da(0x499)]+_0x4498da(0x6d8))};}[_0x4aa2e4(0x621)](_0x395656,_0xd2dde9){const _0x31352d=_0x4aa2e4;return this[_0x31352d(0x263)][_0x31352d(0x41f)][_0x31352d(0x210)](_0x395656,_0xd2dde9)?.[_0x31352d(0x68c)]??null;}[_0x4aa2e4(0x726)](_0x11e798){const _0x352d57=_0x4aa2e4,_0x5bcf87=this[_0x352d57(0x621)](_0x40af1e['EMBEDDER'],_0x11e798);if(!_0x5bcf87)return null;const _0x59f2e1=this,_0x446d6d=_0x42693f=>Array[_0x352d57(0x55b)](_0x42693f)&&Array['isArray'](_0x42693f[0x0])?_0x42693f['map'](_0x23819e=>Float32Array[_0x352d57(0x6a7)](_0x23819e)):Float32Array[_0x352d57(0x6a7)](_0x42693f);return new Proxy(_0x5bcf87,{'get'(_0x1869a3,_0x9ecea0){const _0x5b5dee=_0x352d57;if(_0x9ecea0===_0x5b5dee(0x62b))return _0x59f2e1[_0x5b5dee(0x263)][_0x5b5dee(0x7b0)](_0x5b5dee(0x41f),null,_0x5b5dee(0x198),[_0x40af1e[_0x5b5dee(0x7fd)],_0x11e798,_0x5b5dee(0x62b),[]],![])['value'];if(_0x9ecea0===_0x5b5dee(0x778))return async _0x48d09c=>_0x446d6d(await _0x5bcf87[_0x5b5dee(0x778)](_0x48d09c));if(_0x9ecea0==='embedBatch')return async _0x2ea452=>(await _0x5bcf87[_0x5b5dee(0x18a)](_0x2ea452))[_0x5b5dee(0x4ba)](_0x552a29=>Float32Array[_0x5b5dee(0x6a7)](_0x552a29));return _0x1869a3[_0x9ecea0];}});}[_0x4aa2e4(0x2dc)](_0x4a9188){const _0x5317f5=_0x4aa2e4;return this[_0x5317f5(0x621)](_0x40af1e[_0x5317f5(0x262)],_0x4a9188);}[_0x4aa2e4(0x4e0)](_0x3f06c4){const _0xf3a3e5=_0x4aa2e4;return this[_0xf3a3e5(0x621)](_0x40af1e[_0xf3a3e5(0x3ef)],_0x3f06c4);}[_0x4aa2e4(0x64e)](_0x4f1275){const _0x4f2205=_0x4aa2e4,_0x82ee8e=this[_0x4f2205(0x621)](_0x40af1e[_0x4f2205(0x70e)],_0x4f1275);if(_0x82ee8e)return _0x82ee8e;return this['_localViewApi'](_0x4f1275);}[_0x4aa2e4(0x4a0)](_0xfc5718){const _0xd5682e=_0x4aa2e4,_0x499680=this;return{'search':(_0x2d79b4,_0x219910={})=>_0x499680[_0xd5682e(0x263)][_0xd5682e(0x217)](_0xd5682e(0x4bb),null,_0xd5682e(0x64e),[_0xfc5718,_0x589568(_0x2d79b4),_0x219910],![]),'stats':async()=>_0x499680['_n'](_0xd5682e(0x806),[_0xfc5718],![]),'count':()=>_0x499680['_n'](_0xd5682e(0x1ae),[_0xfc5718,_0xd5682e(0x768)],![])};}async[_0x4aa2e4(0x82c)](_0x3bca3a,_0x7b16a1,_0x23e33b={}){const _0x56d5a5=_0x4aa2e4,{limit:limit=0xa,..._0x16cdb4}=_0x23e33b;return this['_nm'](_0x56d5a5(0x82c),[_0x3bca3a,_0x589568(_0x7b16a1),{..._0x16cdb4,'limit':limit}]);}[_0x4aa2e4(0x6e3)](_0x5cc7f2){const _0x5dc54b=_0x4aa2e4;return this['_n'](_0x5dc54b(0x6e3),[_0x5cc7f2],![]);}[_0x4aa2e4(0x741)](_0x5709a9,_0x56a122){const _0x3a0335=_0x4aa2e4;return this['_n'](_0x3a0335(0x665),[_0x5709a9,_0x56a122],![]);}[_0x4aa2e4(0x176)](_0x4dd817){const _0x59c233=_0x4aa2e4;return this['_n'](_0x59c233(0x24c),[_0x4dd817],![]);}async[_0x4aa2e4(0x53a)](_0x16a203){const _0x48b703=_0x4aa2e4;return this['_n'](_0x48b703(0x3b1),[_0x16a203],![]);}async[_0x4aa2e4(0x6cb)](_0x2d94b6,_0x1975c7={}){const _0x42f6d7=_0x4aa2e4;return this['_n'](_0x42f6d7(0x56a),[_0x2d94b6,_0x1975c7],![]);}async[_0x4aa2e4(0x71d)](_0x2a5489,_0x1bf50e){const _0x40c930=_0x4aa2e4;return this['_n'](_0x40c930(0x34b),[_0x2a5489,_0x1bf50e],![]);}async[_0x4aa2e4(0x596)](_0x41a93b,_0x58af6f,_0x5aea35,_0x670073){const _0x36f68d=_0x4aa2e4;if(_0x41a93b!=null&&typeof _0x41a93b['includes']!==_0x36f68d(0x5c4))throw _0x20ecff(_0x36f68d(0x80a),_0x36f68d(0x2a6),_0x41a93b);if(!_0x41a93b||!_0x5aea35)return null;return this[_0x36f68d(0x263)][_0x36f68d(0x217)](_0x36f68d(0x4bb),null,_0x36f68d(0x596),[_0x41a93b,_0x58af6f,_0x5aea35,_0x670073??null],![]);}async['durableMarkDone'](_0x4f7fa5,_0x29c86a,_0x1d5d73={}){const _0x2d3fb2=_0x4aa2e4,_0x5ae67a={..._0x1d5d73};if(_0x5ae67a[_0x2d3fb2(0x4f6)])_0x5ae67a[_0x2d3fb2(0x4f6)]=Array[_0x2d3fb2(0x6a7)](_0x5ae67a[_0x2d3fb2(0x4f6)]);return this['_n'](_0x2d3fb2(0x535),[_0x4f7fa5,_0x29c86a,_0x5ae67a]);}async[_0x4aa2e4(0x4d6)](_0x4e6320,_0x1e7bce,_0x4ea095,_0x453af5={}){const _0x5ec4c4=_0x4aa2e4;return this['_n'](_0x5ec4c4(0x4d6),[_0x4e6320,_0x1e7bce,_0x4ea095,_0x453af5]);}async[_0x4aa2e4(0x67c)](_0x2f87f4,_0x41fa0e){const _0x189917=_0x4aa2e4;return this['_n'](_0x189917(0x67c),[_0x2f87f4,_0x41fa0e]);}async[_0x4aa2e4(0x85c)](_0x2fafe0,_0x2c8d45){const _0x42ec62=_0x4aa2e4;return this['_n'](_0x42ec62(0x85c),[_0x2fafe0,_0x2c8d45]);}async['durableRetryFailed'](_0x251974,_0x27bf4d={}){return this['_n']('durableRetryFailed',[_0x251974,_0x27bf4d]);}async['durableRebuild'](_0x171979){const _0x161116=_0x4aa2e4;return this[_0x161116(0x581)](_0x161116(0x243),[_0x171979]);}async[_0x4aa2e4(0x43d)](_0x3dcb08){const _0x5878ec=_0x4aa2e4;return this['_n'](_0x5878ec(0x89f),[_0x3dcb08],![]);}[_0x4aa2e4(0x720)](_0x4c74ae){const _0x165178=_0x4aa2e4;return this['_n'](_0x165178(0x720),[_0x4c74ae],![]);}[_0x4aa2e4(0x5cb)](){const _0x5d92f8=_0x4aa2e4;return this['_n'](_0x5d92f8(0x5cb),[],![]);}['getVector'](_0x5ee5a5,_0x3516e9){const _0x575201=_0x4aa2e4,_0x530b1b=this['_n']('getVector',[_0x5ee5a5,_0x3516e9],![]);return _0x530b1b==null?null:Float32Array[_0x575201(0x6a7)](_0x530b1b);}[_0x4aa2e4(0x592)](_0x39d580,_0xc5b8f5){const _0x30277c=_0x4aa2e4;return this['_n'](_0x30277c(0x592),[_0x39d580,_0xc5b8f5??null],![])??undefined;}async['registerModel'](_0x28b710,_0x4088bf,_0x5e4394,_0x2fc3e0=''){const _0x4982e9=_0x4aa2e4;return this['_n'](_0x4982e9(0x532),[_0x28b710,_0x4088bf,_0x5e4394,_0x2fc3e0]);}[_0x4aa2e4(0x4bf)](_0x15064b=null){const _0x52da7=_0x4aa2e4;return this['_n'](_0x52da7(0x4bf),[_0x15064b],![]);}[_0x4aa2e4(0x285)](){const _0x1114b8=_0x4aa2e4;return this['_n'](_0x1114b8(0x285),[],![]);}async[_0x4aa2e4(0x362)](_0x70de66,_0x5c1f2f){const _0x1132e9=_0x4aa2e4;return this['_n'](_0x1132e9(0x5c1),[_0x70de66,_0x5c1f2f],![]),this[_0x1132e9(0x263)][_0x1132e9(0x355)]('~'+_0x70de66+':emb:'+_0x5c1f2f);}async[_0x4aa2e4(0x5df)](_0x2952ca,_0x447ff0){const _0x2d126e=_0x4aa2e4;return await this[_0x2d126e(0x362)](_0x2952ca,_0x447ff0),{'adapter':_0x3f499c=>this[_0x2d126e(0x3ba)](_0x2952ca,_0x447ff0,_0x3f499c)};}['_makeLazyVectorAdapter'](_0x3d897f,_0xdad229,_0x1bc1b2){const _0x1dcb6e=this;return{async 'put'(_0xfe7c08,_0x1ec0e4){return _0x1dcb6e['_n']('vecPut',[_0x3d897f,_0xdad229,_0x1bc1b2,_0xfe7c08,Array['from'](_0x1ec0e4)]);},async 'remove'(_0x438e72){const _0x39d13a=_0x20ac;return _0x1dcb6e['_n'](_0x39d13a(0x680),[_0x3d897f,_0xdad229,_0x1bc1b2,_0x438e72]);}};}get[_0x4aa2e4(0x40d)](){const _0x48636f=_0x4aa2e4,_0x3118bd=this,_0x2a5652=()=>_0x3118bd['_n']('localViewNames',[],![]),_0x3fec30=_0x5d5bea=>{const _0xce2914=_0x20ac,_0xc76ac4=_0x1dcdc9=>_0x3118bd['_n'](_0xce2914(0x1ae),[_0x5d5bea,_0x1dcdc9],![]);return{'name':_0x5d5bea,'_evict':async()=>_0xc76ac4('evict'),'evict':async()=>_0xc76ac4(_0xce2914(0x77a)),'snapshot':async()=>_0xc76ac4(_0xce2914(0x870)),'_snapshot':async()=>_0xc76ac4(_0xce2914(0x870)),'rebuild':async()=>_0xc76ac4(_0xce2914(0x686)),'stats':()=>_0xc76ac4(_0xce2914(0x234)),get 'count'(){const _0x2dafca=_0xce2914;return _0xc76ac4(_0x2dafca(0x768));},get 'loaded'(){const _0x2fcafa=_0xce2914;return _0xc76ac4(_0x2fcafa(0x6ac));}};};return{get 'size'(){const _0x8960fb=_0x20ac;return _0x2a5652()[_0x8960fb(0x2f6)];},'has':_0x1c4577=>_0x2a5652()[_0x48636f(0x75e)](_0x1c4577),'get':_0x1d8e5a=>_0x2a5652()[_0x48636f(0x75e)](_0x1d8e5a)?_0x3fec30(_0x1d8e5a):undefined,'keys':()=>_0x2a5652()[Symbol[_0x48636f(0x84c)]](),'values':()=>_0x2a5652()[_0x48636f(0x4ba)](_0x3fec30)[Symbol[_0x48636f(0x84c)]](),[Symbol[_0x48636f(0x84c)]]:()=>_0x2a5652()['map'](_0x1e5d6a=>[_0x1e5d6a,_0x3fec30(_0x1e5d6a)])[Symbol[_0x48636f(0x84c)]]()};}async[_0x4aa2e4(0x84e)](){}async[_0x4aa2e4(0x584)](){const _0x3d7aaa=_0x4aa2e4;this['_n'](_0x3d7aaa(0x584),[]);}['_makePipelineApi'](_0x94799d,_0x3ab39b,_0x35d37d){const _0x2c5580=_0x4aa2e4;return{'search':(_0x43ec6f,_0x35c3a4={})=>{const _0x6dcb2c=_0x20ac,_0x433392=this[_0x6dcb2c(0x64e)](_0x94799d);if(!_0x433392)throw new Error('vector-search\x20engine\x20not\x20running:\x20\x22'+_0x94799d+'\x22');return _0x433392['search'](_0x43ec6f,_0x35c3a4);},'searchDocs':(_0xff3854,_0x3614f0={})=>this[_0x2c5580(0x82c)](_0x94799d,_0xff3854,_0x3614f0),'flush':_0xf7a55d=>{const _0x58bae9=_0x2c5580,_0x1b5898=this[_0x58bae9(0x2dc)](_0x94799d);if(!_0x1b5898)throw new Error(_0x58bae9(0x2d3)+_0x94799d+'\x22');return _0x1b5898['flush'](_0xf7a55d);},'stats':async()=>({'embedder':await this[_0x2c5580(0x726)](_0x3ab39b)?.[_0x2c5580(0x65f)]?.(),'indexer':await this[_0x2c5580(0x2dc)](_0x94799d)?.[_0x2c5580(0x234)]?.(),'worker':await this[_0x2c5580(0x4e0)](_0x35d37d)?.[_0x2c5580(0x234)]?.(),'search':await this[_0x2c5580(0x64e)](_0x94799d)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x121a23,'ENGINE_TYPES':_0x40af1e},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x1505a0=_0x1c5fdf;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x2b1ddd}=requireErrors();class _0x57ac1b{constructor(_0x313beb){const _0x25b948=_0x20ac;this[_0x25b948(0x263)]=_0x313beb;}['_n'](_0x1db1a5,_0x410111=[],_0x29d901=![]){const _0x3b611e=_0x20ac;return this[_0x3b611e(0x263)][_0x3b611e(0x7b0)]('auth',null,_0x1db1a5,_0x410111,_0x29d901);}[_0x1505a0(0x581)](_0x3a8cc1,_0xe92610=[]){const _0x42f688=_0x1505a0;return this[_0x42f688(0x263)][_0x42f688(0x217)]('auth',null,_0x3a8cc1,_0xe92610,![]);}get[_0x1505a0(0x851)](){const _0x392039=_0x1505a0;return this['_n'](_0x392039(0x851));}get[_0x1505a0(0x685)](){const _0xd6ea2a=_0x1505a0;return this['_n'](_0xd6ea2a(0x685));}get[_0x1505a0(0x705)](){const _0x579590=_0x1505a0;return this[_0x579590(0x263)][_0x579590(0x667)][_0x579590(0x712)]?.[_0x579590(0x6ca)]||{};}[_0x1505a0(0x81b)](_0x47b1fc){const _0x64863a=_0x1505a0;return this['_n'](_0x64863a(0x81b),[_0x47b1fc??null]);}[_0x1505a0(0x31c)](_0x1f704e){const _0x5827da=_0x1505a0;return this['_n'](_0x5827da(0x45a),[_0x1f704e??null]);}['_isLoopbackIp'](_0x1ac045){const _0x351e88=_0x1505a0;return this['_n'](_0x351e88(0x6cc),[_0x1ac045??null]);}[_0x1505a0(0x340)](){const _0x3da03c=_0x1505a0;return this['_n'](_0x3da03c(0x2c4));}[_0x1505a0(0x470)](){const _0x116a24=_0x1505a0;return this['_n'](_0x116a24(0x470));}[_0x1505a0(0x7e9)](){const _0x2807dd=_0x1505a0;return this['_n'](_0x2807dd(0x7e9));}['issueToken'](_0x2a866a){const _0x3aec71=_0x1505a0;return this['_n'](_0x3aec71(0x7d7),[_0x2a866a]);}['authenticateToken'](_0x431b36){const _0x450fd6=_0x1505a0;return this['_n'](_0x450fd6(0x815),[_0x431b36]);}[_0x1505a0(0x40e)](_0x156ee6){const _0xcdf081=_0x1505a0;if(_0x156ee6!=null&&typeof _0x156ee6!=='string')throw _0x2b1ddd(_0xcdf081(0x66d),_0xcdf081(0x2a6),_0x156ee6);return this['_n']('parseBearer',[_0x156ee6??null]);}async[_0x1505a0(0x82e)](){const _0x21237b=_0x1505a0;return this['_n'](_0x21237b(0x42e),[],!![]);}async['_lookupByTokenHash'](_0x40dc28){const _0x44426c=_0x1505a0;return this['_n'](_0x44426c(0x2a1),[_0x40dc28]);}async[_0x1505a0(0x38a)](_0x32774b){const _0x417644=_0x1505a0;return this['_n'](_0x417644(0x64f),[_0x32774b]);}async[_0x1505a0(0x1fe)](_0x2a985a){const _0x403587=_0x1505a0;return this['_n'](_0x403587(0x617),[_0x2a985a]);}async['authenticateRequest'](_0x1740f3){const _0x310c88=_0x1505a0,_0x534eb0=_0x1740f3?.[_0x310c88(0x1e1)]||{};return this['_n'](_0x310c88(0x546),[{'remoteAddress':_0x1740f3[_0x310c88(0x1a9)]?.[_0x310c88(0x23c)]??null,'internal':_0x1740f3?.[_0x310c88(0x50c)]?.['internal']===!![],'authorization':_0x534eb0[_0x310c88(0x3b7)]??null,'cookies':_0x1740f3?.[_0x310c88(0x3f5)]??{}}]);}async[_0x1505a0(0x34e)](_0x2ca8d7,_0x5ddda3){const _0x56a079=_0x1505a0;return this[_0x56a079(0x581)](_0x56a079(0x34e),[_0x2ca8d7??null,_0x5ddda3??null]);}async[_0x1505a0(0x1db)](_0x31c1ee,_0x50d813,_0x20942c){return this['_nm']('loginSelect',[_0x31c1ee??null,_0x50d813??null,_0x20942c??null]);}[_0x1505a0(0x506)](){const _0x46954e=_0x1505a0;return this['_n'](_0x46954e(0x506));}['getLoginConfig'](){return this['_n']('getLoginConfig');}[_0x1505a0(0x40f)](_0x55cf83={},_0x471273=0x927c0){const _0x4b1653=_0x1505a0;return this['_n'](_0x4b1653(0x40f),[_0x55cf83,_0x471273]);}[_0x1505a0(0x2e2)](_0x1e3b52){const _0x4cb509=_0x1505a0;return this['_n'](_0x4cb509(0x2e2),[_0x1e3b52]);}async[_0x1505a0(0x6b2)](_0x1ced69,_0x53e1bf={}){const _0x5862ad=_0x1505a0;return this[_0x5862ad(0x581)](_0x5862ad(0x2b7),[_0x1ced69,_0x53e1bf]);}async[_0x1505a0(0x1a3)](_0x2a7a6a={}){const _0x23332b=_0x1505a0;return this[_0x23332b(0x581)](_0x23332b(0x294),[_0x2a7a6a]);}['_normalizeOAuthAuthResult'](_0x570ede){return this['_n']('normalizeOAuthAuthResult',[_0x570ede]);}}return auth={'OKDBAuth':_0x57ac1b},auth;}var sync,hasRequiredSync;function requireSync(){const _0x5d5af0=_0x1c5fdf;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4039bf}=requireRawdb();class _0xd86d9f{constructor(_0x2c71de){this['_s']=_0x2c71de;}get[_0x5d5af0(0x3bc)](){const _0x1ed874=_0x5d5af0;return this['_ack']||(this[_0x1ed874(0x478)]=new _0x4039bf(this['_s'][_0x1ed874(0x263)][_0x1ed874(0x25d)],'__sync:acks'));}[_0x5d5af0(0x520)](){return this['_ackDb'];}[_0x5d5af0(0x32d)](){const _0x2854a0=_0x5d5af0;return this[_0x2854a0(0x3bc)];}['_n'](_0xace36e,_0x34a406=[]){return this['_s']['_n']('gc.'+_0xace36e,_0x34a406);}[_0x5d5af0(0x492)](_0x458f59,_0x5bd974){return this['_n']('recordPeerAck',[_0x458f59,_0x5bd974]);}async['forceResync'](_0x298116){const _0x6e80c5=_0x5d5af0;return this['_n'](_0x6e80c5(0x752),[_0x298116]);}[_0x5d5af0(0x5f1)](){const _0x11137e=_0x5d5af0;return this['_n'](_0x11137e(0x5f1));}[_0x5d5af0(0x4e4)](_0x5a80a5){const _0xa0661a=_0x5d5af0;return this['_n'](_0xa0661a(0x4e4),[_0x5a80a5]);}async['runGc'](){const _0x11e8d0=_0x5d5af0;return this['_n'](_0x11e8d0(0x585));}[_0x5d5af0(0x6dd)](){const _0x288eb7=_0x5d5af0;return this['_n'](_0x288eb7(0x6dd));}[_0x5d5af0(0x84e)](){const _0x1cdab4=_0x5d5af0;return this['_n'](_0x1cdab4(0x84e));}[_0x5d5af0(0x584)](){const _0x4ddd98=_0x5d5af0;return this['_n'](_0x4ddd98(0x584));}get['_gcTimer'](){const _0x1ce2a0=_0x5d5af0;try{return this['_n'](_0x1ce2a0(0x64b))?{}:null;}catch{return null;}}}class _0x4e5590{constructor(_0x494f2f){const _0x232d89=_0x5d5af0;this[_0x232d89(0x263)]=_0x494f2f,this['gc']=new _0xd86d9f(this);const _0x42557b=this;this[_0x232d89(0x667)]=new Proxy({},{'get':(_0x1fcc2a,_0x6134a0)=>typeof _0x6134a0==='string'?_0x42557b['_n']('options')[_0x6134a0]:undefined,'set':(_0x624a2f,_0x24b6ac,_0x34da5a)=>{const _0x4b5c1e=_0x232d89;if(_0x24b6ac===_0x4b5c1e(0x675))_0x42557b['_n'](_0x4b5c1e(0x33f),[_0x34da5a??null]);else{if(_0x24b6ac===_0x4b5c1e(0x267))_0x42557b['_n'](_0x4b5c1e(0x6e2),[_0x34da5a??null]);else{if(_0x24b6ac===_0x4b5c1e(0x2eb))_0x42557b['_n'](_0x4b5c1e(0x791),[_0x34da5a]);}}return!![];},'ownKeys':()=>Object[_0x232d89(0x542)](_0x42557b['_n'](_0x232d89(0x667))),'getOwnPropertyDescriptor':(_0x25008e,_0x1048d4)=>({'enumerable':!![],'configurable':!![],'value':_0x42557b['_n'](_0x232d89(0x667))[_0x1048d4]}),'has':(_0x5034b4,_0x14b57c)=>_0x14b57c in _0x42557b['_n'](_0x232d89(0x667))});}['_n'](_0x53977f,_0x53ef4e=[],_0x27dfd9=![]){const _0x4415fb=_0x5d5af0;return this[_0x4415fb(0x263)][_0x4415fb(0x7b0)](_0x4415fb(0x838),null,_0x53977f,_0x53ef4e,_0x27dfd9);}[_0x5d5af0(0x581)](_0x288bac,_0x124863=[]){const _0x2a1044=_0x5d5af0;return this[_0x2a1044(0x263)][_0x2a1044(0x217)](_0x2a1044(0x838),null,_0x288bac,_0x124863,!![]);}get[_0x5d5af0(0x2a7)](){const _0x10bffe=_0x5d5af0;return this['_pdb']||(this[_0x10bffe(0x4ea)]=new _0x4039bf(this[_0x10bffe(0x263)][_0x10bffe(0x25d)],_0x10bffe(0x7af)));}[_0x5d5af0(0x22b)](){const _0x377060=_0x5d5af0;return this[_0x377060(0x2a7)];}get[_0x5d5af0(0x376)](){const _0xfd0bd4=_0x5d5af0;return this[_0xfd0bd4(0x2b0)]||(this['_syncLock']=new(requireLock())[(_0xfd0bd4(0x390))](this[_0xfd0bd4(0x263)],_0xfd0bd4(0x199),_0xfd0bd4(0x838),{'ttlMs':0x7530}));}get['address'](){const _0x2f58ed=_0x5d5af0;return this['_n'](_0x2f58ed(0x667))[_0x2f58ed(0x675)];}get[_0x5d5af0(0x345)](){const _0x4395e5=_0x5d5af0;return this['okdb'][_0x4395e5(0x7df)]&&this['_n'](_0x4395e5(0x3b6))?{}:null;}get[_0x5d5af0(0x7cf)](){const _0x58d118=_0x5d5af0;return this[_0x58d118(0x345)];}get[_0x5d5af0(0x183)](){const _0x179c10=_0x5d5af0;return this['_n']('nodeKeys')?.[_0x179c10(0x2a8)];}get['_nodePublicKey'](){const _0x4af08b=_0x5d5af0;return this['_n'](_0x4af08b(0x541))?.['publicKey'];}['info'](){const _0x1be064=_0x5d5af0;return this['_n'](_0x1be064(0x427));}['getSelfNode'](){const _0x2b01ec=_0x5d5af0;return this['_n'](_0x2b01ec(0x68e));}get[_0x5d5af0(0x65b)](){const _0x2b820=_0x5d5af0;return this['__peers']||(()=>this['_n'](_0x2b820(0x65b)));}set[_0x5d5af0(0x65b)](_0x4aa253){const _0x43d57a=_0x5d5af0;this[_0x43d57a(0x5e9)]=typeof _0x4aa253===_0x43d57a(0x5c4)?_0x4aa253:null,this['_n'](_0x43d57a(0x31f),[this['__peers']]);}['_listPeers'](){const _0x3270c8=_0x5d5af0;return this['_n'](_0x3270c8(0x63e));}async['reconcile'](){const _0x37cd5f=_0x5d5af0;return this[_0x37cd5f(0x581)]('reconcile');}async['reconcilePeer'](_0x28f2ab){const _0x37240a=_0x5d5af0;return this[_0x37240a(0x581)](_0x37240a(0x6fa),[_0x28f2ab]);}async[_0x5d5af0(0x291)](_0x45ced5,_0x3cd89d={}){const _0x2e8c7b=_0x5d5af0;return this[_0x2e8c7b(0x581)](_0x2e8c7b(0x273),[_0x45ced5,_0x3cd89d]);}[_0x5d5af0(0x584)](){return this['_n']('stop');}[_0x5d5af0(0x41b)](){const _0x37fabb=_0x5d5af0;return this['_n'](_0x37fabb(0x41b));}async[_0x5d5af0(0x21b)](_0x131c69,_0x5c82d6={}){const _0xa92a10=_0x5d5af0;return this['_n'](_0xa92a10(0x21b),[_0x131c69,_0x5c82d6],!![]);}async[_0x5d5af0(0x517)](_0x2eaddf){const _0x2bb02e=_0x5d5af0;return this['_n'](_0x2bb02e(0x517),[_0x2eaddf],!![]);}[_0x5d5af0(0x468)](_0x5b34e4){const _0x204fd8=_0x5d5af0;return this['_n'](_0x204fd8(0x589),[_0x5b34e4]);}[_0x5d5af0(0x28d)](_0x4a8c21){const _0x1596d9=_0x5d5af0;return this['_n'](_0x1596d9(0x5a9),[_0x4a8c21]);}async[_0x5d5af0(0x874)](_0x42a29a,_0x58af46,_0x183531={}){const _0x3039db=_0x5d5af0;return this['_n'](_0x3039db(0x43f),[_0x42a29a,_0x58af46,_0x183531]);}async[_0x5d5af0(0x656)](_0x237aad){return this['_n']('ensurePeerState',[_0x237aad]);}async['_ensure'](){const _0x21be05=_0x5d5af0;return this['_n'](_0x21be05(0x4c3),[],!![]);}async[_0x5d5af0(0x419)](_0x218bb9){return this['_n']('patchSelf',[_0x218bb9],!![]);}async['join'](_0x23135a,_0x27ad84={}){const _0x5d8c13=_0x5d5af0;return this[_0x5d8c13(0x581)](_0x5d8c13(0x486),[_0x23135a,_0x27ad84]);}async[_0x5d5af0(0x4b3)](_0x43b9af={},_0x543906={}){return void _0x43b9af['~system'],this['_n']('calculateDelta',[_0x43b9af,_0x543906]);}async['fetchPeer'](_0x4af620,_0x51a0dc,_0x2630f7,_0x2f238f){const _0x20f88b=_0x5d5af0;return this[_0x20f88b(0x581)]('fetchPeer',[_0x4af620,_0x51a0dc,_0x2630f7,_0x2f238f??null]);}async[_0x5d5af0(0x5ac)](_0x2e2a4e,_0x544c5b,_0x109043={}){const _0x5ca9af=_0x5d5af0;return this['_nm'](_0x5ca9af(0x5ac),[_0x2e2a4e,_0x544c5b,_0x109043]);}['_shouldApplyChange'](_0x464fb7,_0x2d0f8d=null){const _0x476ab7=_0x5d5af0;return this['_n'](_0x476ab7(0x225),[_0x464fb7,_0x2d0f8d?_0x2d0f8d['name']:null]);}[_0x5d5af0(0x7ec)](_0x42daff,_0x635b33=null){const _0x25b31a=_0x5d5af0;return this['_n'](_0x25b31a(0x7ec),[_0x42daff,_0x635b33?_0x635b33['name']:null],!![]);}}return sync={'OKDBSync':_0x4e5590},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x3118f2=_0x1c5fdf;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x445205}=requireErrors(),_0x150099=require$$0,_0x4aafb0=require$$4,_0x1533f4=0x40*0x400;async function _0x374c86(_0x311c9d,_0x4eb339){const _0x4ec28e=_0x20ac;for(let _0x11c0f4=0x0;_0x11c0f4<_0x4eb339[_0x4ec28e(0x2f6)];){let _0x28f836=Math[_0x4ec28e(0x3d2)](_0x4eb339[_0x4ec28e(0x2f6)],_0x11c0f4+_0x1533f4);if(_0x28f836<_0x4eb339['length']){const _0x5b173b=_0x4eb339[_0x4ec28e(0x374)](0xa,_0x28f836-0x1);_0x28f836=_0x5b173b===-0x1?_0x4eb339['length']:_0x5b173b+0x1;}const _0x19ff54=_0x311c9d[_0x4ec28e(0x5a6)](_0x4eb339[_0x4ec28e(0x289)](_0x11c0f4,_0x28f836));_0x11c0f4=_0x28f836;if(!_0x19ff54)await new Promise(_0x376af3=>_0x311c9d[_0x4ec28e(0x370)](_0x4ec28e(0x61a),_0x376af3));await new Promise(_0x2916e3=>setImmediate(_0x2916e3));}}async function _0x5053d6(_0x293732){const _0x5b4c54=_0x20ac,_0x1465a5=[];for await(const _0x596e88 of _0x293732)_0x1465a5[_0x5b4c54(0x3c0)](Buffer['isBuffer'](_0x596e88)?_0x596e88:Buffer[_0x5b4c54(0x6a7)](_0x596e88,_0x5b4c54(0x5bf)));return Buffer[_0x5b4c54(0x18e)](_0x1465a5);}class _0x477e3c{constructor(_0x14a242){const _0x1d6c65=_0x20ac;this[_0x1d6c65(0x263)]=_0x14a242;}['_n'](_0xb95583,_0x293423){const _0x4b84e8=_0x20ac;return this[_0x4b84e8(0x263)]['_call'](_0x4b84e8(0x666),null,_0xb95583,_0x293423,!![]);}async[_0x3118f2(0x63b)](_0x231c9e,_0x154176={}){const _0x63a6f0=_0x3118f2,{data:_0x751763,stats:_0x559722}=this['_n'](_0x63a6f0(0x610),[_0x154176]);return await _0x374c86(_0x231c9e,Buffer[_0x63a6f0(0x6a7)](_0x751763)),_0x559722;}async[_0x3118f2(0x5a5)](_0x3bc278,_0x109090={}){const _0x5e2f29=_0x3118f2;_0x150099[_0x5e2f29(0x335)](_0x4aafb0['dirname'](_0x3bc278),{'recursive':!![]});const _0x2f31b9=_0x150099[_0x5e2f29(0x48d)](_0x3bc278),_0x391b2c=await this['exportToStream'](_0x2f31b9,_0x109090);return await new Promise((_0x4a4c47,_0x129e10)=>{const _0x557448=_0x5e2f29;_0x2f31b9['end'](),_0x2f31b9[_0x557448(0x370)]('finish',_0x4a4c47),_0x2f31b9[_0x557448(0x370)](_0x557448(0x1f1),_0x129e10);}),{..._0x391b2c,'filePath':_0x3bc278};}async[_0x3118f2(0x2e1)](_0x57b3cc,_0x20e2ef={}){const _0x5b3ea5=_0x3118f2,{data:_0x31265c,stats:_0x41f750}=this['_n'](_0x5b3ea5(0x2d5),[_0x20e2ef]);return await _0x374c86(_0x57b3cc,Buffer[_0x5b3ea5(0x6a7)](_0x31265c)),_0x41f750;}async[_0x3118f2(0x5bd)](_0x17ef9b,_0x93a90e={}){const _0x4b9f92=_0x3118f2,_0x18e31b=await _0x5053d6(_0x17ef9b),{onProgress:_0x3f6421,..._0x119e80}=_0x93a90e,_0x2889a9=this['_n'](_0x4b9f92(0x339),[_0x18e31b,_0x119e80]);if(typeof _0x3f6421===_0x4b9f92(0x5c4))_0x3f6421({'type':null,'count':_0x2889a9[_0x4b9f92(0x4fc)]});return _0x2889a9;}async['importFromFile'](_0x4ed17f,_0x149cbd={}){const _0x1746a6=_0x3118f2;return this[_0x1746a6(0x5bd)](_0x150099['createReadStream'](_0x4ed17f,{'encoding':'utf8'}),_0x149cbd);}async[_0x3118f2(0x1d1)](_0x1ed346,_0x3c8339={}){const _0x5e66ec=_0x3118f2;return this['_n'](_0x5e66ec(0x1d1),[_0x1ed346,_0x3c8339]);}[_0x3118f2(0x47f)](){const _0x243ee8=_0x3118f2;return this['_n'](_0x243ee8(0x47f),[]);}[_0x3118f2(0x25f)](_0x2ae101){const _0xb0912a=_0x3118f2;return this['_n'](_0xb0912a(0x25f),[_0x2ae101??null]);}async[_0x3118f2(0x421)](_0x6aa5e9={}){const _0x2a16a6=_0x3118f2;return this['_n'](_0x2a16a6(0x421),[_0x6aa5e9]);}async[_0x3118f2(0x852)](_0x53e188,_0x256bd6={}){return this['_n']('import',[_0x53e188,_0x256bd6]);}async['exportJSON'](_0x213621){const {pretty:pretty=![]}=_0x445205(_0x213621);return JSON['stringify'](await this['export'](),null,pretty?0x2:0x0);}async['importJSON'](_0x2cf0b3){const _0x34d8c0=_0x3118f2;return this[_0x34d8c0(0x852)](JSON['parse'](_0x2cf0b3));}[_0x3118f2(0x428)](){const _0x535b10=_0x3118f2;if(!this['okdb'][_0x535b10(0x33b)][_0x535b10(0x4ff)](_0x535b10(0x3e4))?.[_0x535b10(0x3a1)])throw new Error(_0x535b10(0x2ac));}async[_0x3118f2(0x227)](_0x1c6bae){const _0x17d817=_0x3118f2;return this[_0x17d817(0x428)](),this['_n'](_0x17d817(0x227),[_0x1c6bae]);}async['importBlobs'](_0x535ab3){const _0x44037e=_0x3118f2;return this[_0x44037e(0x428)](),this['_n'](_0x44037e(0x8a7),[_0x535ab3]);}[_0x3118f2(0x435)](){const _0x331117=_0x3118f2;return this['_n']('envsWithFiles',[])['map'](_0x1f0f6e=>this['okdb'][_0x331117(0x81f)](_0x1f0f6e));}async[_0x3118f2(0x882)](){const _0x2320c4=_0x3118f2;return this[_0x2320c4(0x428)](),this['_n']('validateBlobIntegrity',[]);}async[_0x3118f2(0x3d3)](){const _0x47140a=_0x3118f2;return this[_0x47140a(0x428)](),this['_n'](_0x47140a(0x3d3),[]);}}return migrate={'OKDBMigrate':_0x477e3c},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x2c2c62=_0x1c5fdf;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x2bf8de{constructor(_0x2aff3a){const _0x70b89a=_0x20ac;this[_0x70b89a(0x263)]=_0x2aff3a,this[_0x70b89a(0x443)]=new Map();}['_n'](_0x4714b8,_0x49d852){const _0x13b7f9=_0x20ac;try{return this['okdb'][_0x13b7f9(0x7b0)]('mcp',null,_0x4714b8,_0x49d852,!![]);}catch(_0x257d44){if(_0x257d44&&_0x257d44[_0x13b7f9(0x22a)]===_0x13b7f9(0x22c)&&_0x257d44['details']){if(_0x257d44['details']['jsonrpcCode']!==undefined)_0x257d44[_0x13b7f9(0x56b)]=_0x257d44[_0x13b7f9(0x2f7)][_0x13b7f9(0x56b)];_0x257d44[_0x13b7f9(0x2f7)]=_0x257d44[_0x13b7f9(0x2f7)][_0x13b7f9(0x2f7)],_0x257d44[_0x13b7f9(0x22a)]=undefined;}throw _0x257d44;}}[_0x2c2c62(0x80c)](){return this['_n']('tools',[]);}async['_call'](_0x1a6a84,_0x3e1f9a={}){const _0x3d93a2=_0x2c2c62;return this['_n'](_0x3d93a2(0x765),[_0x1a6a84??null,_0x3e1f9a??{}]);}async['_handle'](_0x2fc591,_0x4815dd={}){return this['_n']('handle',[_0x2fc591,_0x4815dd??{}]);}[_0x2c2c62(0x4f3)](_0x2e00ef){const _0x44ba94=_0x2c2c62;return this['_n'](_0x44ba94(0x681),[_0x2e00ef??null]);}}return mcp={'OKDBMcp':_0x2bf8de},mcp;}var sys,hasRequiredSys;function _0x20ac(_0x517298,_0x11ea0d){_0x517298=_0x517298-0x175;const _0x28548e=_0x2854();let _0x20ac43=_0x28548e[_0x517298];return _0x20ac43;}function requireSys(){const _0x1122fb=_0x1c5fdf;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x50d7d3(_0x22d8d2,_0x450c7e,_0x5aa21d){const _0x2f5fee=_0x20ac,_0x2cf35c={};for(const [_0x51623d,_0x3720c2]of Object[_0x2f5fee(0x207)](_0x5aa21d)){_0x2cf35c[_0x51623d]=_0x3720c2===_0x2f5fee(0x3e5)?async(..._0x1de3be)=>_0x22d8d2[_0x2f5fee(0x7b0)](_0x450c7e,null,_0x51623d,_0x1de3be):(..._0x168b31)=>_0x22d8d2[_0x2f5fee(0x7b0)](_0x450c7e,null,_0x51623d,_0x168b31,![]);}return _0x2cf35c;}const _0x4f722b=['listTypes',_0x1122fb(0x20d),_0x1122fb(0x19f),_0x1122fb(0x52e),_0x1122fb(0x22f),_0x1122fb(0x1fc),'getIndexStatus',_0x1122fb(0x3f4),'describeIndexes',_0x1122fb(0x6f7),'indexStats',_0x1122fb(0x357),_0x1122fb(0x72f),'meta',_0x1122fb(0x3b9),'getIndexCount',_0x1122fb(0x3e6),_0x1122fb(0x86b),'explainIndex','recomputeFields',_0x1122fb(0x533)],_0x3523d1={'add':_0x1122fb(0x3e5),'activate':_0x1122fb(0x3e5),'remove':'async','list':_0x1122fb(0x838),'get':_0x1122fb(0x838),'effective':'sync'},_0x471554={'open':_0x1122fb(0x3e5),'register':_0x1122fb(0x3e5),'buildOwnRow':_0x1122fb(0x838),'_buildProcessingFacet':_0x1122fb(0x838),'reportThreadStats':_0x1122fb(0x838),'clearThreadStats':_0x1122fb(0x838),'emitProc':'sync','addSupervisedChild':_0x1122fb(0x3e5),'removeSupervisedChild':'sync','updateSupervisedChildStats':'sync','publishChildRow':_0x1122fb(0x3e5),'putNode':_0x1122fb(0x3e5),'removeNode':_0x1122fb(0x3e5),'nodeDead':_0x1122fb(0x838),'listNodes':_0x1122fb(0x838),'reap':_0x1122fb(0x3e5),'publishOwnRow':'async','deregisterSelf':_0x1122fb(0x3e5),'setOwnMeta':'sync','noteListenAddr':_0x1122fb(0x838),'hasDesired':_0x1122fb(0x838),'getDesired':_0x1122fb(0x838),'setDesired':_0x1122fb(0x3e5),'listDesired':'sync','getCmd':_0x1122fb(0x838),'bumpCmd':'async','processingStatusView':'sync','processorsView':'sync','clusterStatusView':_0x1122fb(0x838),'nodesView':'sync','treeView':_0x1122fb(0x838),'getProcess':_0x1122fb(0x838),'runtimeProcessesView':_0x1122fb(0x838)};function _0xb29c7d(_0x3d4a82){const _0x4f2eb0=_0x1122fb,_0x1505be={},_0x2e21d8=_0x186201=>_0x186201&&typeof _0x186201===_0x4f2eb0(0x86d)&&!Array[_0x4f2eb0(0x55b)](_0x186201)&&typeof _0x186201[_0x4f2eb0(0x80a)]===_0x4f2eb0(0x460)?_0x186201[_0x4f2eb0(0x80a)]:_0x186201;for(const _0x39b0da of _0x4f722b)_0x1505be[_0x39b0da]=_0x39b0da===_0x4f2eb0(0x4aa)?async(..._0x327cbb)=>_0x3d4a82[_0x4f2eb0(0x7b0)](_0x4f2eb0(0x29e),null,_0x39b0da,_0x327cbb[_0x4f2eb0(0x4ba)](_0x2e21d8),!![]):(..._0x49cffb)=>_0x3d4a82['_call']('meta',null,_0x39b0da,_0x49cffb['map'](_0x2e21d8),![]);return _0x1505be;}function _0x388252(_0xa8a897){const _0x1121f3=_0x1122fb,_0x137417=_0x50d7d3(_0xa8a897,_0x1121f3(0x30a),_0x3523d1);return _0x137417;}function _0x22631f(_0x24179a){const _0x30d011=_0x1122fb,_0x2ddb0f=()=>_0x24179a[_0x30d011(0x30a)][_0x30d011(0x7a3)](),_0x5696a5=_0xbf7d42=>_0xbf7d42[_0x30d011(0x5a1)]?{..._0xbf7d42,'_isFree':!![]}:_0xbf7d42;return{async 'addLicense'(_0x292c6d){const _0x35b972=_0x30d011;return _0x24179a[_0x35b972(0x30a)][_0x35b972(0x3cc)](_0x292c6d);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x4a3e99=_0x30d011,_0x182543=_0x2ddb0f();return _0x182543[_0x4a3e99(0x5a1)]?null:_0x182543;},get 'effective'(){return _0x5696a5(_0x2ddb0f());},'hasLimit'(_0x1b3aef){const _0x5c85ac=_0x2ddb0f();if(!_0x5c85ac['enforced'])return![];const _0x13d2aa=_0x5c85ac['limits']?.[_0x1b3aef];return!(_0x13d2aa===null||_0x13d2aa===undefined||_0x13d2aa===0x0);},'isFeatureEnabled'(_0x3cc620){const _0x3618a7=_0x30d011,_0x30ad80=_0x2ddb0f();return!_0x30ad80[_0x3618a7(0x6fb)]||!!_0x30ad80[_0x3618a7(0x5ea)]?.[_0x3cc620];},'assertFeature'(_0x2dc92c){const _0x305db1=_0x30d011,_0x5de730=_0x2ddb0f();if(!_0x5de730[_0x305db1(0x6fb)]||_0x5de730[_0x305db1(0x5ea)]?.[_0x2dc92c])return;const {OKDBError:_0x5c9446}=requireErrors(),_0x1466a8=_0x5de730[_0x305db1(0x5a1)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0x2dc92c+_0x305db1(0x4f2)+_0x2dc92c+_0x305db1(0x5cf):_0x305db1(0x751)+_0x2dc92c+_0x305db1(0x1b1)+_0x2dc92c+'\x22.';throw new _0x5c9446(_0x1466a8,_0x305db1(0x848),{'feature':_0x2dc92c});},'assertLimit'(_0x3a2f1c,_0x1f4a53){const _0x421389=_0x30d011,_0x336b6b=_0x2ddb0f();if(!_0x336b6b['enforced'])return;const _0x18bec5=_0x336b6b[_0x421389(0x593)]?.[_0x3a2f1c];if(_0x18bec5===null||_0x18bec5===undefined||_0x18bec5===0x0)return;if(_0x1f4a53>=_0x18bec5){const {OKDBError:_0x543c95}=requireErrors();throw new _0x543c95(_0x421389(0x6f0)+_0x3a2f1c+'\x20('+_0x1f4a53+'/'+_0x18bec5+')',_0x421389(0x429),{'limit':_0x3a2f1c,'current':_0x1f4a53,'max':_0x18bec5});}},'listLicenses'(){const _0x27440a=_0x30d011;return _0x24179a[_0x27440a(0x30a)][_0x27440a(0x690)]();},'getPins'(){const _0x2eaf6d=_0x30d011;return _0x24179a[_0x2eaf6d(0x30a)][_0x2eaf6d(0x690)]()[_0x2eaf6d(0x4ba)](_0x1fd721=>({'licenseId':_0x1fd721['id'],'pin':_0x1fd721[_0x2eaf6d(0x359)]===_0x2eaf6d(0x3ca)?null:_0x1fd721[_0x2eaf6d(0x1ee)]}));}};}function _0x412298(_0x3137d7){const _0x2657ab=_0x1122fb,_0x1be9c0=_0x50d7d3(_0x3137d7,_0x2657ab(0x4a5),_0x471554);Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x42b),{'get':()=>_0x3137d7[_0x2657ab(0x7b0)]('processes',null,_0x2657ab(0x42b),[],![])}),Object['defineProperty'](_0x1be9c0,_0x2657ab(0x326),{'get':()=>_0x3137d7['_call']('processes',null,_0x2657ab(0x326),[],![])}),_0x1be9c0[_0x2657ab(0x7e7)]=null;const _0x5ba3db=_0x1be9c0[_0x2657ab(0x767)];_0x1be9c0[_0x2657ab(0x767)]=_0x3ab61f=>{const _0x5c6da6=_0x2657ab;return _0x1be9c0[_0x5c6da6(0x7e7)]=_0x3ab61f,_0x5ba3db(_0x3ab61f);};const _0x54eec9=()=>_0x1be9c0['listNodes']()['map'](_0x21e039=>({'key':_0x21e039[_0x2657ab(0x73f)],'value':_0x21e039,'version':0x1})),_0x51f06a={'name':_0x2657ab(0x30e),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x25fbe5=>_0x25fbe5===_0x2657ab(0x19e),'getRange':_0x224990=>_0x224990===_0x2657ab(0x19e)?_0x54eec9()[Symbol[_0x2657ab(0x84c)]]():[][Symbol[_0x2657ab(0x84c)]](),'getKeys':_0x1b66f2=>_0x1b66f2==='node'?_0x54eec9()['map'](_0x58b186=>_0x58b186[_0x2657ab(0x7e4)])[Symbol[_0x2657ab(0x84c)]]():[][Symbol[_0x2657ab(0x84c)]](),'getValues':_0x6bd499=>_0x6bd499===_0x2657ab(0x19e)?_0x54eec9()[_0x2657ab(0x4ba)](_0x3876eb=>_0x3876eb[_0x2657ab(0x658)])[Symbol['iterator']]():[][Symbol[_0x2657ab(0x84c)]](),'get':(_0x2945db,_0x16f268)=>_0x2945db===_0x2657ab(0x19e)?_0x54eec9()[_0x2657ab(0x5a2)](_0x5814fd=>_0x5814fd[_0x2657ab(0x7e4)]===_0x16f268)?.[_0x2657ab(0x658)]:undefined,'getCount':_0x14172b=>_0x14172b===_0x2657ab(0x19e)?_0x54eec9()['length']:0x0};Object[_0x2657ab(0x834)](_0x1be9c0,'_statusEnv',{'get':()=>_0x3137d7['_call'](_0x2657ab(0x4a5),null,'statusOpen',[],![])?_0x51f06a:null});const _0x54bb1f=_0x1be9c0['open'];_0x1be9c0[_0x2657ab(0x3ca)]=async _0x10f922=>{const _0x371b42=_0x2657ab;return await _0x54bb1f(_0x10f922),_0x1be9c0[_0x371b42(0x187)];},_0x1be9c0[_0x2657ab(0x27a)]=()=>_0x3137d7[_0x2657ab(0x7b0)](_0x2657ab(0x4a5),null,'ensureDesired',[],!![]);const {RawDb:_0x25f1aa}=requireRawdb();return Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x211),{'get':()=>_0x3137d7[_0x2657ab(0x25d)]?_0x1be9c0[_0x2657ab(0x39c)]||=new _0x25f1aa(_0x3137d7[_0x2657ab(0x25d)],_0x2657ab(0x459)):undefined}),Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x845),{'get':()=>_0x3137d7['_systemEnv']?_0x1be9c0[_0x2657ab(0x54d)]||=new _0x25f1aa(_0x3137d7[_0x2657ab(0x25d)],_0x2657ab(0x678)):undefined}),_0x1be9c0[_0x2657ab(0x6d2)]=()=>_0x3137d7[_0x2657ab(0x7b0)]('processes',null,_0x2657ab(0x6d2),[],![]),Object[_0x2657ab(0x834)](_0x1be9c0,'_isWriter',{'get':()=>_0x3137d7[_0x2657ab(0x7b0)]('processes',null,_0x2657ab(0x4ec),[],![])}),Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x5d9),{'get':()=>_0x3137d7[_0x2657ab(0x7b0)](_0x2657ab(0x4a5),null,_0x2657ab(0x5fa),[],![])}),_0x1be9c0[_0x2657ab(0x895)]=()=>_0x3137d7['_call']('processes',null,_0x2657ab(0x20f),[],![]),_0x1be9c0['_emitProc']=(_0x12d08a,_0x8ecb5e)=>_0x3137d7['_call']('processes',null,_0x2657ab(0x7b3),[_0x12d08a,_0x8ecb5e],![]),_0x1be9c0;}return sys={'makeMeta':_0xb29c7d,'makeLicenses':_0x388252,'makeLicenseChecker':_0x22631f,'makeProcesses':_0x412298},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x2227bd=_0x1c5fdf;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0xfca594={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x337eeb{constructor(_0x2fbf09){const _0x4cedba=_0x20ac;this[_0x4cedba(0x263)]=_0x2fbf09,this[_0x4cedba(0x5c3)]=new Set(),this[_0x4cedba(0x69b)]={};}[_0x2227bd(0x4b0)](_0x2c794b){const _0x515394=_0x2227bd,_0x2a382b=new _0x337eeb(this[_0x515394(0x263)]);return _0x2a382b[_0x515394(0x5c3)]=this[_0x515394(0x5c3)],_0x2a382b[_0x515394(0x69b)]={...this[_0x515394(0x69b)],..._0x2c794b},_0x2a382b;}['attach'](_0x4b9072){const _0x2c693d=_0x2227bd;return this[_0x2c693d(0x5c3)]['add'](_0x4b9072),()=>this[_0x2c693d(0x5c3)]['delete'](_0x4b9072);}[_0x2227bd(0x590)](){const _0x5026bc=_0x2227bd,_0x2a8593=_0xfca594[process.env.OKDB_LOG_LEVEL]??_0xfca594[_0x5026bc(0x427)];return this[_0x5026bc(0x504)]=this['attach'](({level:_0x14ec90,msg:_0x3b857f,meta:_0x301462,context:_0xb3bdcb,ts:_0x53fe99})=>{const _0x39a9b2=_0x5026bc;if((_0xfca594[_0x14ec90]??_0xfca594[_0x39a9b2(0x427)])<_0x2a8593)return;if(_0x301462?.['feature']===_0x39a9b2(0x2fd)&&(_0x14ec90===_0x39a9b2(0x427)||_0x14ec90===_0x39a9b2(0x36c)))return;const _0x1f0169=_0x14ec90===_0x39a9b2(0x1f1)?console[_0x39a9b2(0x1f1)]:_0x14ec90===_0x39a9b2(0x1ed)?console[_0x39a9b2(0x1ed)]:_0x14ec90===_0x39a9b2(0x427)?console[_0x39a9b2(0x427)]:console[_0x39a9b2(0x3de)],_0x1effb1=_0x301462&&Object[_0x39a9b2(0x542)](_0x301462)[_0x39a9b2(0x2f6)]>0x0;_0x1effb1||_0xb3bdcb!==undefined?_0x1f0169(new Date(_0x53fe99)[_0x39a9b2(0x736)](),_0x3b857f,..._0x1effb1?[_0x301462]:[],..._0xb3bdcb!==undefined?[_0xb3bdcb]:[]):_0x1f0169(new Date(_0x53fe99)[_0x39a9b2(0x736)](),_0x3b857f);}),this[_0x5026bc(0x504)];}[_0x2227bd(0x4df)](){const _0x51e6a7=_0x2227bd;this[_0x51e6a7(0x504)]&&(this['_detachConsole'](),this[_0x51e6a7(0x504)]=null);}[_0x2227bd(0x221)](_0x224df6,_0x46dba0){const _0x18bfaa=require$$0$4,_0x3759f7=0x1f4,_0x21b593=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x40be9c=[],_0x164cc5=0x0,_0x204005=null;const _0x22c77d=()=>{const _0x16acce=_0x20ac;_0x204005=null;if(_0x40be9c[_0x16acce(0x2f6)]===0x0)return;const _0x2b415c=_0x40be9c;_0x40be9c=[],_0x164cc5>0x0&&(_0x2b415c[_0x16acce(0x3c0)]({'ts':Date[_0x16acce(0x785)](),'level':_0x16acce(0x1ed),'msg':_0x16acce(0x1c0)+_0x164cc5+_0x16acce(0x3a7)+(_0x164cc5===0x1?'y':_0x16acce(0x383))+_0x16acce(0x5f8),'feature':_0x16acce(0x3de),'node':_0x46dba0,'context':null}),_0x164cc5=0x0),_0x224df6['txn'](_0x3a18c2=>{const _0x4b7531=_0x16acce;for(const _0x31e9b3 of _0x2b415c)_0x3a18c2['put'](_0x4b7531(0x2f5),_0x18bfaa['randomUUID'](),_0x31e9b3);})[_0x16acce(0x62c)](()=>{});},_0x4853fa=this['attach'](({level:_0x115979,msg:_0x121643,meta:_0x31f5bc,context:_0xbc019a,ts:_0x1b1211})=>{const _0x105faf=_0x20ac;if(_0x115979===_0x105faf(0x36c))return;_0x40be9c[_0x105faf(0x2f6)]>=_0x3759f7&&(_0x164cc5++,_0x40be9c[_0x105faf(0x4eb)]()),_0x40be9c['push']({'ts':_0x1b1211,'level':_0x115979,'msg':_0x121643,'feature':_0x31f5bc?.['feature']??_0x31f5bc?.['module']??null,'node':_0x46dba0,'context':_0xbc019a??null}),!_0x204005&&(_0x204005=setTimeout(_0x22c77d,_0x21b593),_0x204005[_0x105faf(0x54c)]?.());});return()=>{_0x4853fa();if(_0x204005)clearTimeout(_0x204005);_0x22c77d();};}[_0x2227bd(0x1c8)](_0x1fd6d4,_0x18bca7,_0x456f74){const _0x35eb41=_0x2227bd;_0x18bca7 instanceof Error&&(_0x456f74={'message':_0x18bca7[_0x35eb41(0x5e1)],'stack':_0x18bca7['stack'],..._0x456f74},_0x18bca7=_0x18bca7[_0x35eb41(0x5e1)]);const _0x6405b0={'level':_0x1fd6d4,'msg':_0x18bca7,'meta':{...this[_0x35eb41(0x69b)]},'context':_0x456f74,'ts':Date[_0x35eb41(0x785)]()};try{this[_0x35eb41(0x263)]['events']['emit']('log',_0x6405b0);}catch{}for(const _0x560f64 of this[_0x35eb41(0x5c3)]){try{_0x560f64(_0x6405b0);}catch{}}}[_0x2227bd(0x31b)](_0x4f383b){const _0x2bd5b4=_0x2227bd;try{this[_0x2bd5b4(0x263)]?.['events']?.['emit']('log',_0x4f383b);}catch{}for(const _0x5c7139 of this[_0x2bd5b4(0x5c3)]){try{_0x5c7139(_0x4f383b);}catch{}}}[_0x2227bd(0x427)](_0x4cbf9d,_0x4c2a44){const _0x8659aa=_0x2227bd;this[_0x8659aa(0x1c8)](_0x8659aa(0x427),_0x4cbf9d,_0x4c2a44);}[_0x2227bd(0x1ed)](_0x310146,_0x2176ef){const _0xc5f3b1=_0x2227bd;this[_0xc5f3b1(0x1c8)](_0xc5f3b1(0x1ed),_0x310146,_0x2176ef);}['error'](_0x16ba1d,_0x4961e5){const _0x4cf984=_0x2227bd;this[_0x4cf984(0x1c8)](_0x4cf984(0x1f1),_0x16ba1d,_0x4961e5);}['debug'](_0x194852,_0x50950f){const _0x403788=_0x2227bd;this['_emit'](_0x403788(0x36c),_0x194852,_0x50950f);}}return okdbLogger=_0x337eeb,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0xe56fce=_0x1c5fdf;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x15e981}=requireOkdbEnums(),{OKDBError:_0x557f55}=requireOkdbError();class _0x5e22c8{constructor(_0x36a46a){const _0x1181ae=_0x20ac;this[_0x1181ae(0x263)]=_0x36a46a,this[_0x1181ae(0x446)]=[];}['register'](_0x423c2e,_0x1ef732){const _0x48b6a0=_0x20ac;if(this[_0x48b6a0(0x263)]['state']!==_0x15e981[_0x48b6a0(0x2ec)])throw new _0x557f55(_0x48b6a0(0x77d),_0x48b6a0(0x87e),{'state':this[_0x48b6a0(0x263)][_0x48b6a0(0x827)]});if(!_0x423c2e[_0x48b6a0(0x80a)])throw new _0x557f55(_0x48b6a0(0x2fc),'BAD_PLUGIN',{'plugin':_0x423c2e['name']});const _0x2cdcc0=_0x423c2e[_0x48b6a0(0x45b)]??[];for(const _0x52640c of _0x2cdcc0){if(!this['_plugins'][_0x48b6a0(0x7ce)](_0x3bb1d=>_0x3bb1d[_0x48b6a0(0x522)][_0x48b6a0(0x80a)]===_0x52640c))throw new _0x557f55(_0x48b6a0(0x830)+_0x52640c+_0x48b6a0(0x746)+_0x423c2e[_0x48b6a0(0x80a)]+')',_0x48b6a0(0x4e1),{'required':_0x52640c});}if(this[_0x48b6a0(0x446)][_0x48b6a0(0x5a2)](_0x4ad630=>_0x4ad630[_0x48b6a0(0x522)]['name']===_0x423c2e[_0x48b6a0(0x80a)]))throw new _0x557f55(_0x48b6a0(0x450)+_0x423c2e[_0x48b6a0(0x80a)]+'\x27\x20already\x20registered',_0x48b6a0(0x1ad),{'plugin':_0x423c2e[_0x48b6a0(0x80a)]});if(_0x423c2e[_0x48b6a0(0x80a)]in this[_0x48b6a0(0x263)])throw new _0x557f55('Plugin\x20name\x20\x27'+_0x423c2e['name']+_0x48b6a0(0x812),_0x48b6a0(0x330));const _0x1f7b12=_0x423c2e['register'](this[_0x48b6a0(0x263)],_0x1ef732);if(!_0x1f7b12||typeof _0x1f7b12!=='object')throw new _0x557f55(_0x48b6a0(0x450)+_0x423c2e[_0x48b6a0(0x80a)]+_0x48b6a0(0x733),_0x48b6a0(0x646),{'plugin':_0x423c2e[_0x48b6a0(0x80a)]});this[_0x48b6a0(0x446)]['push']({'module':_0x423c2e,'options':_0x1ef732,'instance':_0x1f7b12});}[_0xe56fce(0x17f)]=[];async[_0xe56fce(0x84e)](){const _0x585bcc=_0xe56fce;try{for(const _0x454b6e of this[_0x585bcc(0x446)]){await _0x454b6e[_0x585bcc(0x7b2)][_0x585bcc(0x84e)]?.(this['okdb']),this[_0x585bcc(0x17f)]['push'](_0x454b6e);}}catch(_0x39a3f8){await this[_0x585bcc(0x584)]()[_0x585bcc(0x62c)](()=>{});throw _0x39a3f8;}}async[_0xe56fce(0x584)](){const _0x4579e6=_0xe56fce,_0x4f01a1=this[_0x4579e6(0x17f)][_0x4579e6(0x2be)]();this['_started']=[];let _0x1423d6=null;for(const _0x1b05a0 of _0x4f01a1){try{await _0x1b05a0[_0x4579e6(0x7b2)][_0x4579e6(0x584)]?.(this[_0x4579e6(0x263)]);}catch(_0x30268d){_0x1423d6??=_0x30268d;}}if(_0x1423d6)throw _0x1423d6;}}return okdbPlugins=_0x5e22c8,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x160ad5=_0x1c5fdf;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x3effab={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x160ad5(0x49f)},_0x3675b5=new Set([_0x160ad5(0x628),'pageSize','compression',_0x160ad5(0x6b5),_0x160ad5(0x58f),_0x160ad5(0x64d),'durability',_0x160ad5(0x63c),_0x160ad5(0x2de),_0x160ad5(0x712),_0x160ad5(0x838),_0x160ad5(0x44d),_0x160ad5(0x2fd),_0x160ad5(0x579),_0x160ad5(0x2f0),_0x160ad5(0x258),'log',_0x160ad5(0x1b5),_0x160ad5(0x19c),_0x160ad5(0x41f),_0x160ad5(0x66b),_0x160ad5(0x867),_0x160ad5(0x4a5),_0x160ad5(0x378),_0x160ad5(0x68c),_0x160ad5(0x507),_0x160ad5(0x497),_0x160ad5(0x36c),_0x160ad5(0x784),_0x160ad5(0x1d1)]),_0x45dd95={'http':_0x160ad5(0x7e8)};return statics={'defaults':_0x3effab,'KNOWN_OPTIONS':_0x3675b5,'_OPTION_HINTS':_0x45dd95},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x337703=_0x1c5fdf;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0xd8846=require$$0$2,_0xa9a494=_0x337703(0x4d3),_0x2ec847=_0xd8846[_0x337703(0x4e9)](_0x337703(0x50a))[_0x337703(0x3dc)](_0xd8846[_0x337703(0x2f3)](_0xa9a494)['export']({'type':_0x337703(0x780),'format':'der'}))[_0x337703(0x50b)]('hex')[_0x337703(0x5d1)](0x0,0x10),_0x585d27={'LICENSED_BUILD':_0x337703(0x26b),'PUBLIC_KEY_PEM':_0xa9a494,'PUB_FINGERPRINT':_0x2ec847,'LICENSE_EXPIRED_ACTION':_0x337703(0x3de)};return licenseConfig={'_C':_0x585d27,'PUBLIC_KEY_PEM':_0xa9a494,'PUB_FINGERPRINT':_0x2ec847},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0xef25a2=_0x1c5fdf;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x4970a2=require$$0$5,{OKDBError:_0x17669b}=requireOkdbError(),_0x2f3397=['$eq',_0xef25a2(0x6e6),_0xef25a2(0x6de),_0xef25a2(0x6aa),'$lt',_0xef25a2(0x1ce),_0xef25a2(0x7d8),'$nin',_0xef25a2(0x3ed),_0xef25a2(0x502),_0xef25a2(0x875),_0xef25a2(0x31e),_0xef25a2(0x53e),'$all',_0xef25a2(0x865),'$elemMatch',_0xef25a2(0x569),_0xef25a2(0x57a),_0xef25a2(0x6c7),_0xef25a2(0x524)],_0x1f31d8=[_0xef25a2(0x886)];function _0x5f5dc9(_0x1da5a6){return()=>{const _0x17197b=_0x20ac,_0x58bce3=new _0x17669b(_0x17197b(0x8ac)+_0x1da5a6+_0x17197b(0x633),_0x17197b(0x426),{'operator':_0x1da5a6});_0x58bce3[_0x17197b(0x392)]=0x190;throw _0x58bce3;};}const _0x4d1720=Object['freeze']({...Object[_0xef25a2(0x20b)](_0x2f3397[_0xef25a2(0x4ba)](_0x3e153c=>[_0x3e153c,_0x4970a2[_0x3e153c]])),...Object[_0xef25a2(0x20b)](_0x1f31d8[_0xef25a2(0x4ba)](_0x32945b=>[_0x32945b,_0x5f5dc9(_0x32945b)]))});function _0x2aa615(_0x362d64){const _0x301082=_0xef25a2;return _0x4970a2[_0x301082(0x358)](_0x362d64,{'operations':_0x4d1720});}function _0x44e62a(_0x5121fb){const _0x1cb034=_0xef25a2;if(_0x5121fb==null)return;try{_0x2aa615(_0x5121fb);}catch(_0x176939){if(_0x176939?.[_0x1cb034(0x22a)]===_0x1cb034(0x426))throw _0x176939;}}return okdbQueryFilter={'compileFilter':_0x2aa615,'assertFilterAllowed':_0x44e62a,'ALLOWED_OPERATORS':_0x2f3397,'FORBIDDEN_OPERATORS':_0x1f31d8},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x50864b=_0x1c5fdf;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x20199a,EVENTS:_0x4ed1db}=requireOkdbEnums(),{OKDBError:_0x8902a4,OKDBForeignKeyDeleteError:_0xd389}=requireOkdbError(),_0xa20bf1=_0x50864b(0x850),_0x367266=new Set([_0x50864b(0x3f7),'cascade','set_null','restrict']);function _0x54736d(_0x2c8226,_0x39687d){if(_0x2c8226==null||!_0x39687d)return undefined;const _0xf85c19=_0x39687d['split']('.');let _0x1d7809=_0x2c8226;for(const _0x2b17b4 of _0xf85c19){if(_0x1d7809==null||typeof _0x1d7809!=='object'||!(_0x2b17b4 in _0x1d7809))return undefined;_0x1d7809=_0x1d7809[_0x2b17b4];}return _0x1d7809;}function _0x202313(_0x34bd80,_0x2449b4,_0x3b9f90){const _0x159997=_0x50864b,_0x5a5450=_0x2449b4['split']('.'),_0xad0f9f={..._0x34bd80};let _0x4a075b=_0xad0f9f;for(let _0x5cd576=0x0;_0x5cd576<_0x5a5450['length']-0x1;_0x5cd576++){_0x4a075b[_0x5a5450[_0x5cd576]]=_0x4a075b[_0x5a5450[_0x5cd576]]!=null?{..._0x4a075b[_0x5a5450[_0x5cd576]]}:{},_0x4a075b=_0x4a075b[_0x5a5450[_0x5cd576]];}return _0x4a075b[_0x5a5450[_0x5a5450[_0x159997(0x2f6)]-0x1]]=_0x3b9f90,_0xad0f9f;}function _0x167a51(_0x5b1da9,_0x1c89d2,_0x8f7541,_0xb2894c,_0x4d28af){return[_0x5b1da9,_0x1c89d2,_0x8f7541,_0xb2894c,_0x4d28af];}function _0x2dbf8d(_0x2cc2d9){const _0x11b826=_0x50864b;return typeof _0x2cc2d9===_0x11b826(0x460)||typeof _0x2cc2d9===_0x11b826(0x46d);}function _0x2e45d5(_0x478608,_0x1c44d0){const _0x4a22d6=_0x50864b;return JSON[_0x4a22d6(0x34d)]([_0x478608,_0x1c44d0]);}function*_0x4d6692(_0x2dd5f6,_0x47a4eb,_0x242da5){const _0x5d43fc=_0x50864b,_0x2ffeb1=_0x242da5!==undefined;for(const {key:_0x3f2c9b}of _0x2dd5f6[_0x5d43fc(0x655)]({'start':_0x2ffeb1?[_0x47a4eb,_0x242da5]:[_0x47a4eb]})){if(!Array['isArray'](_0x3f2c9b))continue;if(_0x3f2c9b[0x0]!==_0x47a4eb||_0x2ffeb1&&_0x3f2c9b[0x1]!==_0x242da5)break;yield _0x3f2c9b;}}function _0x138550(_0x5d9b5d,_0x529637='',_0x213723=null){const _0x4d7729=_0x50864b,_0xe2699f=[];if(!_0x5d9b5d||typeof _0x5d9b5d!=='object')return _0xe2699f;if(!_0x213723)_0x213723=_0x5d9b5d;if(_0x5d9b5d['$ref']){const _0x2cab93=_0x5d9b5d[_0x4d7729(0x71a)][_0x4d7729(0x6fc)](/^#\/\$defs\/(.+)$/);if(_0x2cab93&&_0x213723?.['$defs']?.[_0x2cab93[0x1]])return _0x138550(_0x213723[_0x4d7729(0x7eb)][_0x2cab93[0x1]],_0x529637,_0x213723);return _0xe2699f;}if(_0x5d9b5d[_0x4d7729(0x56d)]&&typeof _0x5d9b5d[_0x4d7729(0x56d)]==='object'&&_0x5d9b5d[_0x4d7729(0x56d)][_0x4d7729(0x359)]){const _0x5701a0=_0x5d9b5d[_0x4d7729(0x56d)][_0x4d7729(0x34f)]||'no_action';if(!_0x367266[_0x4d7729(0x868)](_0x5701a0))throw new _0x8902a4(_0x4d7729(0x779)+_0x5701a0+_0x4d7729(0x6f6)+(_0x529637||_0x4d7729(0x71b))+_0x4d7729(0x2c0)+[..._0x367266][_0x4d7729(0x486)](',\x20'),'INVALID_SCHEMA');_0xe2699f[_0x4d7729(0x3c0)]({'fieldPath':_0x529637,'targetType':_0x5d9b5d[_0x4d7729(0x56d)][_0x4d7729(0x359)],'onDelete':_0x5701a0});}if(_0x5d9b5d[_0x4d7729(0x295)])for(const [_0x154dda,_0x434d19]of Object['entries'](_0x5d9b5d['properties'])){const _0x2a6999=_0x529637?_0x529637+'.'+_0x154dda:_0x154dda;_0xe2699f['push'](..._0x138550(_0x434d19,_0x2a6999,_0x213723));}return _0xe2699f;}function _0x2e6bcf(_0x3f63ef){const _0x381d27=_0x50864b,_0x453122=new Map(),_0x559e20=new Map();for(const _0x156cb8 of _0x3f63ef['_typeKeys']()){if(_0x156cb8[_0x381d27(0x245)]('~'))continue;const _0x5b8494=_0x3f63ef[_0x381d27(0x3c8)][_0x381d27(0x4ff)](_0x156cb8);if(!_0x5b8494?.[_0x381d27(0x545)]?.[_0x381d27(0x6b7)])continue;let _0x4b95ab;try{_0x4b95ab=_0x138550(_0x5b8494['schema'][_0x381d27(0x6b7)]);}catch{continue;}if(_0x4b95ab[_0x381d27(0x2f6)]>0x0){_0x453122['set'](_0x156cb8,_0x4b95ab);for(const _0x1ee255 of _0x4b95ab){if(!_0x559e20[_0x381d27(0x868)](_0x1ee255[_0x381d27(0x6da)]))_0x559e20['set'](_0x1ee255[_0x381d27(0x6da)],[]);_0x559e20[_0x381d27(0x4ff)](_0x1ee255[_0x381d27(0x6da)])['push']({'sourceType':_0x156cb8,'fieldPath':_0x1ee255[_0x381d27(0x5d6)],'onDelete':_0x1ee255[_0x381d27(0x34f)]});}}}_0x3f63ef[_0x381d27(0x351)]={'outgoing':_0x453122,'incoming':_0x559e20};if(_0x453122['size']>0x0)_0x3375df(_0x3f63ef);}function _0x17a1f0(_0x5e3682,_0x567df0){const _0x5d8ed6=_0x50864b;return _0x5e3682[_0x5d8ed6(0x351)][_0x5d8ed6(0x693)][_0x5d8ed6(0x4ff)](_0x567df0)||[];}function _0x353e5e(_0x181831,_0x4e67ef){const _0x1a7d79=_0x50864b;return _0x181831[_0x1a7d79(0x351)]['incoming'][_0x1a7d79(0x4ff)](_0x4e67ef)||[];}function _0x3375df(_0x21e6dd){const _0x1f0e6e=_0x50864b;if(_0x21e6dd[_0x1f0e6e(0x432)])return _0x21e6dd[_0x1f0e6e(0x432)];return _0x21e6dd[_0x1f0e6e(0x432)]=_0x21e6dd['db'][_0x1f0e6e(0x1bd)]('__ref_index',{'dupSort':![]}),_0x21e6dd[_0x1f0e6e(0x432)];}function _0x13dcae(_0x3cfa04,_0x4bdf95,_0x3b3eb9,_0x336b2f,_0x310456){const _0x20a6e7=_0x50864b,_0x2b7713=_0x17a1f0(_0x3cfa04,_0x4bdf95);if(_0x2b7713[_0x20a6e7(0x2f6)]===0x0)return;const _0x2a5a28=_0x3375df(_0x3cfa04);for(const _0x5515db of _0x2b7713){const _0x19a199=_0x310456!=null?_0x54736d(_0x310456,_0x5515db[_0x20a6e7(0x5d6)]):undefined,_0x322f49=_0x336b2f!=null?_0x54736d(_0x336b2f,_0x5515db[_0x20a6e7(0x5d6)]):undefined;if(_0x19a199===_0x322f49)continue;_0x2dbf8d(_0x19a199)&&_0x2a5a28[_0x20a6e7(0x858)](_0x167a51(_0x5515db[_0x20a6e7(0x6da)],_0x19a199,_0x4bdf95,_0x3b3eb9,_0x5515db[_0x20a6e7(0x5d6)])),_0x2dbf8d(_0x322f49)&&_0x2a5a28[_0x20a6e7(0x5d4)](_0x167a51(_0x5515db[_0x20a6e7(0x6da)],_0x322f49,_0x4bdf95,_0x3b3eb9,_0x5515db[_0x20a6e7(0x5d6)]),0x1);}}function _0x4ea085(_0x4efd64,_0x4ca7b8,_0x10c2e2,_0x40d2aa){const _0x305cd8=_0x50864b,_0x42f085=_0x17a1f0(_0x4efd64,_0x4ca7b8);if(_0x42f085[_0x305cd8(0x2f6)]===0x0)return;const _0x2d410c=_0x3375df(_0x4efd64);for(const _0x3d317b of _0x42f085){const _0x232005=_0x40d2aa!=null?_0x54736d(_0x40d2aa,_0x3d317b[_0x305cd8(0x5d6)]):undefined;_0x2dbf8d(_0x232005)&&_0x2d410c[_0x305cd8(0x858)](_0x167a51(_0x3d317b[_0x305cd8(0x6da)],_0x232005,_0x4ca7b8,_0x10c2e2,_0x3d317b['fieldPath']));}}function _0x17e7cb(_0x455401,_0x578341,_0x17e1ce,_0x479648){const _0x372527=_0x50864b,_0x53dc01=_0x17a1f0(_0x455401,_0x578341);if(_0x53dc01[_0x372527(0x2f6)]===0x0)return[];const _0x32a238=[];for(const _0x1d44d2 of _0x53dc01){const _0x2c5820=_0x54736d(_0x479648,_0x1d44d2[_0x372527(0x5d6)]);if(_0x2c5820==null)continue;if(!_0x455401[_0x372527(0x637)](_0x1d44d2[_0x372527(0x6da)])){_0x32a238[_0x372527(0x3c0)]({'fieldPath':_0x1d44d2[_0x372527(0x5d6)],'targetType':_0x1d44d2[_0x372527(0x6da)],'targetKey':_0x2c5820,'message':_0x372527(0x650)+_0x1d44d2[_0x372527(0x6da)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x2ff9cf=_0x455401[_0x372527(0x2d4)](_0x1d44d2[_0x372527(0x6da)])[_0x372527(0x441)];!_0x2ff9cf[_0x372527(0x8a8)](_0x2c5820)&&_0x32a238[_0x372527(0x3c0)]({'fieldPath':_0x1d44d2[_0x372527(0x5d6)],'targetType':_0x1d44d2[_0x372527(0x6da)],'targetKey':_0x2c5820,'message':_0x372527(0x4f0)+_0x2c5820+_0x372527(0x855)+_0x1d44d2['targetType']+'\x27'});}return _0x32a238;}function _0x285f33(_0x445594,_0x26d9cf,_0x12d245,_0xe64eb3,_0x18a343,{timestamp:_0x517bd5,origin:_0x52fb85,_cascadeVisited:_0x46f97f}){const _0xaad149=_0x50864b,_0x240536=_0x353e5e(_0x445594,_0x12d245);if(_0x240536[_0xaad149(0x2f6)]===0x0)return;const _0x3d6d6=_0x3375df(_0x445594),_0x1ada68=[];for(const [,,_0xa4a01e,_0x315a7f,_0x5e6e25]of _0x4d6692(_0x3d6d6,_0x12d245,_0xe64eb3)){_0x1ada68[_0xaad149(0x3c0)]({'sourceType':_0xa4a01e,'sourceKey':_0x315a7f,'fieldPath':_0x5e6e25});}if(_0x1ada68['length']===0x0)return;for(const _0x35c4f5 of _0x1ada68){const _0x22ecf6=_0x240536[_0xaad149(0x5a2)](_0x497b05=>_0x497b05[_0xaad149(0x203)]===_0x35c4f5[_0xaad149(0x203)]&&_0x497b05['fieldPath']===_0x35c4f5['fieldPath']),_0x33566c=_0x22ecf6?.[_0xaad149(0x34f)]||_0xaad149(0x3f7);switch(_0x33566c){case'restrict':{if(_0x52fb85===null)throw new _0xd389(_0x12d245,_0xe64eb3,_0x1ada68[_0xaad149(0x7f8)](_0x1c4808=>{const _0x1cfd04=_0xaad149,_0x17e24f=_0x240536[_0x1cfd04(0x5a2)](_0xc3df21=>_0xc3df21[_0x1cfd04(0x203)]===_0x1c4808[_0x1cfd04(0x203)]&&_0xc3df21[_0x1cfd04(0x5d6)]===_0x1c4808[_0x1cfd04(0x5d6)]);return(_0x17e24f?.[_0x1cfd04(0x34f)]||_0x1cfd04(0x3f7))===_0x1cfd04(0x3c4);}));break;}case'cascade':{const _0x3b3595=_0x2e45d5(_0x35c4f5['sourceType'],_0x35c4f5[_0xaad149(0x7f2)]);if(_0x46f97f[_0xaad149(0x868)](_0x3b3595))continue;_0x445594['_getType'](_0x35c4f5[_0xaad149(0x203)])['data'][_0xaad149(0x8a8)](_0x35c4f5[_0xaad149(0x7f2)])&&_0x445594[_0xaad149(0x5b7)](_0x26d9cf,_0x35c4f5['sourceType'],_0x35c4f5['sourceKey'],{'timestamp':_0x517bd5,'origin':_0x52fb85,'_cascadeVisited':_0x46f97f});break;}case'set_null':{const _0x2bbb3f=_0x445594[_0xaad149(0x2d4)](_0x35c4f5['sourceType'])[_0xaad149(0x441)],_0x3f92dc=_0x2bbb3f[_0xaad149(0x7f9)](_0x35c4f5[_0xaad149(0x7f2)]);if(_0x3f92dc){const _0x2bb593=_0x202313(_0x3f92dc[_0xaad149(0x658)],_0x35c4f5[_0xaad149(0x5d6)],null);_0x445594[_0xaad149(0x56c)](_0x26d9cf,_0xaad149(0x77c),_0x35c4f5['sourceType'],_0x35c4f5['sourceKey'],_0x2bb593,{'timestamp':_0x517bd5,'origin':_0x52fb85,'_cascading':!![]});}break;}}}}function _0x2e4cb3(_0x158dcd){const _0x4dbbdb=_0x50864b;!_0x158dcd['hasType'](_0xa20bf1)&&_0x158dcd[_0x4dbbdb(0x6db)](_0xa20bf1);}function _0x106577(_0x23cf6e,_0x11db0e,_0x2a107b,_0x288335,_0x42b39b,_0x53225c,_0x1d3efb,{timestamp:timestamp=Date[_0x50864b(0x785)](),origin:origin=null}={}){const _0x47a024=_0x50864b;_0x2e4cb3(_0x23cf6e);const _0x14eada=_0x2a107b+'@'+_0x288335+'@'+_0x42b39b,_0x2da27f={'sourceType':_0x2a107b,'sourceKey':_0x288335,'fieldPath':_0x42b39b,'targetType':_0x53225c,'targetKey':_0x1d3efb,'timestamp':timestamp,'origin':origin},_0x462682=_0x23cf6e[_0x47a024(0x2d4)](_0xa20bf1)['data'],_0x4603ee=_0x462682[_0x47a024(0x7f9)](_0x14eada),_0x1c2d83=_0x4603ee?_0x4603ee[_0x47a024(0x75b)]+0x1:0x1;_0x462682[_0x47a024(0x5d4)](_0x14eada,_0x2da27f,_0x1c2d83),_0x23cf6e[_0x47a024(0x817)]({'id':_0x47a024(0x33d)+_0xa20bf1+'@'+_0x14eada,'type':_0xa20bf1,'key':_0x14eada,'action':_0x20199a[_0x47a024(0x29b)],'timestamp':timestamp,'txnId':_0x11db0e?.['id'],'origin':origin},_0x4603ee?.['value'],_0x2da27f),_0x23cf6e[_0x47a024(0x230)][_0x47a024(0x380)](_0x4ed1db[_0x47a024(0x853)],{'sourceType':_0x2a107b,'sourceKey':_0x288335,'fieldPath':_0x42b39b,'targetType':_0x53225c,'targetKey':_0x1d3efb,'env':_0x23cf6e[_0x47a024(0x80a)]});}function _0x3ac61d(_0xc01ae3,_0x192f77,_0x490330,_0x59330a,_0x5438f5,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x1b7e8e=_0x50864b;if(!_0xc01ae3['hasType'](_0xa20bf1))return;const _0x5098c1=_0x490330+'@'+_0x59330a+'@'+_0x5438f5,_0x1d363a=_0xc01ae3['_getType'](_0xa20bf1)[_0x1b7e8e(0x441)],_0x1fa3f2=_0x1d363a[_0x1b7e8e(0x7f9)](_0x5098c1);if(!_0x1fa3f2)return;_0x1d363a['removeSync'](_0x5098c1),_0xc01ae3['_logChange']({'id':_0x1b7e8e(0x33d)+_0xa20bf1+'@'+_0x5098c1,'type':_0xa20bf1,'key':_0x5098c1,'action':_0x20199a[_0x1b7e8e(0x2c8)],'timestamp':timestamp,'txnId':_0x192f77?.['id'],'origin':origin},_0x1fa3f2['value'],undefined),_0xc01ae3[_0x1b7e8e(0x230)][_0x1b7e8e(0x380)](_0x4ed1db['REF_VIOLATION_RESOLVED'],{'sourceType':_0x490330,'sourceKey':_0x59330a,'fieldPath':_0x5438f5,'env':_0xc01ae3[_0x1b7e8e(0x80a)]});}function _0xf65995(_0x3c9a9d,_0x1c4bf4,_0x2c499a,_0x414d70,_0x375e98={}){const _0x23cdaf=_0x50864b;if(!_0x3c9a9d[_0x23cdaf(0x637)](_0xa20bf1))return;const _0x6acbd8=_0x3c9a9d[_0x23cdaf(0x2d4)](_0xa20bf1)[_0x23cdaf(0x441)],_0x14abd6=_0x2c499a+'@'+_0x414d70+'@',_0xdada31=[];for(const {key:_0x506118,value:_0xbd66ca}of _0x6acbd8['getRange']({'start':_0x14abd6,'end':_0x14abd6+'\uffff'})){if(_0xbd66ca?.[_0x23cdaf(0x203)]===_0x2c499a&&_0xbd66ca?.[_0x23cdaf(0x7f2)]===_0x414d70)_0xdada31[_0x23cdaf(0x3c0)](_0x506118);}for(const _0x397f98 of _0xdada31){const _0x10dcd7=_0x6acbd8[_0x23cdaf(0x7f9)](_0x397f98);if(!_0x10dcd7)continue;_0x6acbd8['removeSync'](_0x397f98),_0x3c9a9d[_0x23cdaf(0x817)]({'id':'item:'+_0xa20bf1+'@'+_0x397f98,'type':_0xa20bf1,'key':_0x397f98,'action':_0x20199a[_0x23cdaf(0x2c8)],'timestamp':_0x375e98[_0x23cdaf(0x182)]||Date[_0x23cdaf(0x785)](),'txnId':_0x1c4bf4?.['id'],'origin':_0x375e98[_0x23cdaf(0x572)]},_0x10dcd7[_0x23cdaf(0x658)],undefined);}}function _0x4b125e(_0x666a0b,_0x3ee794){const _0x35384f=_0x50864b;if(!_0x666a0b[_0x35384f(0x637)](_0xa20bf1))return;const _0x55a309=_0x666a0b[_0x35384f(0x2d4)](_0xa20bf1)[_0x35384f(0x441)],_0x11c839=_0x3ee794+'@',_0x50fb8b=[];for(const {key:_0x5645a9,value:_0x4b6665}of _0x55a309['getRange']({'start':_0x11c839,'end':_0x11c839+'\uffff'})){if(_0x4b6665?.[_0x35384f(0x203)]===_0x3ee794)_0x50fb8b[_0x35384f(0x3c0)](_0x5645a9);}for(const _0x103e8f of _0x50fb8b)_0x55a309[_0x35384f(0x858)](_0x103e8f);}async function _0x653f59(_0xafe055,_0x2a019c){const _0x3b56db=_0x50864b,_0x2b3f44=_0x17a1f0(_0xafe055,_0x2a019c);if(_0x2b3f44[_0x3b56db(0x2f6)]===0x0)return;await _0xafe055[_0x3b56db(0x337)][_0x3b56db(0x4b7)](()=>{const _0x51ec9d=_0x3b56db;for(const {key:_0xf800f6,value:_0x360e74}of _0xafe055[_0x51ec9d(0x655)](_0x2a019c)){_0x13dcae(_0xafe055,_0x2a019c,_0xf800f6,_0x360e74,null);const _0xc0d505=_0x17e7cb(_0xafe055,_0x2a019c,_0xf800f6,_0x360e74);for(const _0x13f3a7 of _0xc0d505){_0x106577(_0xafe055,null,_0x2a019c,_0xf800f6,_0x13f3a7[_0x51ec9d(0x5d6)],_0x13f3a7[_0x51ec9d(0x6da)],_0x13f3a7['targetKey']);}}});}const _0x5f0f29=0x1388;async function _0x32af6d(_0x183bc7){const _0x37e315=_0x50864b,_0xba76f5=_0x183bc7[_0x37e315(0x351)]?.[_0x37e315(0x693)]?.[_0x37e315(0x4ad)]>0x0;if(!_0xba76f5&&!_0x183bc7[_0x37e315(0x432)])return{'dropped':0x0,'written':0x0};const _0x4fed7d=_0x3375df(_0x183bc7);let _0x3fbb61=0x0;for(;;){const _0x3acea9=Array[_0x37e315(0x6a7)](_0x4fed7d[_0x37e315(0x608)]({'limit':_0x5f0f29}));if(_0x3acea9[_0x37e315(0x2f6)]===0x0)break;let _0x57fa84=0x0;await _0x183bc7['_writer'][_0x37e315(0x4b7)](()=>{const _0x44ae49=_0x37e315;for(const _0x2d262f of _0x3acea9)if(_0x4fed7d[_0x44ae49(0x858)](_0x2d262f))_0x57fa84++;});if(_0x57fa84===0x0)break;_0x3fbb61+=_0x57fa84;}let _0x523781=0x0;for(const _0x580b0b of _0x183bc7['_refCache'][_0x37e315(0x693)][_0x37e315(0x542)]()){if(_0x580b0b['startsWith']('~')||!_0x183bc7['hasType'](_0x580b0b))continue;const _0x2b785a=_0x17a1f0(_0x183bc7,_0x580b0b);await _0x183bc7[_0x37e315(0x337)][_0x37e315(0x4b7)](()=>{const _0x519869=_0x37e315;for(const {key:_0x481718,value:_0x4ca660}of _0x183bc7[_0x519869(0x655)](_0x580b0b)){for(const _0x402634 of _0x2b785a){const _0x272bd9=_0x54736d(_0x4ca660,_0x402634[_0x519869(0x5d6)]);if(!_0x2dbf8d(_0x272bd9))continue;_0x4fed7d[_0x519869(0x5d4)](_0x167a51(_0x402634['targetType'],_0x272bd9,_0x580b0b,_0x481718,_0x402634[_0x519869(0x5d6)]),0x1),_0x523781++;}}});}return{'dropped':_0x3fbb61,'written':_0x523781};}return okdbEnvRefs={'getFieldValue':_0x54736d,'setFieldValue':_0x202313,'refIndexKey':_0x167a51,'isRefTarget':_0x2dbf8d,'cascadeVisitKey':_0x2e45d5,'extractRefs':_0x138550,'rebuildRefCache':_0x2e6bcf,'getTypeRefs':_0x17a1f0,'getIncomingRefs':_0x353e5e,'getRefIndexDb':_0x3375df,'updateRefIndex':_0x13dcae,'removeRefIndexEntries':_0x4ea085,'refIndexRowsFor':_0x4d6692,'rebuildRefIndex':_0x32af6d,'checkForeignKeys':_0x17e7cb,'processDeleteCascade':_0x285f33,'setRefViolation':_0x106577,'clearRefViolation':_0x3ac61d,'clearRefViolationsForKey':_0xf65995,'clearRefViolationsForType':_0x4b125e,'syncRefIndex':_0x653f59},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x20414a=_0x1c5fdf;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x20414a(0x3f6)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x4ac699=require$$0$4,{assertFilterAllowed:_0x89c449}=requireOkdbQueryFilter(),{rebuildRefCache:_0x35718d}=requireOkdbEnvRefs(),_0x64781d=_0x20414a(0x4c0),_0x7555e8=_0x20414a(0x5f4),_0x933d4c=_0x20414a(0x197),_0x2e97fd=[_0x20414a(0x689),_0x20414a(0x359),_0x20414a(0x7e4)],_0x372026=[_0x20414a(0x689),'type'],_0xcbc107=0x5a*0x3e8,_0x44bc68=Math[_0x20414a(0x25a)](_0xcbc107/0x2);class _0x39c391{constructor(_0xd63b4f,_0x26c372={}){const _0x567217=_0x20414a;this[_0x567217(0x263)]=_0xd63b4f,this[_0x567217(0x760)]=Number['isFinite'](_0x26c372[_0x567217(0x760)])&&_0x26c372[_0x567217(0x760)]>0x0?_0x26c372[_0x567217(0x760)]:_0xcbc107,this['refreshThresholdMs']=Number[_0x567217(0x6ef)](_0x26c372['refreshThresholdMs'])?_0x26c372[_0x567217(0x1b2)]:_0x44bc68,this[_0x567217(0x6be)]=null;}async[_0x20414a(0x3ca)](){const _0x760fcc=_0x20414a;if(this[_0x760fcc(0x6be)])return this[_0x760fcc(0x6be)];const _0x52f15c=await this[_0x760fcc(0x263)][_0x760fcc(0x496)](_0x64781d,{'sync':![]});return await _0x52f15c[_0x760fcc(0x816)](_0x7555e8,{'indexes':[_0x372026]}),await _0x52f15c[_0x760fcc(0x816)](_0x933d4c),_0x52f15c[_0x760fcc(0x620)](_0x933d4c)?_0x35718d(_0x52f15c):await _0x52f15c[_0x760fcc(0x266)](_0x933d4c,{'definition':{'type':'object','properties':{'sessionId':{'type':_0x760fcc(0x460),'ref':{'type':_0x7555e8,'onDelete':_0x760fcc(0x6c9)}},'dataEnv':{'type':_0x760fcc(0x460)},'type':{'type':_0x760fcc(0x460)},'key':{'type':_0x760fcc(0x460)}},'required':['sessionId','dataEnv',_0x760fcc(0x359),'key']},'enforce':!![]}),await _0x52f15c[_0x760fcc(0x816)](_0x933d4c,{'indexes':[_0x2e97fd]}),await _0x52f15c[_0x760fcc(0x3eb)](_0x933d4c,_0x2e97fd),await _0x52f15c[_0x760fcc(0x3eb)](_0x7555e8,_0x372026),this[_0x760fcc(0x6be)]=_0x52f15c,_0x52f15c;}[_0x20414a(0x55a)](){const _0x2fa287=_0x20414a;if(!this['_sub'])throw new Error('subscriptions-store:\x20open()\x20not\x20called');return this[_0x2fa287(0x6be)];}async['createSession']({sessionId:_0x3bf6de,dataEnv:_0x50eef5,type:_0x1bcd41,filter:filter=null,ttlMs:_0x5a330e}={}){const _0x2ccc09=_0x20414a,_0x475af3=this[_0x2ccc09(0x55a)]();_0x89c449(filter);const _0xf23452=_0x3bf6de!=null&&String(_0x3bf6de)['length']>0x0?String(_0x3bf6de):_0x4ac699[_0x2ccc09(0x55d)](),_0x55d058=Number[_0x2ccc09(0x6ef)](_0x5a330e)&&_0x5a330e>0x0?_0x5a330e:this[_0x2ccc09(0x760)],_0x3c5b9f=Date[_0x2ccc09(0x785)](),_0x252f12={'sessionId':_0xf23452,'dataEnv':_0x50eef5,'type':_0x1bcd41,'filter':filter??null,'version':0x0,'createdAt':_0x3c5b9f,'expiresAt':_0x3c5b9f+_0x55d058};return await _0x475af3[_0x2ccc09(0x77c)](_0x7555e8,_0xf23452,_0x252f12,{'ttl':_0x55d058}),{'sessionId':_0xf23452,'version':0x0};}['getSession'](_0x529400){const _0x4a27d6=_0x20414a;if(!_0x529400)return null;return this[_0x4a27d6(0x55a)]()['get'](_0x7555e8,String(_0x529400))??null;}async[_0x20414a(0x30d)](_0x2c1c84){const _0x1ff5fd=_0x20414a,_0x18fb0d=this[_0x1ff5fd(0x55a)](),_0x36f7be=String(_0x2c1c84);if(!_0x18fb0d[_0x1ff5fd(0x4ff)](_0x7555e8,_0x36f7be))return![];return await _0x18fb0d[_0x1ff5fd(0x7e6)](_0x7555e8,_0x36f7be),!![];}async[_0x20414a(0x80e)](_0x5e3dea){const _0xda2696=_0x20414a,_0x2a4e7c=this[_0xda2696(0x55a)](),_0x7f5e3=String(_0x5e3dea),_0x4c2abf=_0x2a4e7c[_0xda2696(0x4ff)](_0x7555e8,_0x7f5e3);if(!_0x4c2abf)return null;const _0x5dc5dc=(Number['isFinite'](_0x4c2abf[_0xda2696(0x75b)])?_0x4c2abf[_0xda2696(0x75b)]:0x0)+0x1;return await _0x2a4e7c[_0xda2696(0x77c)](_0x7555e8,_0x7f5e3,{..._0x4c2abf,'version':_0x5dc5dc}),_0x5dc5dc;}async['refreshTtl'](_0x49926c,_0x563202){const _0x510b84=_0x20414a,_0x255191=this[_0x510b84(0x55a)](),_0x3afc83=String(_0x49926c);if(!_0x255191[_0x510b84(0x4ff)](_0x7555e8,_0x3afc83))return![];const _0x1e2edf=Number[_0x510b84(0x6ef)](_0x563202)&&_0x563202>0x0?_0x563202:this['ttlMs'];if(this[_0x510b84(0x42a)](_0x3afc83))return![];return await _0x255191[_0x510b84(0x83e)](_0x7555e8,_0x3afc83,_0x1e2edf),await this[_0x510b84(0x6d0)](_0x3afc83,_0x1e2edf),!![];}async[_0x20414a(0x7c6)](_0x55f3bd,_0x24064b){const _0x415b1a=_0x20414a,_0x266c9e=this[_0x415b1a(0x55a)](),_0x33b672=Number['isFinite'](_0x24064b)&&_0x24064b>0x0?_0x24064b:this[_0x415b1a(0x760)],_0x20113b=Date['now'](),_0x162411=[];for(const _0x3755b2 of _0x55f3bd||[]){const _0x33048e=String(_0x3755b2),_0x5caa0a=_0x266c9e['get'](_0x7555e8,_0x33048e);if(!_0x5caa0a)continue;if(this[_0x415b1a(0x42a)](_0x33048e,_0x20113b))continue;_0x162411[_0x415b1a(0x3c0)]({'id':_0x33048e,'cur':_0x5caa0a});}if(_0x162411[_0x415b1a(0x2f6)]===0x0)return[];return await _0x266c9e[_0x415b1a(0x2ff)](async _0x27648e=>{const _0x1e0173=_0x415b1a;for(const {id:_0x4b8d1a,cur:_0x2dbd16}of _0x162411){_0x27648e[_0x1e0173(0x77c)](_0x7555e8,_0x4b8d1a,{..._0x2dbd16,'expiresAt':_0x20113b+_0x33b672}),_0x27648e[_0x1e0173(0x83e)](_0x7555e8,_0x4b8d1a,_0x33b672);}}),_0x162411[_0x415b1a(0x4ba)](_0x4a04b9=>_0x4a04b9['id']);}[_0x20414a(0x42a)](_0x5b66eb,_0x4c0514=Date[_0x20414a(0x785)]()){const _0x4f5647=_0x20414a,_0x513240=this[_0x4f5647(0x55a)]()[_0x4f5647(0x7ee)](_0x7555e8,String(_0x5b66eb));if(!_0x513240)return![];return _0x513240['expiresAt']-_0x4c0514>this[_0x4f5647(0x1b2)];}async[_0x20414a(0x6d0)](_0x495b82,_0x1edd30){const _0x274788=_0x20414a,_0x378093=this[_0x274788(0x55a)](),_0x4e7e69=_0x378093[_0x274788(0x4ff)](_0x7555e8,_0x495b82);if(!_0x4e7e69)return;await _0x378093['put'](_0x7555e8,_0x495b82,{..._0x4e7e69,'expiresAt':Date[_0x274788(0x785)]()+_0x1edd30});}async[_0x20414a(0x52b)](_0x316578,_0x2643fd,_0x51f470){const _0x1249ab=_0x20414a,_0x35f0c1=this[_0x1249ab(0x55a)](),_0x435bf7=String(_0x316578),_0x58aebb=_0x35f0c1[_0x1249ab(0x4ff)](_0x7555e8,_0x435bf7);if(!_0x58aebb)throw new Error(_0x1249ab(0x1da)+_0x435bf7);const _0x157dd8=_0x4ac699[_0x1249ab(0x55d)]();return await _0x35f0c1['put'](_0x933d4c,_0x157dd8,{'sessionId':_0x435bf7,'dataEnv':String(_0x58aebb[_0x1249ab(0x689)]),'type':String(_0x2643fd),'key':String(_0x51f470)}),_0x157dd8;}async[_0x20414a(0x55c)](_0x420946,_0x41cdc9,{retries:retries=0x8}={}){const _0x2b3fe0=_0x20414a,_0xdd8753=this[_0x2b3fe0(0x55a)]();for(let _0x3f7b99=0x0;;_0x3f7b99++){const _0x5b0b76=_0xdd8753[_0x2b3fe0(0x7f9)](_0x7555e8,_0x420946);if(!_0x5b0b76)return null;const _0x320901=_0x5b0b76['value'],_0x7b12c7=(Number['isFinite'](_0x320901[_0x2b3fe0(0x75b)])?_0x320901['version']:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x41cdc9(_0x320901,_0xdd8753)||{};try{return await _0xdd8753['txn'](async _0x206253=>{const _0x1cf3c1=_0x2b3fe0;applyInterests?.(_0x206253),_0x206253[_0x1cf3c1(0x77c)](_0x7555e8,_0x420946,{..._0x320901,...sessionPatch,'version':_0x7b12c7},{'ifVersion':_0x5b0b76[_0x1cf3c1(0x75b)]});}),_0x7b12c7;}catch(_0x481aaa){if(_0x481aaa?.[_0x2b3fe0(0x22a)]===_0x2b3fe0(0x711)&&_0x3f7b99<retries)continue;throw _0x481aaa;}}}async[_0x20414a(0x26e)](_0x10ecae,{add:add=[],remove:remove=[]}={}){const _0x1050d3=_0x20414a,_0xc8ed72=String(_0x10ecae);return this[_0x1050d3(0x55c)](_0xc8ed72,(_0x4f1f5e,_0x1efae9)=>{const _0x4aa1c1=_0x1050d3,_0x242a4a=String(_0x4f1f5e[_0x4aa1c1(0x689)]),_0x2b2a96=new Set((remove||[])['map'](_0x3b7be3=>String(_0x3b7be3[_0x4aa1c1(0x359)])+'\x00'+String(_0x3b7be3[_0x4aa1c1(0x7e4)]))),_0x51d3a0=[];if(_0x2b2a96[_0x4aa1c1(0x4ad)]>0x0)for(const {key:_0x21508b,value:_0x1ab804}of _0x1efae9['getRange'](_0x933d4c,{})){if(!_0x1ab804||_0x1ab804[_0x4aa1c1(0x83a)]!==_0xc8ed72)continue;if(_0x2b2a96[_0x4aa1c1(0x868)](_0x1ab804[_0x4aa1c1(0x359)]+'\x00'+_0x1ab804[_0x4aa1c1(0x7e4)]))_0x51d3a0[_0x4aa1c1(0x3c0)](_0x21508b);}const _0x3090c7=(add||[])[_0x4aa1c1(0x4ba)](_0x378d7c=>({'id':_0x4ac699['randomUUID'](),'type':String(_0x378d7c['type']),'key':String(_0x378d7c[_0x4aa1c1(0x7e4)])}));return{'applyInterests':_0x5b17c9=>{const _0x3edee7=_0x4aa1c1;for(const _0x3bb013 of _0x51d3a0)_0x5b17c9[_0x3edee7(0x7e6)](_0x933d4c,_0x3bb013);for(const _0x35ca84 of _0x3090c7)_0x5b17c9[_0x3edee7(0x77c)](_0x933d4c,_0x35ca84['id'],{'sessionId':_0xc8ed72,'dataEnv':_0x242a4a,'type':_0x35ca84[_0x3edee7(0x359)],'key':_0x35ca84['key']});}};});}async['setFilter'](_0xdd1cb2,_0x29f09d){_0x89c449(_0x29f09d);const _0x51f23e=String(_0xdd1cb2);return this['_commitSessionMutation'](_0x51f23e,()=>({'sessionPatch':{'filter':_0x29f09d??null}}));}async['removeInterest'](_0x355bc6,_0x10e56f,_0x426f2d){const _0x335469=_0x20414a,_0x36ebb8=this[_0x335469(0x55a)](),_0x2d5e7f=String(_0x355bc6),_0x4ae23e=String(_0x10e56f),_0x1f9eba=String(_0x426f2d),_0x4a499d=[];for(const {key:_0x292936,value:_0x7e289}of _0x36ebb8['getRange'](_0x933d4c,{})){if(_0x7e289&&_0x7e289[_0x335469(0x83a)]===_0x2d5e7f&&_0x7e289[_0x335469(0x359)]===_0x4ae23e&&_0x7e289[_0x335469(0x7e4)]===_0x1f9eba)_0x4a499d[_0x335469(0x3c0)](_0x292936);}for(const _0x301b51 of _0x4a499d)await _0x36ebb8['remove'](_0x933d4c,_0x301b51);return _0x4a499d[_0x335469(0x2f6)];}async['replaceInterests'](_0x28d69d,_0x19f128){const _0x4dd4e2=_0x20414a,_0xbeb902=String(_0x28d69d);return this[_0x4dd4e2(0x55c)](_0xbeb902,(_0x19f19f,_0xfd9b18)=>{const _0x93b60e=_0x4dd4e2,_0x485685=String(_0x19f19f[_0x93b60e(0x689)]),_0x1e1bc8=[];for(const {key:_0x5f1832,value:_0x53a97b}of _0xfd9b18[_0x93b60e(0x655)](_0x933d4c,{})){if(_0x53a97b&&_0x53a97b['sessionId']===_0xbeb902)_0x1e1bc8['push'](_0x5f1832);}const _0x187b1c=(_0x19f128||[])['map'](_0x4e2092=>({'id':_0x4ac699[_0x93b60e(0x55d)](),'type':String(_0x4e2092['type']),'key':String(_0x4e2092[_0x93b60e(0x7e4)])}));return{'applyInterests':_0x318a2e=>{const _0x334d7e=_0x93b60e;for(const _0x2da0f9 of _0x1e1bc8)_0x318a2e[_0x334d7e(0x7e6)](_0x933d4c,_0x2da0f9);for(const _0x3d97d8 of _0x187b1c)_0x318a2e['put'](_0x933d4c,_0x3d97d8['id'],{'sessionId':_0xbeb902,'dataEnv':_0x485685,'type':_0x3d97d8['type'],'key':_0x3d97d8['key']});}};});}['sessionsForKey'](_0x3eeedf,_0x1aa76a,_0x484247){const _0x543fdc=_0x20414a,_0x474e22=this[_0x543fdc(0x55a)](),_0x534e30=String(_0x3eeedf),_0x424fee=String(_0x1aa76a),_0x525f70=String(_0x484247),_0x5706a4=new Set();for(const {value:_0x294578}of _0x474e22[_0x543fdc(0x807)](_0x933d4c,_0x2e97fd,{'start':[_0x534e30,_0x424fee,_0x525f70],'end':[_0x534e30,_0x424fee,_0x525f70,'￿']})){if(_0x294578&&_0x294578[_0x543fdc(0x83a)])_0x5706a4[_0x543fdc(0x3cc)](_0x294578[_0x543fdc(0x83a)]);}return[..._0x5706a4];}['filterSessionsForType'](_0xa484f0,_0x1a4fbc){const _0x3ad993=_0x20414a,_0x585dda=this[_0x3ad993(0x55a)](),_0x3fc85b=String(_0xa484f0),_0x15004f=String(_0x1a4fbc),_0x39400a=[];for(const {value:_0x2c6e75}of _0x585dda['byIndex'](_0x7555e8,_0x372026,{'start':[_0x3fc85b,_0x15004f],'end':[_0x3fc85b,_0x15004f,'\uffff']})){if(!_0x2c6e75||_0x2c6e75['dataEnv']!==_0x3fc85b||_0x2c6e75[_0x3ad993(0x359)]!==_0x15004f)continue;if(_0x2c6e75[_0x3ad993(0x7f8)]==null)continue;_0x39400a[_0x3ad993(0x3c0)]({'sessionId':_0x2c6e75[_0x3ad993(0x83a)],'filter':_0x2c6e75[_0x3ad993(0x7f8)],'version':Number[_0x3ad993(0x6ef)](_0x2c6e75['version'])?_0x2c6e75[_0x3ad993(0x75b)]:0x0});}return _0x39400a;}async[_0x20414a(0x338)](){const _0x1058c4=_0x20414a;return this[_0x1058c4(0x55a)]()[_0x1058c4(0x7a5)]();}}return okdbSubscriptionsStore[_0x20414a(0x3f6)]=_0x39c391,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x59a)]=_0x64781d,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x873)]=_0x7555e8,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x4a9)]=_0x933d4c,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x336)]=_0x2e97fd,okdbSubscriptionsStore[_0x20414a(0x3f6)]['SESSION_TYPE_INDEX']=_0x372026,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x6ec)]=_0xcbc107,okdbSubscriptionsStore[_0x20414a(0x3f6)];}var version=_0x1c5fdf(0x482),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x401885=_0x1c5fdf;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x48d90b=_0x401885(0x808),_0x2ad28e=0xa,_0x5610be=Object[_0x401885(0x7ff)]({'CREATED':_0x401885(0x609),'ONLINE':_0x401885(0x2ae),'STOPPED':'stopped','INACTIVE':'inactive','ERROR':'error','REMOVED':_0x401885(0x3b2)}),_0x34511f=Object['freeze']({'STARTED':'started','STOPPED':_0x401885(0x35c),'ERROR':_0x401885(0x1f1),'INSTALLED':_0x401885(0x77e),'UNINSTALLED':_0x401885(0x2ea)}),_0x39e74f=Object[_0x401885(0x7ff)](new Set([_0x5610be[_0x401885(0x32f)],_0x5610be[_0x401885(0x25c)],_0x5610be['INACTIVE'],_0x5610be[_0x401885(0x5b8)]]));function _0x42339c(_0x5589cc){const _0x1765bf=_0x401885;return _0x5589cc?.[_0x1765bf(0x28f)]===![]?_0x5610be[_0x1765bf(0x25c)]:_0x1765bf(0x669);}return okdbEnginesEnums={'TYPE_ENGINES':_0x48d90b,'MAX_UPDATE_RETRIES':_0x2ad28e,'ENGINE_STATUS':_0x5610be,'ENGINE_EVENTS':_0x34511f,'UPDATABLE_STATUSES':_0x39e74f,'durableOnlyEngineState':_0x42339c},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x3c79de=_0x1c5fdf;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x56583b=Object['freeze']({'EMBEDDER':_0x3c79de(0x726),'INDEXER':_0x3c79de(0x2dc),'SEARCH':'vector-search','WORKER':'embed-worker'}),_0x539ecd=Object[_0x3c79de(0x7ff)]({'PENDING':_0x3c79de(0x73b),'DONE':_0x3c79de(0x1e2),'FAILED':_0x3c79de(0x41a),'DELETED':'deleted'}),_0x5ac849=Object[_0x3c79de(0x7ff)]({'INDEXER_READY':_0x3c79de(0x7c4),'INDEXER_FLUSHED':_0x3c79de(0x6cd),'INDEXER_DOC_DONE':_0x3c79de(0x310),'INDEXER_DOC_FAILED':_0x3c79de(0x3bf),'INDEXER_DOC_QUEUED':_0x3c79de(0x208),'STRATEGY_REGISTERED':_0x3c79de(0x798),'DOC_STATUS_CHANGE':'embeddings:doc:status_change','PIPELINE_READY':_0x3c79de(0x80d)}),_0x134e26=Object['freeze']({'MODELS':_0x3c79de(0x308),'DOC_STATUS_PREFIX':_0x3c79de(0x385),'VEC_PREFIX':_0x3c79de(0x20e)});return enums={'ENGINE_TYPES':_0x56583b,'INDEXER_DOC_STATUS':_0x539ecd,'EMBEDDINGS_EVENTS':_0x5ac849,'INTERNAL_TYPES':_0x134e26},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x4c8f3d=_0x1c5fdf;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xf4eb62=Object[_0x4c8f3d(0x7ff)]({'PENDING':_0x4c8f3d(0x73b),'RUNNING':_0x4c8f3d(0x843),'DONE':'done','FAILED':_0x4c8f3d(0x41a)}),_0x31acf4=Object[_0x4c8f3d(0x7ff)]({'ACTIVE':'active','PAUSED':_0x4c8f3d(0x770),'DRAINING':'draining'}),_0x20373d=Object[_0x4c8f3d(0x7ff)]({'ENQUEUED':_0x4c8f3d(0x69e),'DONE':'queue:done','FAILED':_0x4c8f3d(0x5d8),'RETRY':_0x4c8f3d(0x64a),'RESCHEDULED':_0x4c8f3d(0x742),'REMOVED':_0x4c8f3d(0x1e6),'RECONCILED':_0x4c8f3d(0x24f),'CLEAR_PROGRESS':_0x4c8f3d(0x46a),'CLEAR_DONE':'queue:clear-done','LOG':_0x4c8f3d(0x625)}),_0x1e2713=Object[_0x4c8f3d(0x7ff)]([_0x4c8f3d(0x36c),_0x4c8f3d(0x427),'warn',_0x4c8f3d(0x1f1)]),_0x2a476b=0x1,_0x390edd=0xc350,_0x353958=0x400,_0x565b11=0x800;function _0x1c51fb(_0x43ee1c){const _0x35873b=_0x4c8f3d;return _0x43ee1c!=null&&typeof _0x43ee1c===_0x35873b(0x86d)&&(_0x43ee1c[_0x35873b(0x4ca)]===Object||Object[_0x35873b(0x228)](_0x43ee1c)===null);}function _0x3a13ba(_0x5c7efd,_0x45fde5,_0x325217,_0x4872fe){const _0x1ced31=_0x4c8f3d;if(_0x5c7efd==null)return _0x45fde5;const _0x4332dc=Number(_0x5c7efd);if(!Number[_0x1ced31(0x6ef)](_0x4332dc))return _0x45fde5;const _0x3f323f=Math['trunc'](_0x4332dc);if(_0x3f323f<_0x325217)return _0x325217;if(_0x3f323f>_0x4872fe)return _0x4872fe;return _0x3f323f;}function _0x3d02a9(_0x4586e5){const _0x448c60=_0x4c8f3d;if(!_0x4586e5)return[];if(typeof _0x4586e5===_0x448c60(0x460))_0x4586e5=[_0x4586e5];if(!Array[_0x448c60(0x55b)](_0x4586e5))throw new Error(_0x448c60(0x2b9));const _0x386e99=[],_0x311b16=new Set();for(const _0x17437c of _0x4586e5){if(_0x17437c==null)continue;const _0x581e06=String(_0x17437c)[_0x448c60(0x51d)]();if(!_0x581e06)continue;if(_0x581e06[_0x448c60(0x2f6)]>0x80)throw new Error(_0x448c60(0x6ff));if(_0x311b16[_0x448c60(0x868)](_0x581e06))continue;_0x311b16[_0x448c60(0x3cc)](_0x581e06),_0x386e99['push'](_0x581e06);if(_0x386e99[_0x448c60(0x2f6)]>=0x20)break;}return _0x386e99;}function _0x45bde9(_0x379dca){const _0x4dae1d=_0x4c8f3d;if(_0x379dca==null)return null;const _0xb762ad=String(_0x379dca)[_0x4dae1d(0x51d)]();if(!_0xb762ad)return null;if(_0xb762ad[_0x4dae1d(0x2f6)]>0x80)throw new Error(_0x4dae1d(0x84d));return _0xb762ad;}function _0x326a8b(_0x513bcf,_0x31cb15=0x1){const _0x48c5bf=_0x4c8f3d;if(_0x513bcf==null)return[];if(typeof _0x513bcf===_0x48c5bf(0x460)){const _0x3b7bf2=_0x45bde9(_0x513bcf);if(!_0x3b7bf2)return[];return[{'id':_0x3b7bf2,'tokens':_0x31cb15}];}if(!Array[_0x48c5bf(0x55b)](_0x513bcf))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x5c61c=[],_0x416769=new Set();for(const _0x27db66 of _0x513bcf){let _0x184aa8,_0x1718c2;if(Array[_0x48c5bf(0x55b)](_0x27db66))[_0x184aa8,_0x1718c2]=_0x27db66;else{if(_0x27db66&&typeof _0x27db66==='object')({id:_0x184aa8,tokens:_0x1718c2}=_0x27db66);else{if(typeof _0x27db66===_0x48c5bf(0x460))_0x184aa8=_0x27db66,_0x1718c2=_0x31cb15;else continue;}}_0x184aa8=_0x45bde9(_0x184aa8);if(!_0x184aa8)continue;const _0x13ab80=_0x1718c2==null?_0x31cb15:Math[_0x48c5bf(0x616)](Number(_0x1718c2));if(!Number[_0x48c5bf(0x6ef)](_0x13ab80)||_0x13ab80<0x1)throw new Error(_0x48c5bf(0x250)+_0x184aa8+_0x48c5bf(0x6e5));if(_0x13ab80>0xf4240)throw new Error('bucket\x20\x22'+_0x184aa8+_0x48c5bf(0x547));if(_0x416769['has'](_0x184aa8))throw new Error('duplicate\x20bucket:\x20'+_0x184aa8);_0x416769[_0x48c5bf(0x3cc)](_0x184aa8),_0x5c61c['push']({'id':_0x184aa8,'tokens':_0x13ab80});}return _0x5c61c;}function _0x23517c(_0x4c42aa,_0x30914c=0x400){const _0x2a6c4c=_0x4c8f3d;if(_0x4c42aa==null)return null;const _0x13068e=String(_0x4c42aa)[_0x2a6c4c(0x5d1)](0x0,_0x30914c);return _0x13068e||null;}function _0x74d27c(_0x35810d){const _0x57853c=_0x4c8f3d;if(_0x35810d==null)return null;if(_0x35810d[_0x57853c(0x7e4)]!==undefined&&_0x35810d[_0x57853c(0x658)]!==undefined)return _0x35810d;return{'key':_0x35810d['id']??null,'value':_0x35810d};}function _0x2af8ab(_0x55679e){const _0x5a9871=_0x4c8f3d;let _0x29cfdf=_0x55679e;if(typeof _0x55679e==='string')_0x29cfdf={'message':_0x55679e};if(!_0x1c51fb(_0x29cfdf))throw new Error(_0x5a9871(0x543));const _0x12b5af=_0x29cfdf[_0x5a9871(0x32a)]==null?_0x5a9871(0x427):String(_0x29cfdf[_0x5a9871(0x32a)])[_0x5a9871(0x85a)]();if(!_0x1e2713[_0x5a9871(0x75e)](_0x12b5af))throw new Error(_0x5a9871(0x1e8)+_0x12b5af);if(_0x29cfdf[_0x5a9871(0x5e1)]==null)throw new Error(_0x5a9871(0x7d2));const _0x223ef2=String(_0x29cfdf[_0x5a9871(0x5e1)])[_0x5a9871(0x5d1)](0x0,_0x353958);let _0x23afbd=null;if(_0x29cfdf[_0x5a9871(0x861)]!=null){if(!_0x1c51fb(_0x29cfdf[_0x5a9871(0x861)]))throw new Error(_0x5a9871(0x83d));if(JSON[_0x5a9871(0x34d)](_0x29cfdf[_0x5a9871(0x861)])['length']>_0x565b11)throw new Error(_0x5a9871(0x69d));_0x23afbd=_0x29cfdf[_0x5a9871(0x861)];}return{'level':_0x12b5af,'message':_0x223ef2,'fields':_0x23afbd,'ts':Date[_0x5a9871(0x785)]()};}function _0x1afe89(_0x7df256){const _0x39d587=_0x4c8f3d;if(_0x7df256==null)return;if(!Number[_0x39d587(0x887)](_0x7df256)||_0x7df256<_0x2a476b||_0x7df256>_0x390edd)throw new Error(_0x39d587(0x5f3)+_0x2a476b+',\x20'+_0x390edd+']');}function _0x413b51(_0x3e4b64){const _0x1e40b6=_0x4c8f3d;if(!_0x1c51fb(_0x3e4b64))throw new Error('job\x20must\x20be\x20object');if(typeof _0x3e4b64['id']!==_0x1e40b6(0x460)||_0x3e4b64['id']['length']<0x8)throw new Error(_0x1e40b6(0x570));if(typeof _0x3e4b64[_0x1e40b6(0x359)]!==_0x1e40b6(0x460)||!_0x3e4b64[_0x1e40b6(0x359)])throw new Error(_0x1e40b6(0x45d));if(!Object[_0x1e40b6(0x534)](_0xf4eb62)[_0x1e40b6(0x75e)](_0x3e4b64[_0x1e40b6(0x392)]))throw new Error('invalid\x20job.status:\x20'+_0x3e4b64[_0x1e40b6(0x392)]);for(const _0x3a18d8 of[_0x1e40b6(0x78d),'created',_0x1e40b6(0x38c)]){if(typeof _0x3e4b64[_0x3a18d8]!=='number'||!Number[_0x1e40b6(0x6ef)](_0x3e4b64[_0x3a18d8]))throw new Error('job.'+_0x3a18d8+_0x1e40b6(0x249));}if(_0x3e4b64[_0x1e40b6(0x47d)]!=null&&(typeof _0x3e4b64[_0x1e40b6(0x47d)]!==_0x1e40b6(0x46d)||!Number[_0x1e40b6(0x6ef)](_0x3e4b64['finished'])))throw new Error(_0x1e40b6(0x662));if(!Number[_0x1e40b6(0x887)](_0x3e4b64['tries'])||_0x3e4b64[_0x1e40b6(0x24a)]<0x0)throw new Error(_0x1e40b6(0x5a8));if(!Number['isInteger'](_0x3e4b64['priority']))throw new Error(_0x1e40b6(0x6cf));if(_0x3e4b64['max_tries']!==null&&_0x3e4b64[_0x1e40b6(0x416)]!==Infinity&&(!Number[_0x1e40b6(0x887)](_0x3e4b64[_0x1e40b6(0x416)])||_0x3e4b64[_0x1e40b6(0x416)]<0x1))throw new Error(_0x1e40b6(0x408));if(_0x3e4b64[_0x1e40b6(0x6d1)]!=null&&(!Number[_0x1e40b6(0x887)](_0x3e4b64[_0x1e40b6(0x6d1)])||_0x3e4b64[_0x1e40b6(0x6d1)]<0x0))throw new Error(_0x1e40b6(0x763));if(_0x3e4b64['backoff_multiplier']!=null&&(typeof _0x3e4b64[_0x1e40b6(0x1b0)]!==_0x1e40b6(0x46d)||_0x3e4b64[_0x1e40b6(0x1b0)]<0x1))throw new Error(_0x1e40b6(0x86e));if(_0x3e4b64[_0x1e40b6(0x2cd)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x2cd)]!==_0x1e40b6(0x460))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x23e)]!=null&&(typeof _0x3e4b64[_0x1e40b6(0x23e)]!==_0x1e40b6(0x46d)||!Number[_0x1e40b6(0x6ef)](_0x3e4b64['claim_expires'])))throw new Error(_0x1e40b6(0x835));if(_0x3e4b64[_0x1e40b6(0x618)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x618)]!==_0x1e40b6(0x460))throw new Error(_0x1e40b6(0x2c6));if(_0x3e4b64[_0x1e40b6(0x6dc)]!=null&&(!Number[_0x1e40b6(0x887)](_0x3e4b64[_0x1e40b6(0x6dc)])||_0x3e4b64[_0x1e40b6(0x6dc)]<0x1))throw new Error(_0x1e40b6(0x89a));if(_0x3e4b64[_0x1e40b6(0x639)]!=null){if(!Array['isArray'](_0x3e4b64[_0x1e40b6(0x639)]))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x45719f of _0x3e4b64[_0x1e40b6(0x639)]){if(!_0x45719f||typeof _0x45719f!==_0x1e40b6(0x86d))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x45719f['id']!==_0x1e40b6(0x460)||!_0x45719f['id'][_0x1e40b6(0x51d)]())throw new Error(_0x1e40b6(0x21d));if(!Number[_0x1e40b6(0x887)](_0x45719f[_0x1e40b6(0x2d0)])||_0x45719f[_0x1e40b6(0x2d0)]<0x1)throw new Error(_0x1e40b6(0x70d));}}if(_0x3e4b64[_0x1e40b6(0x7fc)]!=null&&typeof _0x3e4b64['cron']!==_0x1e40b6(0x460))throw new Error('job.cron\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x68f)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x68f)]!==_0x1e40b6(0x460))throw new Error('job.idempotency_key\x20must\x20be\x20string|null');if(!Array['isArray'](_0x3e4b64['tags']))throw new Error('job.tags\x20must\x20be\x20array');if(_0x3e4b64[_0x1e40b6(0x4fb)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x4fb)]!==_0x1e40b6(0x460))throw new Error(_0x1e40b6(0x23b));if(_0x3e4b64[_0x1e40b6(0x836)]!=null&&typeof _0x3e4b64['status_code']!==_0x1e40b6(0x460))throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x368)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x368)]!==_0x1e40b6(0x460))throw new Error('job.status_message\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x79b)]!=null&&typeof _0x3e4b64['error_stack']!==_0x1e40b6(0x460))throw new Error('job.error_stack\x20must\x20be\x20string|null');for(const _0x2da584 of[_0x1e40b6(0x4ed),_0x1e40b6(0x24e)]){const _0x124b97=_0x3e4b64[_0x2da584];if(_0x124b97!=null&&(!Number[_0x1e40b6(0x887)](_0x124b97)||_0x124b97<0x0))throw new Error(_0x1e40b6(0x7c2)+_0x2da584+_0x1e40b6(0x823));}_0x1afe89(_0x3e4b64[_0x1e40b6(0x2fa)]);}function _0x3d51df(_0x548d16){const _0x2f503a=_0x4c8f3d;if(!_0x1c51fb(_0x548d16))throw new Error(_0x2f503a(0x811));if(typeof _0x548d16['id']!==_0x2f503a(0x460)||!_0x548d16['id'][_0x2f503a(0x51d)]())throw new Error(_0x2f503a(0x410));if(!Object[_0x2f503a(0x534)](_0x31acf4)[_0x2f503a(0x75e)](_0x548d16[_0x2f503a(0x392)]))throw new Error(_0x2f503a(0x4da)+_0x548d16[_0x2f503a(0x392)]);if(_0x548d16[_0x2f503a(0x200)]!=null&&(!Number[_0x2f503a(0x887)](_0x548d16[_0x2f503a(0x200)])||_0x548d16[_0x2f503a(0x200)]<0x1))throw new Error(_0x2f503a(0x65a));if(_0x548d16['defaults']!=null){if(!_0x1c51fb(_0x548d16[_0x2f503a(0x619)]))throw new Error(_0x2f503a(0x3fc));const _0x4b315c=_0x548d16['defaults'];if(_0x4b315c[_0x2f503a(0x416)]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x2f503a(0x416)])||_0x4b315c['max_tries']<0x1))throw new Error(_0x2f503a(0x85f));if(_0x4b315c[_0x2f503a(0x6d1)]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x2f503a(0x6d1)])||_0x4b315c[_0x2f503a(0x6d1)]<0x0))throw new Error(_0x2f503a(0x50f));if(_0x4b315c[_0x2f503a(0x1b0)]!=null&&(typeof _0x4b315c[_0x2f503a(0x1b0)]!==_0x2f503a(0x46d)||_0x4b315c[_0x2f503a(0x1b0)]<0x1))throw new Error('job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null');if(_0x4b315c[_0x2f503a(0x5cc)]!=null&&!Number['isInteger'](_0x4b315c[_0x2f503a(0x5cc)]))throw new Error(_0x2f503a(0x39e));if(_0x4b315c[_0x2f503a(0x7e1)]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x2f503a(0x7e1)])||_0x4b315c['ttl']<0x0))throw new Error(_0x2f503a(0x80f));for(const _0x520b60 of[_0x2f503a(0x4ed),_0x2f503a(0x24e)]){if(_0x4b315c[_0x520b60]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x520b60])||_0x4b315c[_0x520b60]<0x0))throw new Error(_0x2f503a(0x411)+_0x520b60+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x4b315c[_0x2f503a(0x639)]!=null&&!Array[_0x2f503a(0x55b)](_0x4b315c[_0x2f503a(0x639)]))throw new Error(_0x2f503a(0x65e));_0x1afe89(_0x4b315c[_0x2f503a(0x2fa)]);}if(_0x548d16[_0x2f503a(0x692)]!=null){if(!_0x1c51fb(_0x548d16[_0x2f503a(0x692)]))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x1c51fb(_0x548d16[_0x2f503a(0x692)]['definition']))throw new Error(_0x2f503a(0x314));if(typeof _0x548d16[_0x2f503a(0x692)]['enforce']!=='boolean')throw new Error(_0x2f503a(0x6d5));}for(const _0x3dde79 of[_0x2f503a(0x6a9),'updated_at']){if(typeof _0x548d16[_0x3dde79]!=='number'||!Number[_0x2f503a(0x6ef)](_0x548d16[_0x3dde79]))throw new Error('job_type.'+_0x3dde79+_0x2f503a(0x249));}}function _0x51c083(_0x3ae177){const _0x2a5093=_0x4c8f3d;if(!_0x1c51fb(_0x3ae177))throw new Error(_0x2a5093(0x4ee));if(typeof _0x3ae177['id']!==_0x2a5093(0x460)||!_0x3ae177['id']['trim']())throw new Error(_0x2a5093(0x2b8));if(!Number[_0x2a5093(0x887)](_0x3ae177[_0x2a5093(0x2d0)])||_0x3ae177[_0x2a5093(0x2d0)]<0x0)throw new Error(_0x2a5093(0x790));if(!Number[_0x2a5093(0x887)](_0x3ae177['capacity'])||_0x3ae177[_0x2a5093(0x1bf)]<0x0)throw new Error(_0x2a5093(0x226));if(_0x3ae177[_0x2a5093(0x2d0)]>_0x3ae177['capacity'])throw new Error(_0x2a5093(0x3d4));if(!Number[_0x2a5093(0x887)](_0x3ae177['refill_amount'])||_0x3ae177[_0x2a5093(0x805)]<0x0)throw new Error(_0x2a5093(0x773));if(!Number['isInteger'](_0x3ae177[_0x2a5093(0x312)])||_0x3ae177[_0x2a5093(0x312)]<0x0)throw new Error(_0x2a5093(0x514));if(typeof _0x3ae177[_0x2a5093(0x38c)]!==_0x2a5093(0x46d)||!Number[_0x2a5093(0x6ef)](_0x3ae177[_0x2a5093(0x38c)]))throw new Error(_0x2a5093(0x7f3));}return okdbQueueValidate={'STATUS':_0xf4eb62,'JOB_TYPE_STATUS':_0x31acf4,'QUEUE_EVENTS':_0x20373d,'LOG_LEVELS':_0x1e2713,'LOG_CAP_MIN':_0x2a476b,'LOG_CAP_MAX':_0x390edd,'clampInt':_0x3a13ba,'asNullableString':_0x23517c,'normalizeResult':_0x74d27c,'normalizeTags':_0x3d02a9,'normalizeBucket':_0x45bde9,'normalizeBuckets':_0x326a8b,'normalizeLogEntry':_0x2af8ab,'validateJobShape':_0x413b51,'validateJobTypeShape':_0x3d51df,'validateBucketShape':_0x51c083},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x3073c1=0x2**0x1f-0x1;function _0x177e07(_0x3a0f73){if(!(_0x3a0f73>0x0))return 0x0;return _0x3a0f73>_0x3073c1?_0x3073c1:_0x3a0f73;}function _0x40d1b9(_0x472176){return _0x472176===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x3073c1,'clampTimerDelay':_0x177e07,'isNeverDelay':_0x40d1b9},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x3fdff4=_0x1c5fdf;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x520884=require$$0$6,{clampTimerDelay:_0x36b1db}=requireOkdbTimers(),{EVENTS:_0xe26131,CHANGE_ACTIONS:_0x36de2c}=requireOkdbEnums(),{LOOP:_0x90d8b7}=requireOkdbLoopMonitor(),_0x5bcac0=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1b48e3=0x5,_0x42d25d=0x2710;class _0x41a54d extends _0x520884{constructor(_0x38d2f9,_0x5f39e2={}){const _0x2f1554=_0x20ac;super(),this[_0x2f1554(0x263)]=_0x38d2f9,this[_0x2f1554(0x78c)]=_0x5f39e2[_0x2f1554(0x27e)]??_0x5bcac0,this[_0x2f1554(0x7b8)]=_0x5f39e2[_0x2f1554(0x2a0)]??_0x1b48e3,this[_0x2f1554(0x279)]=_0x5f39e2[_0x2f1554(0x36d)]??_0x42d25d,this['_started']=![],this[_0x2f1554(0x350)]=new Map(),this['_baselines']=new Map(),this[_0x2f1554(0x597)]=new Map(),this['_flushTimer']=null,this[_0x2f1554(0x549)]=![],this[_0x2f1554(0x5ad)]=new Set(),this['_pendingLocal']=new Set(),this[_0x2f1554(0x558)]=_0x37c5fc=>this[_0x2f1554(0x25e)](_0x37c5fc),this[_0x2f1554(0x51c)]=_0x1eb51b=>this[_0x2f1554(0x53d)](_0x1eb51b),this[_0x2f1554(0x319)]=_0x568286=>this[_0x2f1554(0x1e3)](_0x568286),this[_0x2f1554(0x2ca)]=()=>this[_0x2f1554(0x584)]();}[_0x3fdff4(0x84e)](){const _0x2152d6=_0x3fdff4;if(this[_0x2152d6(0x17f)])return;this['_started']=!![];for(const [_0x3c1a7f,_0x5edc19]of this[_0x2152d6(0x263)][_0x2152d6(0x33b)]){if(_0x3c1a7f[_0x2152d6(0x245)]('~'))continue;try{_0x5edc19['_enableChangelog']();}catch{}}for(const [_0x69d166,_0x1b3464]of this[_0x2152d6(0x263)][_0x2152d6(0x33b)]){if(_0x69d166['startsWith']('~'))continue;try{this[_0x2152d6(0x27c)][_0x2152d6(0x398)](_0x69d166,_0x1b3464['getClock']()||0x0);}catch{}}const {events:_0x5520c2}=this[_0x2152d6(0x263)];_0x5520c2['on'](_0xe26131[_0x2152d6(0x484)],this['_onPending']),_0x5520c2['on'](_0xe26131[_0x2152d6(0x4b4)],this['_onItem']),_0x5520c2['on'](_0xe26131[_0x2152d6(0x698)],this['_onItem']),_0x5520c2['on'](_0xe26131[_0x2152d6(0x36e)],this[_0x2152d6(0x558)]),_0x5520c2['on'](_0xe26131[_0x2152d6(0x859)],this[_0x2152d6(0x319)]),_0x5520c2['once'](_0xe26131[_0x2152d6(0x5f9)],this['_onStop']);}[_0x3fdff4(0x584)](){const _0x2597d4=_0x3fdff4;if(!this[_0x2597d4(0x17f)])return;this[_0x2597d4(0x17f)]=![];const {events:_0x413e7f}=this[_0x2597d4(0x263)];_0x413e7f[_0x2597d4(0x76e)](_0xe26131['ITEM_PENDING'],this[_0x2597d4(0x51c)]),_0x413e7f['off'](_0xe26131[_0x2597d4(0x4b4)],this[_0x2597d4(0x558)]),_0x413e7f[_0x2597d4(0x76e)](_0xe26131[_0x2597d4(0x698)],this[_0x2597d4(0x558)]),_0x413e7f[_0x2597d4(0x76e)](_0xe26131['ITEM_REMOVE'],this[_0x2597d4(0x558)]),_0x413e7f[_0x2597d4(0x76e)](_0xe26131[_0x2597d4(0x859)],this[_0x2597d4(0x319)]);try{_0x413e7f[_0x2597d4(0x76e)](_0xe26131['SYSTEM_STOPPED'],this['_onStop']);}catch{}this['_flushTimer']&&(clearTimeout(this[_0x2597d4(0x85e)]),this[_0x2597d4(0x85e)]=null),this[_0x2597d4(0x597)]['clear'](),this[_0x2597d4(0x350)][_0x2597d4(0x7be)](),this['_baselines'][_0x2597d4(0x7be)](),this[_0x2597d4(0x5ad)][_0x2597d4(0x7be)](),this[_0x2597d4(0x3af)][_0x2597d4(0x7be)]();}[_0x3fdff4(0x1d8)](_0x3e267f,_0x5c863e,_0x15b311,_0x5ec1e4){return _0x3e267f+'\x00'+_0x5c863e+'\x00'+_0x15b311+'\x00'+_0x5ec1e4;}[_0x3fdff4(0x288)](_0x2aa5be,_0x37e3da,_0x4eef54,_0x2e9599){const _0x4a27c4=_0x3fdff4,_0x4bca4a=this['_dedupeKey'](_0x2aa5be,_0x37e3da,_0x4eef54,_0x2e9599);if(this[_0x4a27c4(0x5ad)][_0x4a27c4(0x868)](_0x4bca4a))return![];this[_0x4a27c4(0x5ad)][_0x4a27c4(0x3cc)](_0x4bca4a);if(this[_0x4a27c4(0x5ad)][_0x4a27c4(0x4ad)]>this[_0x4a27c4(0x279)]){const _0x416f11=this[_0x4a27c4(0x5ad)][_0x4a27c4(0x534)]()[_0x4a27c4(0x60b)]()[_0x4a27c4(0x658)];this[_0x4a27c4(0x5ad)][_0x4a27c4(0x6f8)](_0x416f11);}return!![];}[_0x3fdff4(0x53d)](_0x1b72b5){const _0x8cab2=_0x3fdff4;if(!this[_0x8cab2(0x17f)]||!_0x1b72b5)return;const {env:_0x55e725,type:_0x164786,key:_0x25744c,clock:_0x16adb7}=_0x1b72b5;if(_0x55e725==null||_0x164786==null||_0x25744c==null)return;if(typeof _0x55e725===_0x8cab2(0x460)&&_0x55e725[_0x8cab2(0x245)]('~'))return;if(typeof _0x164786==='string'&&_0x164786[_0x8cab2(0x245)]('~'))return;this[_0x8cab2(0x3af)][_0x8cab2(0x3cc)](this[_0x8cab2(0x1d8)](_0x55e725,_0x164786,_0x25744c,_0x16adb7)),this[_0x8cab2(0x3af)][_0x8cab2(0x4ad)]>this[_0x8cab2(0x279)]&&this['_pendingLocal'][_0x8cab2(0x6f8)](this[_0x8cab2(0x3af)][_0x8cab2(0x534)]()['next']()[_0x8cab2(0x658)]);}[_0x3fdff4(0x25e)](_0x6ee173){const _0x364781=_0x3fdff4;if(!this['_started']||!_0x6ee173)return;const {env:_0x2bbded,type:_0x1d8258,key:_0x12e136,clock:_0x27698f,origin:_0x5ae503,action:_0x13f57b,newValue:_0x4adcdf,oldValue:_0x7ef0af}=_0x6ee173;if(_0x2bbded==null||_0x1d8258==null||_0x12e136==null)return;if(typeof _0x2bbded===_0x364781(0x460)&&_0x2bbded['startsWith']('~'))return;if(typeof _0x1d8258==='string'&&_0x1d8258['startsWith']('~'))return;this[_0x364781(0x3af)][_0x364781(0x6f8)](this[_0x364781(0x1d8)](_0x2bbded,_0x1d8258,_0x12e136,_0x27698f));if(!this[_0x364781(0x288)](_0x2bbded,_0x1d8258,_0x12e136,_0x27698f))return;const _0x1ce47e=_0x13f57b===_0x36de2c[_0x364781(0x2c8)]?'remove':_0x364781(0x77c);this[_0x364781(0x380)]('change',{'env':_0x2bbded,'type':_0x1d8258,'key':_0x12e136,'op':_0x1ce47e,'clock':_0x27698f,'origin':_0x5ae503,'value':_0x1ce47e===_0x364781(0x7e6)?null:_0x4adcdf,'prevValue':_0x7ef0af});}['_handlePoke'](_0x26a0da){const _0x2a6623=_0x3fdff4;if(!this[_0x2a6623(0x17f)])return;if(!_0x26a0da||typeof _0x26a0da[_0x2a6623(0x81f)]!==_0x2a6623(0x460)||typeof _0x26a0da['type']!=='string')return;const {env:_0x36049c,type:_0x27cd4d}=_0x26a0da;if(_0x36049c[_0x2a6623(0x245)]('~')||_0x27cd4d[_0x2a6623(0x245)]('~'))return;this[_0x2a6623(0x597)][_0x2a6623(0x398)](_0x36049c+'\x00'+_0x27cd4d,{'env':_0x36049c,'type':_0x27cd4d}),this[_0x2a6623(0x7bd)]();}[_0x3fdff4(0x7bd)](){const _0x1cd26e=_0x3fdff4;if(this[_0x1cd26e(0x85e)])return;const _0x72d7e=()=>{const _0x51e4ff=_0x1cd26e;this[_0x51e4ff(0x85e)]=null,this['_drain']()[_0x51e4ff(0x62c)](()=>{});};this[_0x1cd26e(0x85e)]=setTimeout(_0x72d7e,_0x36b1db(this[_0x1cd26e(0x7b8)]));}async['_drain'](){const _0x5cbe58=_0x3fdff4;if(this[_0x5cbe58(0x549)]){this[_0x5cbe58(0x7bd)]();return;}this[_0x5cbe58(0x549)]=!![];try{const _0x3bf279=[...this[_0x5cbe58(0x597)]['values']()];this['_pending'][_0x5cbe58(0x7be)]();let _0x1ecd0a=![];for(const {env:_0x54e8bc,type:_0x59fb34}of _0x3bf279){try{const _0x822e16=await this[_0x5cbe58(0x503)](_0x54e8bc,_0x59fb34);if(_0x822e16)_0x1ecd0a=!![];}catch{this[_0x5cbe58(0x597)][_0x5cbe58(0x398)](_0x54e8bc+'\x00'+_0x59fb34,{'env':_0x54e8bc,'type':_0x59fb34}),_0x1ecd0a=!![];}}if(_0x1ecd0a||this[_0x5cbe58(0x597)][_0x5cbe58(0x4ad)]>0x0)this[_0x5cbe58(0x7bd)]();}finally{this[_0x5cbe58(0x549)]=![];}}async[_0x3fdff4(0x503)](_0x40b8c4,_0x5f1783){const _0x3429c8=_0x3fdff4,_0x17f2f7=await this[_0x3429c8(0x263)]['_openEnvLazy'](_0x40b8c4),_0x4057f6=_0x40b8c4+'\x00'+_0x5f1783;!this[_0x3429c8(0x350)][_0x3429c8(0x868)](_0x4057f6)&&(!this[_0x3429c8(0x27c)]['has'](_0x40b8c4)&&(_0x17f2f7['_enableChangelog'](),this[_0x3429c8(0x27c)][_0x3429c8(0x398)](_0x40b8c4,_0x17f2f7[_0x3429c8(0x7da)]()||0x0)),this[_0x3429c8(0x350)][_0x3429c8(0x398)](_0x4057f6,this['_baselines'][_0x3429c8(0x4ff)](_0x40b8c4)));const _0x4f8478=this[_0x3429c8(0x350)][_0x3429c8(0x4ff)](_0x4057f6),_0x4fd253=_0x17f2f7[_0x3429c8(0x7da)](_0x5f1783)||0x0;if(_0x4fd253<=_0x4f8478)return![];const _0x2fa6a2=_0x4f8478+this['_quantum'],_0xaa4155=Math['min'](_0x4fd253,_0x2fa6a2),_0x264aae=_0x90d8b7['enabled']?_0x90d8b7[_0x3429c8(0x785)]():0x0,_0x4c3af8=Array['from'](_0x17f2f7[_0x3429c8(0x356)](_0x5f1783,_0x4f8478+0x1,_0xaa4155));let _0x5c8c77=_0x4f8478;for(const _0x46b8da of _0x4c3af8){const {clock:_0x3eaf20,key:_0x523ab1,action:_0x2c803e,origin:_0x45e474}=_0x46b8da;if(_0x3eaf20>_0x5c8c77)_0x5c8c77=_0x3eaf20;if(_0x523ab1==null)continue;if(this[_0x3429c8(0x3af)][_0x3429c8(0x868)](this[_0x3429c8(0x1d8)](_0x40b8c4,_0x5f1783,_0x523ab1,_0x3eaf20)))continue;if(!this[_0x3429c8(0x288)](_0x40b8c4,_0x5f1783,_0x523ab1,_0x3eaf20))continue;let _0x42a9e0,_0x7136c5;if(_0x2c803e===_0x36de2c['REMOVE'])_0x42a9e0=_0x3429c8(0x7e6),_0x7136c5=null;else{const _0x339b7a=_0x17f2f7['get'](_0x5f1783,_0x523ab1);_0x339b7a==null?(_0x42a9e0=_0x3429c8(0x7e6),_0x7136c5=null):(_0x42a9e0=_0x3429c8(0x77c),_0x7136c5=_0x339b7a);}this[_0x3429c8(0x380)](_0x3429c8(0x280),{'env':_0x40b8c4,'type':_0x5f1783,'key':_0x523ab1,'op':_0x42a9e0,'clock':_0x3eaf20,'origin':_0x45e474,'value':_0x7136c5});}if(_0x90d8b7[_0x3429c8(0x28f)])_0x90d8b7[_0x3429c8(0x190)](_0x3429c8(0x61f)+_0x40b8c4+':'+_0x5f1783,_0x90d8b7[_0x3429c8(0x785)]()-_0x264aae,'n='+_0x4c3af8[_0x3429c8(0x2f6)]);return this[_0x3429c8(0x350)][_0x3429c8(0x398)](_0x4057f6,Math[_0x3429c8(0x6c5)](_0x5c8c77,_0xaa4155)),_0x17f2f7[_0x3429c8(0x7da)](_0x5f1783)>_0xaa4155;}[_0x3fdff4(0x392)](){const _0x2b12a5=_0x3fdff4;return{'started':this[_0x2b12a5(0x17f)],'quantum':this[_0x2b12a5(0x78c)],'flushDebounce':this[_0x2b12a5(0x7b8)],'cursors':Object['fromEntries']([...this[_0x2b12a5(0x350)][_0x2b12a5(0x207)]()][_0x2b12a5(0x4ba)](([_0x57d558,_0x3c2e33])=>[_0x57d558[_0x2b12a5(0x756)]('\x00',':'),_0x3c2e33])),'pending':this[_0x2b12a5(0x597)]['size'],'seen':this[_0x2b12a5(0x5ad)][_0x2b12a5(0x4ad)]};}}return _0x41a54d[_0x3fdff4(0x674)]=_0x5bcac0,okdbChangefeed={'OKDBChangefeed':_0x41a54d},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x1f60c2=_0x1c5fdf;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x1bef1c}=requireOkdbEnums(),_0x277e15=new Set([_0x1bef1c[_0x1f60c2(0x4b4)],_0x1bef1c[_0x1f60c2(0x698)],_0x1bef1c['ITEM_REMOVE']]),{ENGINE_EVENTS:_0x516de4}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x6147fd}=requireEnums(),{QUEUE_EVENTS:_0x203c73}=requireOkdbQueueValidate(),_0xcae92=Object[_0x1f60c2(0x534)](_0x1bef1c),_0xa31c33=Object[_0x1f60c2(0x534)](_0x516de4)['map'](_0x2247bf=>_0x1f60c2(0x5f6)+_0x2247bf),_0x1a6414=Object[_0x1f60c2(0x534)](_0x6147fd),_0xac4c8c=Object[_0x1f60c2(0x534)](_0x203c73),_0x215f73=[_0x1f60c2(0x39b),_0x1f60c2(0x4b8),_0x1f60c2(0x417),_0x1f60c2(0x32e),_0x1f60c2(0x3fb),'processor:retry'],_0x31ad8e=[..._0xcae92,..._0xa31c33,..._0x1a6414,..._0xac4c8c,..._0x215f73,_0x1f60c2(0x3de)],_0x390d08=new Set(_0x31ad8e),_0x21d7bb=new Set([_0x1bef1c[_0x1f60c2(0x4b4)],_0x1bef1c[_0x1f60c2(0x698)],_0x1bef1c[_0x1f60c2(0x36e)],_0x1bef1c[_0x1f60c2(0x5de)],_0x1bef1c[_0x1f60c2(0x5d5)],_0x1bef1c[_0x1f60c2(0x464)],_0x1bef1c['SYSTEM_CLOCK_CHANGE'],_0x1bef1c[_0x1f60c2(0x4dd)],_0x6147fd[_0x1f60c2(0x48b)],_0x6147fd[_0x1f60c2(0x54a)],_0x6147fd[_0x1f60c2(0x65d)],_0x6147fd[_0x1f60c2(0x51a)],'processor:progress']),_0x3807d1=_0x31ad8e[_0x1f60c2(0x7f8)](_0x439181=>_0x439181===_0x1f60c2(0x3de)||!_0x21d7bb[_0x1f60c2(0x868)](_0x439181)),_0x4c1966=0x14,_0x1851ba=0xc8;class _0x4776a1{constructor(_0x23449e,_0x16ca7b={}){const _0x4eb116=_0x1f60c2;this['okdb']=_0x23449e,this[_0x4eb116(0x717)]=_0x16ca7b['maxConnections']??_0x4c1966,this[_0x4eb116(0x7c5)]=_0x16ca7b[_0x4eb116(0x1a5)]??_0x1851ba,this[_0x4eb116(0x8a3)]=new Set(),this[_0x4eb116(0x23f)]=[],this[_0x4eb116(0x810)]=[],this[_0x4eb116(0x256)]=null,this['_attached']=![],this['_feed']=null,this[_0x4eb116(0x804)]=null;}['attach'](){const _0x29adea=_0x1f60c2;if(this[_0x29adea(0x644)])return;this[_0x29adea(0x644)]=!![];const {okdb:_0x365a9b}=this;this[_0x29adea(0x256)]=_0x365a9b[_0x29adea(0x3de)][_0x29adea(0x81c)](_0xd2b5b6=>this[_0x29adea(0x37e)]('log',_0xd2b5b6));for(const _0x2f297a of _0x31ad8e){if(_0x2f297a===_0x29adea(0x3de))continue;const _0x52e7ce=_0x277e15[_0x29adea(0x868)](_0x2f297a),_0x4183b2=_0x308a0e=>{const _0x15ef7b=_0x29adea;if(_0x52e7ce&&this['_feed'])return;this[_0x15ef7b(0x37e)](_0x2f297a,_0x308a0e??{});};_0x365a9b[_0x29adea(0x230)]['on'](_0x2f297a,_0x4183b2),this[_0x29adea(0x810)][_0x29adea(0x3c0)]({'event':_0x2f297a,'handler':_0x4183b2});}this[_0x29adea(0x2ca)]=()=>this['detach'](),_0x365a9b[_0x29adea(0x230)][_0x29adea(0x370)](_0x1bef1c[_0x29adea(0x5f9)],this[_0x29adea(0x2ca)]);}[_0x1f60c2(0x7a0)](){const _0x14aedf=_0x1f60c2;if(!this['_attached'])return;if(this[_0x14aedf(0x2ca)]){try{this[_0x14aedf(0x263)]['events']['off'](_0x1bef1c[_0x14aedf(0x5f9)],this['_onStop']);}catch{}this[_0x14aedf(0x2ca)]=null;}this[_0x14aedf(0x256)]?.(),this[_0x14aedf(0x256)]=null;for(const {event:_0x40b566,handler:_0x139453}of this[_0x14aedf(0x810)]){try{this[_0x14aedf(0x263)][_0x14aedf(0x230)][_0x14aedf(0x76e)](_0x40b566,_0x139453);}catch{}}this[_0x14aedf(0x810)]=[];for(const _0x1fe4a5 of this[_0x14aedf(0x8a3)]){try{_0x1fe4a5[_0x14aedf(0x508)]?.();}catch{}}this[_0x14aedf(0x8a3)][_0x14aedf(0x7be)](),this[_0x14aedf(0x430)](),this[_0x14aedf(0x644)]=![];}[_0x1f60c2(0x8a6)](_0x53b912){const _0x1e1d87=_0x1f60c2;if(!_0x53b912||this[_0x1e1d87(0x3f1)]===_0x53b912)return;this[_0x1e1d87(0x430)](),this[_0x1e1d87(0x3f1)]=_0x53b912,this[_0x1e1d87(0x804)]=_0x190122=>{const _0x216645=_0x1e1d87;if(!_0x190122)return;const _0x587a2e=_0x190122['op']===_0x216645(0x7e6)?_0x1bef1c[_0x216645(0x36e)]:_0x1bef1c[_0x216645(0x698)];this['_push'](_0x587a2e,_0x190122);},_0x53b912['on']('change',this['_onFeedChange']);}['detachFeed'](){const _0x5414b2=_0x1f60c2;if(this[_0x5414b2(0x3f1)]&&this[_0x5414b2(0x804)])try{this['_feed'][_0x5414b2(0x76e)]('change',this[_0x5414b2(0x804)]);}catch{}this[_0x5414b2(0x3f1)]=null,this[_0x5414b2(0x804)]=null;}[_0x1f60c2(0x401)](_0x548ef8,_0x33a9bd){const _0x53e07e=_0x1f60c2;if(!_0x390d08[_0x53e07e(0x868)](_0x548ef8))return;this['_push'](_0x548ef8,_0x33a9bd??{});}['subscribe'](_0x48b622,_0x4c6339,_0x5e4428){const _0x274c2e=_0x1f60c2;if(this[_0x274c2e(0x8a3)]['size']>=this['_maxConnections'])return _0x4c6339(_0x274c2e(0x17e),{'message':'Too\x20many\x20concurrent\x20connections','code':_0x274c2e(0x333)}),()=>{};const _0xea1b86=this[_0x274c2e(0x2bf)](_0x48b622),_0x2ddbb5={'send':_0x4c6339,'filter':_0xea1b86,'close':_0x5e4428??null};this[_0x274c2e(0x8a3)][_0x274c2e(0x3cc)](_0x2ddbb5);for(const {event:_0x556365,data:_0x22ea33}of this[_0x274c2e(0x23f)]){if(_0xea1b86['has'](_0x556365))try{_0x4c6339(_0x556365,_0x22ea33);}catch{}}return()=>this[_0x274c2e(0x8a3)][_0x274c2e(0x6f8)](_0x2ddbb5);}['ensureFeed'](){const _0x2691ba=_0x1f60c2;if(this[_0x2691ba(0x3f1)])return this[_0x2691ba(0x3f1)];const {OKDBChangefeed:_0x2e6d6b}=requireOkdbChangefeed(),_0xfcb7dc=new _0x2e6d6b(this['okdb']);_0xfcb7dc[_0x2691ba(0x84e)](),this[_0x2691ba(0x8a6)](_0xfcb7dc);if(this[_0x2691ba(0x263)]&&!this['okdb']['_changefeed'])this[_0x2691ba(0x263)][_0x2691ba(0x48f)]=_0xfcb7dc;return this[_0x2691ba(0x3f1)];}get[_0x1f60c2(0x311)](){const _0xcfb5be=_0x1f60c2;return this[_0xcfb5be(0x8a3)]['size'];}[_0x1f60c2(0x234)](){const _0x4e2724=_0x1f60c2;return{'connections':this['connectionCount'],'bufferSize':this[_0x4e2724(0x23f)][_0x4e2724(0x2f6)],'attached':this['_attached'],'allEvents':_0x31ad8e[_0x4e2724(0x2f6)],'defaultEvents':_0x3807d1[_0x4e2724(0x2f6)]};}static get[_0x1f60c2(0x54f)](){return _0x31ad8e;}static get[_0x1f60c2(0x6bd)](){return _0x3807d1;}static get['HIGH_FREQ_EVENTS'](){return[..._0x21d7bb];}[_0x1f60c2(0x2bf)](_0x35bad0){const _0x55e339=_0x1f60c2;if(!_0x35bad0||!_0x35bad0[_0x55e339(0x2f6)])return new Set(_0x3807d1);const _0x2aa275=_0x35bad0[_0x55e339(0x7f8)](_0x187733=>_0x390d08['has'](_0x187733));return new Set(_0x2aa275[_0x55e339(0x2f6)]?_0x2aa275:_0x3807d1);}[_0x1f60c2(0x37e)](_0x49b0a1,_0x2771a8){const _0x4bcc2f=_0x1f60c2,_0x3b9842={..._0x2771a8,'_ts':_0x2771a8?.[_0x4bcc2f(0x89b)]??_0x2771a8?.['ts']??Date['now']()};this['_buffer'][_0x4bcc2f(0x3c0)]({'event':_0x49b0a1,'data':_0x3b9842});if(this[_0x4bcc2f(0x23f)][_0x4bcc2f(0x2f6)]>this[_0x4bcc2f(0x7c5)])this[_0x4bcc2f(0x23f)][_0x4bcc2f(0x4eb)]();for(const _0x5766a6 of this['_connections']){if(_0x5766a6['filter'][_0x4bcc2f(0x868)](_0x49b0a1))try{_0x5766a6[_0x4bcc2f(0x5c2)](_0x49b0a1,_0x3b9842);}catch{}}}}return okdbRelay=_0x4776a1,okdbRelay;}var hasRequiredLib;function requireLib(){const _0xaa4a0d=_0x1c5fdf;if(hasRequiredLib)return lib[_0xaa4a0d(0x3f6)];return hasRequiredLib=0x1,function(_0x180229){const _0x19d64d=_0xaa4a0d,_0x2cc411=require$$0$6,{load:_0x345f3d}=require$$1$1,_0x536048=requireBridge(),_0x125cdb=requireWritebatch(),{Pumper:_0xb3f12d}=requirePump(),{OKDBEnv:_0x3aa86b,HIGH_SENTINEL:_0x39307f}=requireEnv(),{reclass:_0xf898ca,NotImplementedNative:_0x48fdcc,OKDBError:_0x679bea,optionsArg:_0x5399fb,invalidArgument:_0xbe6c5b}=requireErrors(),{notImplemented:_0x82074}=requireUnsupported(),{OKDBHttp:_0xd59f88}=requireHttp(),{OKDBFts:_0x561dce}=requireFts(),{OKDBEmbeddings:_0x47fe5}=requireEmbeddings(),{OKDBAuth:_0x38a874}=requireAuth(),{OKDBSync:_0x45341e}=requireSync(),{OKDBMigrate:_0x54d704}=requireMigrate(),{OKDBFunctions:_0x1bc938}=requireFunctions(),{OKDBMcp:_0x4ba654}=requireMcp(),{OKDBEngines:_0x118a8f,OKDBPipelines:_0x5da8aa}=requireEngines(),{makeMeta:_0x464a89,makeLicenses:_0x4198a3,makeLicenseChecker:_0x5027f1,makeProcesses:_0x4e0c5c}=requireSys();let _0x14a727=null;function _0x4d1143(_0x50aecf){const _0xcd8bec=_0x20ac;if(!_0x14a727){const {Unpackr:_0x3ccdaf}=require$$18;_0x14a727=new _0x3ccdaf({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x14a727[_0xcd8bec(0x7ef)](_0x50aecf);}let _0x389a7b=null;function _0xacd253(_0x1a4422,_0x2e02eb){if(!_0x389a7b){const {Unpackr:_0x3ecbd1}=require$$18;_0x389a7b=new _0x3ecbd1({'copyBuffers':!![]});}return _0x389a7b['unpack'](_0x1a4422,_0x2e02eb);}const {encodeKey:_0x3bdd98,KEY_BUF_SIZE:_0x28e787,NO_FAST:_0x3a2891}=requireKeyenc(),_0x2e12dd=0x40*0x400,_0x483905=0x4*0x400*0x400;function _0x15760c(_0x128b33,_0x58d2ad){const _0x3bf915=_0x20ac,_0x26555a=_0x128b33[0x2],_0x1b675a=_0x26555a?(_0x128b33[_0x3bf915(0x2f6)]-0x3)/Math['abs'](_0x26555a):0x0,_0x1bd5bf=new Array(_0x1b675a);let _0x1490a2=0x3;if(_0x26555a===0x2){for(let _0xdd0e29=0x0;_0xdd0e29<_0x1b675a;_0xdd0e29++,_0x1490a2+=0x2)_0x1bd5bf[_0xdd0e29]={'key':_0x128b33[_0x1490a2],'value':_0x128b33[_0x1490a2+0x1]};}else{if(_0x26555a===0x3){for(let _0x234b39=0x0;_0x234b39<_0x1b675a;_0x234b39++,_0x1490a2+=0x3)_0x1bd5bf[_0x234b39]={'key':_0x128b33[_0x1490a2],'value':_0x128b33[_0x1490a2+0x1],'version':_0x128b33[_0x1490a2+0x2]};}else{if(_0x26555a===-0x2){for(let _0x42ddda=0x0;_0x42ddda<_0x1b675a;_0x42ddda++,_0x1490a2+=0x2)_0x1bd5bf[_0x42ddda]={'clock':_0x128b33[_0x1490a2],..._0x128b33[_0x1490a2+0x1]};}else{if(_0x26555a===0x4){for(let _0x6c39f0=0x0;_0x6c39f0<_0x1b675a;_0x6c39f0++,_0x1490a2+=0x4)_0x1bd5bf[_0x6c39f0]={'key':_0x128b33[_0x1490a2],'value':_0x128b33[_0x1490a2+0x1],'version':_0x128b33[_0x1490a2+0x2],'indexKey':_0x128b33[_0x1490a2+0x3]};}else{if(_0x1b675a)throw new Error(_0x3bf915(0x6ae)+_0x26555a);}}}}return _0x58d2ad?[_0x128b33[0x0],_0x1bd5bf,_0x128b33[0x1]]:_0x1bd5bf;}let _0x25a2f6=null;function _0x42e4d0(_0x24ddf8,_0x2276e,_0x3f20e1){const _0x1e492d=_0x20ac;if(!_0x25a2f6)_0x25a2f6=requireDist()[_0x1e492d(0x723)];const _0x5f3329=new DataView(_0x24ddf8[_0x1e492d(0x672)],_0x24ddf8['byteOffset'],_0x2276e),_0x790d1a=_0x5f3329['getUint32'](0x10,!![]),_0x477e8f=new Array(_0x790d1a);let _0x1477c=0x14;for(let _0x5d5c01=0x0;_0x5d5c01<_0x790d1a;_0x5d5c01++){const _0x1326f2=_0x24ddf8[_0x1477c]|_0x24ddf8[_0x1477c+0x1]<<0x8;_0x1477c+=0x2,_0x477e8f[_0x5d5c01]=_0x25a2f6(_0x24ddf8,_0x1477c,_0x1477c+_0x1326f2),_0x1477c+=_0x1326f2;}return _0x3f20e1?[_0x5f3329[_0x1e492d(0x3c5)](0x0,!![]),_0x477e8f,_0x5f3329[_0x1e492d(0x3c5)](0x8,!![])]:_0x477e8f;}const _0x1c28f7=requireOkdbLogger(),_0x21dfb6=requireOkdbPlugins(),{OKDB_STATE:_0xb41bd6,EVENTS:_0x310cf0}=requireOkdbEnums(),_0x1dc527=requireStatics();let _0x294caa=null,_0x1aa536=![],_0x5041e1=0x1;const _0x1160a7=new Map(),_0x2da8f4=new Set(['FIELD_RESOLVER_PENDING',_0x19d64d(0x573)]),_0xcfc934=_0x48fea0=>!!_0x48fea0&&_0x2da8f4[_0x19d64d(0x868)](_0x48fea0['code']),_0x397ddb=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x1dbdb4(){const _0x90441b=_0x19d64d;!_0x1aa536&&(_0x3e4a0d()[_0x90441b(0x732)](_0x536048['bridge']),_0x125cdb['install'](_0x3e4a0d()),_0x1aa536=!![]);}function _0x3e4a0d(){if(!_0x294caa)_0x294caa=_0x345f3d();return _0x294caa;}class _0xb670ed extends Map{constructor(_0x254447){super(),this['_db']=_0x254447;}['_sync'](){const _0x52cf61=_0x19d64d,_0x4977d8=this[_0x52cf61(0x567)];if(!_0x4977d8['_isOpen'])return;let _0x21f805;try{_0x21f805=_0x4977d8[_0x52cf61(0x7b0)]('db',null,_0x52cf61(0x48c),[],![]);}catch{return;}for(const _0x30aa11 of _0x21f805)if(!super[_0x52cf61(0x868)](_0x30aa11)&&_0x4977d8[_0x52cf61(0x7b0)]('db',null,_0x52cf61(0x41c),[_0x30aa11],![]))_0x4977d8[_0x52cf61(0x355)](_0x30aa11);}[_0x19d64d(0x4ff)](_0x4a90ec){const _0x5e778f=_0x19d64d,_0x468628=super[_0x5e778f(0x4ff)](_0x4a90ec);if(_0x468628!==undefined||typeof _0x4a90ec!=='string')return _0x468628;const _0x217c4a=this[_0x5e778f(0x567)];if(_0x4a90ec==='~processes')return _0x217c4a['_isOpen']?_0x217c4a[_0x5e778f(0x4a5)][_0x5e778f(0x187)]??undefined:undefined;if(_0x217c4a[_0x5e778f(0x7df)]&&_0x217c4a['_call']('db',null,_0x5e778f(0x41c),[_0x4a90ec],![]))return _0x217c4a[_0x5e778f(0x355)](_0x4a90ec);if(_0x217c4a[_0x5e778f(0x7df)]&&typeof _0x4a90ec===_0x5e778f(0x460)&&!_0x4a90ec[_0x5e778f(0x245)]('~')){_0x217c4a['_call']('db',null,'pumpEnvSync',[],![]);if(_0x217c4a[_0x5e778f(0x7b0)]('db',null,_0x5e778f(0x41c),[_0x4a90ec],![]))return _0x217c4a['_ensureEnv'](_0x4a90ec);}return undefined;}[_0x19d64d(0x868)](_0x5eedde){const _0x16685d=_0x19d64d;return this[_0x16685d(0x4ff)](_0x5eedde)!==undefined;}get[_0x19d64d(0x4ad)](){return this['_sync'](),super['size'];}[_0x19d64d(0x542)](){const _0x5a34bd=_0x19d64d;return this[_0x5a34bd(0x591)](),super[_0x5a34bd(0x542)]();}['values'](){const _0x40297d=_0x19d64d;return this[_0x40297d(0x591)](),super[_0x40297d(0x534)]();}['entries'](){const _0x464142=_0x19d64d;return this[_0x464142(0x591)](),super['entries']();}[_0x19d64d(0x175)](_0x18ff8d,_0x156419){const _0x18e305=_0x19d64d;return this['_sync'](),super[_0x18e305(0x175)](_0x18ff8d,_0x156419);}[Symbol['iterator']](){const _0x2504f0=_0x19d64d;return this[_0x2504f0(0x591)](),super[Symbol[_0x2504f0(0x84c)]]();}}class _0x4b5211{constructor(_0x50dc3a,_0x437d37={}){const _0x12f8e5=_0x19d64d,_0x153507=_0x3e4a0d();this[_0x12f8e5(0x1aa)]=_0x50dc3a,this[_0x12f8e5(0x3da)]=_0x5041e1++,this[_0x12f8e5(0x6f1)]='db'+this[_0x12f8e5(0x3da)],this[_0x12f8e5(0x667)]={..._0x1dc527[_0x12f8e5(0x619)],..._0x437d37,'auth':_0x437d37[_0x12f8e5(0x712)]?{..._0x437d37[_0x12f8e5(0x712)]}:undefined,'lmdb':{..._0x437d37[_0x12f8e5(0x2de)]||{}}},this[_0x12f8e5(0x230)]=new _0x2cc411(),this[_0x12f8e5(0x230)][_0x12f8e5(0x3a2)](0x0),this[_0x12f8e5(0x661)]=new Set(),this['events']['on'](_0x12f8e5(0x710),_0xb13e1a=>this[_0x12f8e5(0x361)](_0xb13e1a)),this[_0x12f8e5(0x3de)]=new _0x1c28f7(this),this[_0x12f8e5(0x3de)][_0x12f8e5(0x590)](),_0x536048[_0x12f8e5(0x6e7)](this['_key'],{'_deliver':(_0x43ab86,_0xca1702)=>this['_deliverEvent'](_0x43ab86,_0xca1702),'_log':_0x65b927=>{const _0x3db4d8=_0x12f8e5;if(this[_0x3db4d8(0x7e3)])this['_bootLog']['push'](_0x65b927);const _0x1118cf=_0x65b927&&_0x65b927['level'];if(_0x1118cf&&Object[_0x3db4d8(0x3c3)]['hasOwnProperty']['call'](this[_0x3db4d8(0x3de)],_0x1118cf)&&typeof this[_0x3db4d8(0x3de)][_0x1118cf]==='function'){const _0x579088=_0x65b927[_0x3db4d8(0x50c)];return this[_0x3db4d8(0x3de)][_0x1118cf](_0x65b927[_0x3db4d8(0x2b4)],{..._0x65b927[_0x3db4d8(0x29e)]||{},..._0x579088&&typeof _0x579088===_0x3db4d8(0x86d)?_0x579088:{}});}return this[_0x3db4d8(0x3de)][_0x3db4d8(0x31b)](_0x65b927);}}),_0x1dbdb4();try{const _0x463049={};if(typeof _0x12f8e5(0x26b)===_0x12f8e5(0x777)||_0x12f8e5(0x26b)!==_0x12f8e5(0x26b));const _0x3e3980={..._0x437d37,'_clusterWorker':require('node:cluster')[_0x12f8e5(0x598)],..._0x463049};this['_keyFns']={'instance':null,'envs':new Map()};typeof _0x437d37[_0x12f8e5(0x6b5)]==='function'&&(this[_0x12f8e5(0x4c5)][_0x12f8e5(0x7b2)]=_0x437d37[_0x12f8e5(0x6b5)],delete _0x3e3980[_0x12f8e5(0x6b5)]);if(_0x437d37['encryptionKeys']&&typeof _0x437d37[_0x12f8e5(0x58f)]===_0x12f8e5(0x86d)){for(const [_0x3cd83e,_0x44136f]of Object[_0x12f8e5(0x207)](_0x437d37[_0x12f8e5(0x58f)]))this['_keyFns'][_0x12f8e5(0x649)][_0x12f8e5(0x398)](_0x3cd83e,_0x44136f);}delete _0x3e3980[_0x12f8e5(0x58f)],this[_0x12f8e5(0x487)]=new _0x153507[(_0x12f8e5(0x4f5))](_0x50dc3a,_0x3e3980,this[_0x12f8e5(0x6f1)]);}catch(_0x333b8a){_0x536048[_0x12f8e5(0x799)](this[_0x12f8e5(0x6f1)]);throw _0xf898ca(_0x333b8a);}this['state']=_0xb41bd6['CREATED'],this[_0x12f8e5(0x7df)]=![],this[_0x12f8e5(0x33b)]=new _0xb670ed(this),this[_0x12f8e5(0x51b)]=new _0xb3f12d({'pump':()=>this[_0x12f8e5(0x487)][_0x12f8e5(0x440)]()}),this['_wb']=new _0x125cdb['WriteBatch'](this),this[_0x12f8e5(0x51b)][_0x12f8e5(0x4c8)]=()=>_0x536048[_0x12f8e5(0x554)](),_0x536048['setKick'](()=>this[_0x12f8e5(0x51b)]['wake'](),this),_0x1160a7[_0x12f8e5(0x398)](this[_0x12f8e5(0x3da)],this),this[_0x12f8e5(0x3a0)]={},_0x536048[_0x12f8e5(0x5e4)](this),this['fts']=new _0x561dce(this),this[_0x12f8e5(0x4bb)]=new _0x47fe5(this),this['engines']=new _0x118a8f(this,null,null),this['pipelines']=new _0x5da8aa(this,null),this[_0x12f8e5(0x29e)]=_0x464a89(this),this[_0x12f8e5(0x30a)]=_0x4198a3(this),this['_license']=_0x5027f1(this),this[_0x12f8e5(0x4a5)]=_0x4e0c5c(this),this[_0x12f8e5(0x66b)]=_0xad9a84(this),this[_0x12f8e5(0x4db)]=new _0x21dfb6(this),this['http']=new _0xd59f88(this),this[_0x12f8e5(0x838)]=new _0x45341e(this),this[_0x12f8e5(0x712)]=new _0x38a874(this),this[_0x12f8e5(0x2fd)]=new _0x1bc938(this,null),this[_0x12f8e5(0x2f0)]=new _0x4ba654(this),this[_0x12f8e5(0x507)]=_0x437d37&&_0x437d37[_0x12f8e5(0x507)]===![]?null:_0x82074(_0x12f8e5(0x507)),this['api']=_0x82074(_0x12f8e5(0x68c)),this[_0x12f8e5(0x666)]=new _0x54d704(this);}[_0x19d64d(0x7b0)](_0x1fa238,_0x5b6989,_0x3002f5,_0x726398,_0x3fc9ae=!![]){const _0x21b211=_0x19d64d;if(_0x3fc9ae&&this[_0x21b211(0x287)]&&this['_wb'][_0x21b211(0x44d)][_0x21b211(0x2f6)])this[_0x21b211(0x287)][_0x21b211(0x715)]();try{return this[_0x21b211(0x487)]['call'](_0x1fa238,_0x5b6989,_0x3002f5,_0x726398);}catch(_0x3408be){throw _0xf898ca(_0x3408be);}finally{if(_0x3fc9ae)this['_pumper']['wake']();}}[_0x19d64d(0x52c)](_0x548ae5,_0x1cfb9,_0x310f6b,_0x37383f){const _0x718dcd=_0x19d64d;let _0x332d11;try{_0x332d11=this[_0x718dcd(0x487)][_0x718dcd(0x6f2)](_0x548ae5,_0x1cfb9,_0x310f6b,_0x37383f);}catch(_0x185532){throw _0xf898ca(_0x185532);}return _0x332d11 instanceof Uint8Array?_0x4d1143(_0x332d11):_0x332d11[0x0];}[_0x19d64d(0x233)](_0x39b785){const _0x309dd3=_0x19d64d;let _0x31a515=this['_rbuf'];if(_0x31a515&&_0x39b785<=_0x31a515[_0x309dd3(0x2f6)])return _0x31a515;let _0x2e8c71=_0x31a515?_0x31a515[_0x309dd3(0x2f6)]:_0x2e12dd;while(_0x2e8c71<_0x39b785)_0x2e8c71*=0x2;if(_0x2e8c71>_0x483905)return _0x31a515;return _0x31a515=this['_rbuf']=Buffer['allocUnsafeSlow'](_0x2e8c71),this[_0x309dd3(0x487)][_0x309dd3(0x59f)](_0x31a515),_0x31a515;}[_0x19d64d(0x59c)](_0xfb76f0,_0xdd3ec8,_0x4f9f0b){const _0x12bb3e=_0x19d64d;if(!this['_rbuf'])this[_0x12bb3e(0x233)](0x0);const _0x26ce5b=this[_0x12bb3e(0x487)][_0x12bb3e(0x5e6)](_0xfb76f0,_0xdd3ec8,_0x4f9f0b);if(typeof _0x26ce5b==='number')return _0xacd253(this[_0x12bb3e(0x1b9)],_0x26ce5b);if(_0x26ce5b===undefined||_0x26ce5b===null)return _0x26ce5b;return this[_0x12bb3e(0x233)](_0x26ce5b[_0x12bb3e(0x2f6)]),_0xacd253(_0x26ce5b);}[_0x19d64d(0x61c)](_0xc2f3b2,_0x2a40a4,_0x3d36ec){const _0x11e446=_0x19d64d;let _0xa8944c=this[_0x11e446(0x26a)];if(!_0xa8944c){_0xa8944c=this[_0x11e446(0x26a)]=Buffer[_0x11e446(0x394)](_0x28e787),this[_0x11e446(0x487)][_0x11e446(0x677)](_0xa8944c),this['_tids']=new Map();if(!this['_rbuf'])this[_0x11e446(0x233)](0x0);}const _0xc56c2a=_0x3bdd98(_0x3d36ec,_0xa8944c);if(_0xc56c2a<0x0)return _0x3a2891;let _0x1324af=this['_tids'][_0x11e446(0x4ff)](_0xc2f3b2);if(_0x1324af===undefined)this['_tids'][_0x11e446(0x398)](_0xc2f3b2,_0x1324af=new Map());let _0xb25564=_0x1324af[_0x11e446(0x4ff)](_0x2a40a4);if(_0xb25564===undefined)_0x1324af[_0x11e446(0x398)](_0x2a40a4,_0xb25564=this[_0x11e446(0x487)][_0x11e446(0x594)](_0xc2f3b2,_0x2a40a4));if(_0xb25564<0x0)return _0x3a2891;const _0x443f59=this[_0x11e446(0x487)][_0x11e446(0x512)](_0xb25564,_0xc56c2a);if(typeof _0x443f59===_0x11e446(0x46d))return _0xacd253(this[_0x11e446(0x1b9)],_0x443f59);if(_0x443f59===undefined||_0x443f59===null)return _0x443f59;return this['_readBuf'](_0x443f59[_0x11e446(0x2f6)]),_0xacd253(_0x443f59);}[_0x19d64d(0x6ee)](_0x113bc8,_0x1d4059,_0xafd71b){const _0x417ba0=_0x19d64d;if(!this['_rbuf'])this[_0x417ba0(0x233)](0x0);let _0xe18c2b;try{_0xe18c2b=this[_0x417ba0(0x487)]['callRows'](_0x113bc8,_0x1d4059,_0xafd71b);}catch(_0xbf564d){throw _0xf898ca(_0xbf564d);}const _0x4aab29=_0x1d4059==='pinned',_0x1e768f=_0x4aab29?_0xafd71b[0x1]:_0x1d4059;let _0x1ab97e=this[_0x417ba0(0x1b9)],_0x3badf6=_0xe18c2b;if(_0xe18c2b instanceof Uint8Array)this[_0x417ba0(0x233)](_0xe18c2b['length']),_0x1ab97e=_0xe18c2b,_0x3badf6=_0xe18c2b[_0x417ba0(0x2f6)];else{if(typeof _0xe18c2b!=='number')return _0xe18c2b[0x0];}if(_0x1e768f===_0x417ba0(0x608))return _0x42e4d0(_0x1ab97e,_0x3badf6,_0x4aab29);if(_0x1e768f===_0x417ba0(0x7ae))return _0xacd253(_0x1ab97e,_0x3badf6);return _0x15760c(_0xacd253(_0x1ab97e,_0x3badf6),_0x4aab29);}[_0x19d64d(0x217)](_0x1acb5,_0x360120,_0x2c3f6c,_0x3dcb44,_0x10501c=!![],_0x54d0a2=!![]){const _0x33540a=_0x19d64d,_0x36b598=()=>this[_0x33540a(0x580)](()=>this[_0x33540a(0x7b0)](_0x1acb5,_0x360120,_0x2c3f6c,_0x3dcb44,_0x10501c));if(!_0x54d0a2)return _0x36b598();return this['_retryPending'](_0x36b598);}[_0x19d64d(0x6ba)](_0xe45779){const _0x1f005a=_0x19d64d;return _0xe45779()[_0x1f005a(0x62c)](async _0x106ad2=>{const _0x354eb9=_0x1f005a;if(!_0xcfc934(_0x106ad2))throw _0x106ad2;const _0x50d833=Date[_0x354eb9(0x785)]()+_0x397ddb;let _0x47fe33=0x1;while(_0xcfc934(_0x106ad2)&&Date[_0x354eb9(0x785)]()<_0x50d833){await new Promise(_0x2fe951=>setTimeout(_0x2fe951,_0x47fe33)),_0x47fe33=Math['min'](_0x47fe33*0x2,0x14);try{return await _0xe45779();}catch(_0x39de7f){_0x106ad2=_0x39de7f;}}throw _0x106ad2;});}[_0x19d64d(0x7b5)](_0x4b8d9d){if(_0x536048['inNativeCall']())return Promise['resolve'](_0x4b8d9d);return new Promise(_0x2e2b25=>setImmediate(()=>_0x2e2b25(_0x4b8d9d)));}[_0x19d64d(0x1d6)](_0x3d2625){const _0x31bc40=_0x19d64d;if(_0x536048['inNativeCall']())return Promise['resolve'](_0x3d2625);return this[_0x31bc40(0x79e)]()['then'](()=>_0x3d2625);}[_0x19d64d(0x79e)](){return new Promise(_0x394b18=>setImmediate(()=>{const _0x1fd8e4=_0x20ac;let _0x43647c;try{_0x43647c=this[_0x1fd8e4(0x487)][_0x1fd8e4(0x634)]();}catch{return _0x394b18();}_0x125cdb['whenSettled'](_0x43647c,_0x394b18);}));}['_macro'](_0x243b36){return new Promise((_0x59c442,_0x3ebd57)=>setImmediate(()=>{try{_0x59c442(_0x243b36());}catch(_0x23989f){_0x3ebd57(_0x23989f);}}));}[_0x19d64d(0x451)](_0x2db1e2,_0x59d2d5,_0xc94e79){return _0x5b0d37(_0x2db1e2,_0x59d2d5,_0xc94e79);}[_0x19d64d(0x361)](_0x186016){const _0x59a7c4=_0x19d64d;if(typeof _0x186016!==_0x59a7c4(0x460)||this[_0x59a7c4(0x661)][_0x59a7c4(0x868)](_0x186016)||_0x186016===_0x59a7c4(0x710)||_0x186016===_0x59a7c4(0x647))return;this[_0x59a7c4(0x661)]['add'](_0x186016);try{this[_0x59a7c4(0x487)][_0x59a7c4(0x765)](_0x59a7c4(0x230),null,_0x59a7c4(0x6a0),[this[_0x59a7c4(0x6f1)],_0x186016]);}catch{}}[_0x19d64d(0x2e4)](_0x332d23,_0x3a73f0){const _0x2b4b8b=_0x19d64d;this[_0x2b4b8b(0x230)][_0x2b4b8b(0x380)](_0x332d23,_0x3a73f0);}async[_0x19d64d(0x3df)](){const _0x3a62f1=_0x19d64d,_0x5792ac=this[_0x3a62f1(0x4c5)];if(_0x5792ac[_0x3a62f1(0x7b2)])this[_0x3a62f1(0x21c)](null,await _0x5792ac[_0x3a62f1(0x7b2)](null),!![]);for(const [_0x54a918,_0xa758b4]of _0x5792ac['envs'])this[_0x3a62f1(0x21c)](_0x54a918,typeof _0xa758b4===_0x3a62f1(0x5c4)?await _0xa758b4(_0x54a918):_0xa758b4,typeof _0xa758b4===_0x3a62f1(0x5c4));(_0x5792ac[_0x3a62f1(0x7b2)]||[..._0x5792ac[_0x3a62f1(0x649)][_0x3a62f1(0x534)]()][_0x3a62f1(0x7ce)](_0x25c003=>typeof _0x25c003===_0x3a62f1(0x5c4)))&&!this[_0x3a62f1(0x515)]&&(this[_0x3a62f1(0x515)]=_0x15fc6b=>{const _0x1b0b77=_0x3a62f1,_0x2c714f=_0x15fc6b&&_0x15fc6b[_0x1b0b77(0x81f)]!=null?_0x15fc6b[_0x1b0b77(0x81f)]:null,_0x620864=_0x2c714f==null?_0x5792ac['instance']:_0x5792ac[_0x1b0b77(0x649)][_0x1b0b77(0x4ff)](_0x2c714f);if(typeof _0x620864!==_0x1b0b77(0x5c4))return;Promise[_0x1b0b77(0x4a2)]()[_0x1b0b77(0x8a9)](()=>_0x620864(_0x2c714f))['then'](_0x3efaca=>this['_setKey'](_0x2c714f,_0x3efaca,!![]))[_0x1b0b77(0x62c)](_0x5d79fb=>this[_0x1b0b77(0x3de)]['error'](_0x1b0b77(0x62d)+(_0x5d79fb&&_0x5d79fb[_0x1b0b77(0x5e1)]),{'env':_0x2c714f}));},this[_0x3a62f1(0x230)]['on'](_0x3a62f1(0x750),this[_0x3a62f1(0x515)]));}[_0x19d64d(0x21c)](_0x69e0a1,_0x3c2570,_0x203cdc){const _0x310096=_0x19d64d;if(_0x3c2570==null)throw new _0x679bea(_0x310096(0x418)+(_0x69e0a1?_0x310096(0x880)+_0x69e0a1+'\x22':'')+_0x310096(0x21f),_0x310096(0x89c));this[_0x310096(0x487)][_0x310096(0x765)]('db',null,'setEncryptionKey',[_0x69e0a1,_0x3c2570,!!_0x203cdc]);}async[_0x19d64d(0x2e5)](_0x4d1498){const _0x5d6bd2=_0x19d64d;this[_0x5d6bd2(0x7a9)]();const {env:env=null,to:_0x408b51}=_0x5399fb(_0x4d1498),_0x43ad96=typeof _0x408b51===_0x5d6bd2(0x5c4),_0x15d45b=_0x43ad96?await _0x408b51(env):_0x408b51;if(_0x15d45b==null)throw _0xbe6c5b(_0x5d6bd2(0x1fd),_0x5d6bd2(0x2f2),_0x15d45b);const _0x3ccd5d=this[_0x5d6bd2(0x7b0)]('db',null,'changeEncryptionKey',[env,_0x15d45b,_0x43ad96]);if(_0x43ad96){if(env==null)this[_0x5d6bd2(0x4c5)][_0x5d6bd2(0x7b2)]=_0x408b51;else this[_0x5d6bd2(0x4c5)][_0x5d6bd2(0x649)]['set'](env,_0x408b51);}return _0x3ccd5d;}async[_0x19d64d(0x35e)](_0x25ed41){const _0x1aa74d=_0x19d64d;this[_0x1aa74d(0x7a9)]();const _0x51bd27=_0x5399fb(_0x25ed41);if(!_0x51bd27[_0x1aa74d(0x81f)])throw _0xbe6c5b(_0x1aa74d(0x2c1),_0x1aa74d(0x3ad),_0x51bd27['env']);let _0x58074f=_0x51bd27['to'];const _0x438986=typeof _0x58074f===_0x1aa74d(0x5c4);if(_0x438986)_0x58074f=await _0x51bd27['to'](_0x51bd27[_0x1aa74d(0x81f)]);const _0x3454fb=await this[_0x1aa74d(0x580)](()=>this[_0x1aa74d(0x7b0)]('db',null,'reencrypt',[_0x51bd27[_0x1aa74d(0x81f)],'to'in _0x51bd27?_0x58074f:undefined,_0x438986]));if(_0x438986)this[_0x1aa74d(0x4c5)][_0x1aa74d(0x649)]['set'](_0x51bd27[_0x1aa74d(0x81f)],_0x51bd27['to']);return _0x3454fb;}async[_0x19d64d(0x3ca)](){const _0x4457bb=_0x19d64d;if(this[_0x4457bb(0x827)]===_0xb41bd6[_0x4457bb(0x39d)])return;if(this['state']!==_0xb41bd6[_0x4457bb(0x2ec)])throw new _0x679bea(_0x4457bb(0x5d0),'INVALID_STATE',{'state':this[_0x4457bb(0x827)]});this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x5eb)],this[_0x4457bb(0x7e3)]=[];try{try{await this[_0x4457bb(0x3df)](),await this[_0x4457bb(0x580)](()=>this[_0x4457bb(0x487)][_0x4457bb(0x3ca)]());}catch(_0x2b8390){throw _0xf898ca(_0x2b8390);}}catch(_0x12adbc){this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x25c)],this[_0x4457bb(0x7e3)]=null,this['_teardownNative']();throw _0x12adbc;}this[_0x4457bb(0x7df)]=!![],this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x39d)];try{this[_0x4457bb(0x7b0)]('db',null,_0x4457bb(0x214),[this[_0x4457bb(0x4db)][_0x4457bb(0x446)]['map'](_0x15024c=>_0x15024c[_0x4457bb(0x522)]?.[_0x4457bb(0x80a)])['filter'](Boolean)],![]),await this['plugins'][_0x4457bb(0x84e)]();}catch(_0x1056d9){this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x615)];try{this[_0x4457bb(0x487)][_0x4457bb(0x508)]();}catch{}this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x25c)],this['_isOpen']=![],this[_0x4457bb(0x3c9)]();throw _0x1056d9;}for(const _0x16d6e2 of this[_0x4457bb(0x7b0)]('db',null,_0x4457bb(0x48c),[],![]))if(!_0x16d6e2['startsWith']('~'))this[_0x4457bb(0x355)](_0x16d6e2);try{if(this[_0x4457bb(0x7b0)]('db',null,_0x4457bb(0x41c),[_0x4457bb(0x192)],![])){this['_logEnv']=this['_ensureEnv'](_0x4457bb(0x192));const _0x3af345=new Set(this[_0x4457bb(0x3de)][_0x4457bb(0x5c3)]);this[_0x4457bb(0x81a)]=this[_0x4457bb(0x3de)]['attachOKDB'](this[_0x4457bb(0x831)],this['id']);const _0x2aef9e=[...this[_0x4457bb(0x3de)]['_sinks']]['find'](_0x1a930a=>!_0x3af345[_0x4457bb(0x868)](_0x1a930a)),_0x42037d=this['_call']('db',null,_0x4457bb(0x642),[],![]);for(const _0x5b9cf6 of(this[_0x4457bb(0x7e3)]??[])[_0x4457bb(0x5d1)](_0x42037d))_0x2aef9e?.(_0x5b9cf6);}}catch{}this[_0x4457bb(0x7e3)]=null,this[_0x4457bb(0x487)][_0x4457bb(0x3ac)](()=>this['_pumper'][_0x4457bb(0x577)]()),this['_pumper'][_0x4457bb(0x84e)]();}async[_0x19d64d(0x4b5)](){const _0x639333=_0x19d64d;return this['_callMacro']('db',null,_0x639333(0x6c0),[]);}async['close'](){const _0x200aba=_0x19d64d;if(this[_0x200aba(0x827)]===_0xb41bd6[_0x200aba(0x25c)])return;if(this[_0x200aba(0x827)]!==_0xb41bd6['STARTED'])throw new _0x679bea(_0x200aba(0x801),'INVALID_STATE',{'state':this[_0x200aba(0x827)]});this[_0x200aba(0x827)]=_0xb41bd6['STOPPING'],this['_isOpen']=![];let _0x44acc7=null;if(this[_0x200aba(0x367)][_0x200aba(0x55f)][_0x200aba(0x2f6)])try{await this[_0x200aba(0x367)][_0x200aba(0x508)]();}catch(_0x17fd3){_0x44acc7=_0x17fd3;}if(this[_0x200aba(0x4a6)]){try{this[_0x200aba(0x4a6)][_0x200aba(0x430)](),this['__adminRelay'][_0x200aba(0x7a0)]();}catch{}this[_0x200aba(0x4a6)]=null;}try{this[_0x200aba(0x48f)]?.[_0x200aba(0x584)]?.();}catch{}try{await this['plugins'][_0x200aba(0x584)]();}catch(_0x34e57d){_0x44acc7=_0x34e57d;}for(const _0x5b1f03 of[...Map[_0x200aba(0x3c3)][_0x200aba(0x534)][_0x200aba(0x765)](this['_envs'])]){try{await _0x5b1f03[_0x200aba(0x6e4)][_0x200aba(0x201)]();}catch{}try{await _0x5b1f03[_0x200aba(0x41f)][_0x200aba(0x584)]();}catch{}}for(const _0x45413a of[()=>this[_0x200aba(0x838)][_0x200aba(0x584)](),()=>this[_0x200aba(0x4bb)][_0x200aba(0x584)](),()=>this[_0x200aba(0x6bf)]&&this[_0x200aba(0x6bf)][_0x200aba(0x584)]?.()]){try{await _0x45413a();}catch{}}const _0x2f96e=this[_0x200aba(0x667)][_0x200aba(0x1b5)]??0x7530,_0x119433=[];for(const _0x4c7598 of[...Map[_0x200aba(0x3c3)][_0x200aba(0x534)][_0x200aba(0x765)](this[_0x200aba(0x33b)])]){if(_0x4c7598['queue']?.[_0x200aba(0x251)]?.[_0x200aba(0x4ad)]>0x0)_0x119433[_0x200aba(0x3c0)](_0x4c7598[_0x200aba(0x44d)][_0x200aba(0x201)](_0x2f96e));}if(_0x119433['length']>0x0)await Promise[_0x200aba(0x30f)](_0x119433);try{this[_0x200aba(0x81a)]?.();}catch{}this[_0x200aba(0x81a)]=null;try{await this[_0x200aba(0x287)][_0x200aba(0x61a)]();}catch{}this[_0x200aba(0x51b)][_0x200aba(0x584)]();try{await this[_0x200aba(0x580)](()=>this[_0x200aba(0x487)][_0x200aba(0x508)]());}catch(_0x24a948){_0x44acc7=_0x44acc7||_0xf898ca(_0x24a948);}this['state']=_0xb41bd6[_0x200aba(0x25c)],this[_0x200aba(0x3c9)](),Map['prototype']['clear'][_0x200aba(0x765)](this[_0x200aba(0x33b)]);if(_0x44acc7)throw _0x44acc7;}[_0x19d64d(0x3c9)](){const _0xff2852=_0x19d64d;this[_0xff2852(0x51b)][_0xff2852(0x584)]();try{this[_0xff2852(0x487)][_0xff2852(0x3ac)](null);}catch{}try{this[_0xff2852(0x487)][_0xff2852(0x600)]();}catch{}this[_0xff2852(0x1b9)]=null,this[_0xff2852(0x26a)]=null,this[_0xff2852(0x5a7)]=null,_0x536048['unregisterTarget'](this[_0xff2852(0x6f1)]),_0x536048[_0xff2852(0x209)](this),_0x1160a7[_0xff2852(0x6f8)](this[_0xff2852(0x3da)]);if(_0x536048['kickOwnedBy'](this)){const _0x22b1d4=[..._0x1160a7[_0xff2852(0x534)]()][_0xff2852(0x21e)]();if(_0x22b1d4)_0x536048[_0xff2852(0x29c)](()=>_0x22b1d4[_0xff2852(0x51b)]['wake'](),_0x22b1d4);else _0x536048[_0xff2852(0x29c)](()=>{},null);}}get['id'](){const _0x52ec8b=_0x19d64d;return this[_0x52ec8b(0x7b0)]('db',null,'id',[],![]);}[_0x19d64d(0x83c)](_0x3e26e2){const _0x1eb2c4=_0x19d64d;return this[_0x1eb2c4(0x81f)]('default')[_0x1eb2c4(0x83c)](_0x3e26e2);}get[_0x19d64d(0x4a8)](){const _0x1ee2e8=_0x19d64d;return this[_0x1ee2e8(0x5da)][_0x1ee2e8(0x4ff)](_0x1ee2e8(0x3a8));}get[_0x19d64d(0x183)](){const _0x468d76=_0x19d64d;return this[_0x468d76(0x838)][_0x468d76(0x183)];}get[_0x19d64d(0x551)](){const _0x3fe3b4=_0x19d64d;return this[_0x3fe3b4(0x838)][_0x3fe3b4(0x551)];}get['_subsV2'](){const _0x5d4b4b=_0x19d64d;if(!this[_0x5d4b4b(0x7df)]||!this['_call']('db',null,_0x5d4b4b(0x75c),[],![]))return undefined;if(!this[_0x5d4b4b(0x72e)]){const _0x10ca3d=requireOkdbSubscriptionsStore(),_0x5d6fea=new _0x10ca3d(this,this[_0x5d4b4b(0x667)]&&this[_0x5d4b4b(0x667)][_0x5d4b4b(0x497)]);_0x5d6fea['_sub']=this[_0x5d4b4b(0x81f)]('~sub');const {compileFilter:_0x438e92}=requireOkdbQueryFilter(),_0x3f0d4b=(_0x5675be,_0x4ffa6b)=>{if(_0x5675be==null)return![];try{return _0x438e92(_0x5675be)(_0x4ffa6b);}catch{return![];}};this[_0x5d4b4b(0x72e)]={'store':_0x5d6fea,'router':{'_matches':_0x3f0d4b}};}return this['_subsV2Obj'];}get['_role'](){const _0x10ce57=_0x19d64d;return this[_0x10ce57(0x302)];}get[_0x19d64d(0x2ed)](){const _0x9e57ba=_0x19d64d;return this['_call']('db',null,_0x9e57ba(0x2ed),[],![]);}get[_0x19d64d(0x302)](){const _0x304673=_0x19d64d;return{...this[_0x304673(0x7b0)]('db',null,_0x304673(0x302),[],![])};}get[_0x19d64d(0x75b)](){const _0x411d45=_0x19d64d;return require$$29[_0x411d45(0x75b)];}get[_0x19d64d(0x606)](){const _0x4ba234=_0x19d64d;return this[_0x4ba234(0x7b0)]('db',null,_0x4ba234(0x49c),[],![]);}get[_0x19d64d(0x427)](){const _0x651541=_0x19d64d;return this[_0x651541(0x7b0)]('db',null,_0x651541(0x427),[],![]);}[_0x19d64d(0x79f)](){const _0x5b101e=_0x19d64d;return this[_0x5b101e(0x7b0)]('db',null,_0x5b101e(0x6a3),[],![]);}['diag'](){const _0xeeeed9=_0x19d64d;return this[_0xeeeed9(0x7b0)]('db',null,'diag',[],![]);}async[_0x19d64d(0x403)](_0x1f3614){const _0x358ffa=_0x19d64d;this[_0x358ffa(0x7a9)](),this[_0x358ffa(0x7b0)]('db',null,_0x358ffa(0x403),[_0x1f3614],![]);}['pressure'](){const _0x3edc0=_0x19d64d,_0x5e8dba=Date[_0x3edc0(0x785)]();if(this[_0x3edc0(0x60a)]&&_0x5e8dba-this[_0x3edc0(0x60a)]['at']<0xfa)return this[_0x3edc0(0x60a)][_0x3edc0(0x658)];const _0x2c2ffa=this['_call']('db',null,_0x3edc0(0x68b),[],![]);return this[_0x3edc0(0x60a)]={'at':_0x5e8dba,'value':_0x2c2ffa},_0x2c2ffa;}[_0x19d64d(0x7a9)](){const _0x3f0f5b=_0x19d64d;if(!this[_0x3f0f5b(0x7df)])throw new _0x679bea(_0x3f0f5b(0x801),_0x3f0f5b(0x87e),{'state':this['state']});}get[_0x19d64d(0x29f)](){const _0x4838fa=_0x19d64d;if(this[_0x4838fa(0x827)]===_0xb41bd6[_0x4838fa(0x25c)]||!this['_isOpen'])return null;if(this['_call']('db',null,'busState',[],![])==null)return null;if(!this['_busFacade']){const _0x4f04c2=this;this[_0x4838fa(0x8ab)]={get 'state'(){const _0x4cab13=_0x4838fa;return _0x4f04c2[_0x4cab13(0x7b0)]('db',null,'busState',[],![]);},get 'magic'(){const _0x18945d=_0x4838fa;return Buffer[_0x18945d(0x6a7)](_0x18945d(0x614)+_0x4f04c2['id']);},get 'isRunning'(){const _0x3ac01c=_0x4838fa;return _0x4f04c2['_call']('db',null,'busState',[],![])===_0x3ac01c(0x282);},'emit'(_0x26d50f,_0x5b49fb=''){const _0x271666=_0x4838fa;_0x4f04c2['_call']('db',null,_0x271666(0x629),[_0x26d50f,String(_0x5b49fb)],![]);}};}return this['_busFacade'];}[_0x19d64d(0x7ed)](_0x8b6310,_0x31aee5){const _0xf4dfdf=_0x19d64d;this['bus']?.['emit']('bus:proc',JSON['stringify']({'kind':_0xf4dfdf(0x583),'scope':_0x8b6310,'key':_0x31aee5}));}get['locks'](){const _0xb73091=_0x19d64d;return this[_0xb73091(0x455)]||(this[_0xb73091(0x455)]=new(requireLock())[(_0xb73091(0x390))](this,_0xb73091(0x199),_0xb73091(0x28a)));}get['_rootDb'](){const _0x1f804=_0x19d64d;return this['_systemEnv']?this[_0x1f804(0x25d)]['db']:undefined;}get[_0x19d64d(0x281)](){const _0x531e25=_0x19d64d,_0x715f38=this[_0x531e25(0x25d)]?.[_0x531e25(0x6e4)];if(!_0x715f38)return null;const _0x3824ec=_0x715f38[_0x531e25(0x690)]()[_0x531e25(0x5a2)](_0x4c7eb7=>_0x4c7eb7['meta']?.[_0x531e25(0x80a)]==='system:env-sync');return _0x3824ec?_0x715f38[_0x531e25(0x260)](_0x3824ec['id'],_0x3824ec['cursorKey']):null;}get[_0x19d64d(0x25d)](){const _0x3d750b=_0x19d64d;return this[_0x3d750b(0x7df)]?this[_0x3d750b(0x33b)][_0x3d750b(0x4ff)]('~system'):undefined;}[_0x19d64d(0x355)](_0xef77d2){const _0x400dd8=_0x19d64d;let _0x249f05=Map['prototype'][_0x400dd8(0x4ff)][_0x400dd8(0x765)](this['_envs'],_0xef77d2);if(!_0x249f05){_0x249f05=new _0x3aa86b(this,_0xef77d2),Map[_0x400dd8(0x3c3)][_0x400dd8(0x398)][_0x400dd8(0x765)](this[_0x400dd8(0x33b)],_0xef77d2,_0x249f05);if(_0xef77d2===_0x400dd8(0x3e4))this[_0x400dd8(0x7c0)]=_0x249f05;}return _0x249f05;}['env'](_0x55532e='default'){const _0x537e30=_0x19d64d,_0x3f7a7a=this[_0x537e30(0x33b)][_0x537e30(0x4ff)](_0x55532e);if(_0x3f7a7a)return _0x3f7a7a;if(this[_0x537e30(0x7df)]&&this[_0x537e30(0x7b0)]('db',null,_0x537e30(0x41c),[_0x55532e],![]))return this[_0x537e30(0x355)](_0x55532e);throw new _0x679bea(_0x537e30(0x44a)+_0x55532e+'\x22\x20not\x20found',_0x537e30(0x802));}get[_0x19d64d(0x3e4)](){const _0x3a3c60=_0x19d64d;return this[_0x3a3c60(0x81f)](_0x3a3c60(0x3e4));}get[_0x19d64d(0x315)](){const _0x4cc83a=_0x19d64d;return this[_0x4cc83a(0x33b)]['get'](_0x4cc83a(0x3e4))??this[_0x4cc83a(0x7c0)];}get['files'](){const _0x3b5413=_0x19d64d;return this[_0x3b5413(0x315)]['files'];}get[_0x19d64d(0x44d)](){const _0x28100f=_0x19d64d;return this[_0x28100f(0x315)][_0x28100f(0x44d)];}['_timerHandle'](_0x4e63b2){const _0x23f5d8=_0x19d64d;if(!this['_isOpen'])return null;return this['_call']('db',null,_0x23f5d8(0x631),[_0x4e63b2],![])?{'ref'(){},'unref'(){}}:null;}get[_0x19d64d(0x3f3)](){const _0x240d40=_0x19d64d;return this['_timerHandle'](_0x240d40(0x45c));}[_0x19d64d(0x4fa)](){return this['_call']('db',null,'reconcileDesired',[],!![]);}get[_0x19d64d(0x206)](){const _0x340430=_0x19d64d;return this[_0x340430(0x68a)](_0x340430(0x457));}get[_0x19d64d(0x38e)](){const _0x55d28e=_0x19d64d;return this[_0x55d28e(0x68a)]('writerWatchdog');}get[_0x19d64d(0x4b2)](){const _0x5a5a13=_0x19d64d;return this[_0x5a5a13(0x81f)]('default')['_hlc'];}get['workers'](){const _0x9d18cb=_0x19d64d;throw new _0x679bea('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.',_0x9d18cb(0x652));}get[_0x19d64d(0x6e4)](){const _0x16dcff=_0x19d64d;return this[_0x16dcff(0x315)][_0x16dcff(0x6e4)];}get[_0x19d64d(0x448)](){const _0x2bb899=_0x19d64d;return this[_0x2bb899(0x315)][_0x2bb899(0x448)];}async['createEnvironment'](_0x329d18,_0xd4a4cc={}){const _0x4a391c=_0x19d64d;this[_0x4a391c(0x7a9)]();if(_0xd4a4cc&&typeof _0xd4a4cc[_0x4a391c(0x6b5)]==='function'){const _0x547699=_0xd4a4cc[_0x4a391c(0x6b5)];this[_0x4a391c(0x21c)](_0x329d18,await _0x547699(_0x329d18),!![]),this[_0x4a391c(0x4c5)][_0x4a391c(0x649)][_0x4a391c(0x398)](_0x329d18,_0x547699),_0xd4a4cc={..._0xd4a4cc,'encryptionKey':!![]};}return this[_0x4a391c(0x7b0)]('db',null,'createEnvironment',[_0x329d18,_0xd4a4cc]),this[_0x4a391c(0x355)](_0x329d18);}async[_0x19d64d(0x695)](_0x57a0a0){const _0x2569ec=_0x19d64d;if(!this[_0x2569ec(0x7df)])throw new _0x679bea('Cannot\x20openEnv(\x22'+_0x57a0a0+_0x2569ec(0x604),_0x2569ec(0x87e));return this['_call']('db',null,_0x2569ec(0x695),[_0x57a0a0]),this[_0x2569ec(0x355)](_0x57a0a0);}get[_0x19d64d(0x611)](){const _0x2d31f6=_0x19d64d;if(!this['__adminRelay']&&this[_0x2d31f6(0x7df)]){const _0x2a6529=requireOkdbRelay(),_0xc0a4d4=new _0x2a6529(this,this['options']?.['admin']?.[_0x2d31f6(0x28b)]??{});_0xc0a4d4[_0x2d31f6(0x81c)](),_0xc0a4d4[_0x2d31f6(0x5e5)]=!![],this[_0x2d31f6(0x4a6)]=_0xc0a4d4;}return this['__adminRelay']??null;}set[_0x19d64d(0x611)](_0x3051ac){const _0x5c764a=_0x19d64d;this[_0x5c764a(0x4a6)]=_0x3051ac;}get[_0x19d64d(0x877)](){const _0x63677c=_0x19d64d;let _0x11cc47=0x0;if(this[_0x63677c(0x7df)])for(const [_0x1498d4]of Map[_0x63677c(0x3c3)][_0x63677c(0x207)][_0x63677c(0x765)](this['_envs'])){try{_0x11cc47+=this[_0x63677c(0x7b0)](_0x63677c(0x71c),_0x1498d4,_0x63677c(0x749),[],![])||0x0;}catch{}}return{'total':_0x11cc47,'maxObserved':_0x11cc47>0x0?0x1:0x0,'inFlight':0x0};}async[_0x19d64d(0x332)](_0x9a5310){const _0x2d65c8=_0x19d64d,_0x3bd6b9=this[_0x2d65c8(0x33b)]['get'](_0x9a5310);if(_0x3bd6b9)return _0x3bd6b9;if(!this[_0x2d65c8(0x7b0)]('db',null,_0x2d65c8(0x41c),[_0x9a5310],![]))throw new Error(_0x2d65c8(0x4c4)+_0x9a5310+_0x2d65c8(0x556));return this[_0x2d65c8(0x695)](_0x9a5310);}async[_0x19d64d(0x819)](_0x202d9a){const _0x2a2d28=_0x19d64d,_0x244cce=this[_0x2a2d28(0x7b0)]('db',null,_0x2a2d28(0x331),[_0x202d9a]);return this['_envs']['delete'](_0x202d9a),_0x244cce;}async[_0x19d64d(0x196)](_0x2c4b1d,_0x220c97={}){const _0x570239=_0x19d64d;this['_assertOpen']();const _0x250c97=this[_0x570239(0x7b0)]('db',null,_0x570239(0x196),[_0x2c4b1d,_0x220c97]);return this[_0x570239(0x33b)][_0x570239(0x6f8)](_0x2c4b1d),_0x250c97;}static get[_0x19d64d(0x619)](){return _0x1dc527['defaults'];}static get[_0x19d64d(0x46f)](){const _0x4df3d9=_0x19d64d;return _0x1dc527[_0x4df3d9(0x46f)];}static get[_0x19d64d(0x5ce)](){const _0x1c9589=_0x19d64d;return _0x1dc527[_0x1c9589(0x5ce)];}static async[_0x19d64d(0x35b)](_0x323464,_0x57da19){const _0x1aee7b=_0x19d64d;return _0x5b0d37('db',_0x1aee7b(0x35b),[_0x323464,_0x57da19]);}static[_0x19d64d(0x24b)](_0x503a51){const _0x8d11f=_0x19d64d;return _0x5b0d37('db',_0x8d11f(0x24b),[_0x503a51]);}static[_0x19d64d(0x1eb)](_0x248ce4,_0x39a6a2){const _0x1f9294=_0x19d64d;_0x5b0d37(_0x1f9294(0x448),_0x1f9294(0x1eb),[_0x248ce4,_0x39a6a2]);}static[_0x19d64d(0x2e3)](_0x2dccc3,_0x5c17cd){const _0x270cca=_0x19d64d;_0x5b0d37(_0x270cca(0x448),_0x270cca(0x2e3),[_0x2dccc3,_0x5c17cd]);}static[_0x19d64d(0x7c3)](){}[_0x19d64d(0x483)](_0x1d805a,_0x2e2181){const _0x22a6ba=_0x19d64d;return require$$16[_0x22a6ba(0x1ac)](_0x1d805a,_0x2e2181);}}_0x4b5211[_0x19d64d(0x54e)]=_0x39307f,Object[_0x19d64d(0x834)](_0x4b5211,_0x19d64d(0x79c),{'get'(){const _0x29ef59=_0x19d64d;return _0x4b5211[_0x29ef59(0x73e)]||(_0x4b5211[_0x29ef59(0x73e)]=new Set());},'set'(_0x4f23da){const _0x14394e=_0x19d64d;_0x4b5211[_0x14394e(0x73e)]=_0x4f23da;try{_0x5b0d37('db',_0x14394e(0x3c2),[]);}catch{}},'configurable':!![]});for(const _0x25dbab of[_0x19d64d(0x4b7),_0x19d64d(0x2ff),_0x19d64d(0x77c),'update',_0x19d64d(0x296),'create',_0x19d64d(0x7e6),'get',_0x19d64d(0x7ae),_0x19d64d(0x7f9),'getRange',_0x19d64d(0x47c),_0x19d64d(0x608),_0x19d64d(0x34c),_0x19d64d(0x70c),'getIndex',_0x19d64d(0x807),_0x19d64d(0x407),_0x19d64d(0x71e),_0x19d64d(0x789),_0x19d64d(0x42c),'registerType',_0x19d64d(0x816),_0x19d64d(0x4c3),_0x19d64d(0x620),_0x19d64d(0x637),_0x19d64d(0x716),'registerIndex',_0x19d64d(0x88e),'dropIndex','resetIndex',_0x19d64d(0x3eb),_0x19d64d(0x5b0),_0x19d64d(0x431),_0x19d64d(0x4f9),_0x19d64d(0x32b),_0x19d64d(0x7da),_0x19d64d(0x356),_0x19d64d(0x83e),_0x19d64d(0x7ee),_0x19d64d(0x188),_0x19d64d(0x7a5),_0x19d64d(0x759),_0x19d64d(0x54b),_0x19d64d(0x4dc),_0x19d64d(0x3d1),_0x19d64d(0x6a1),_0x19d64d(0x768),_0x19d64d(0x261),_0x19d64d(0x785)]){_0x4b5211['prototype'][_0x25dbab]=function(..._0x241a65){const _0x41fbef=this['env']('default');return _0x41fbef[_0x25dbab](..._0x241a65);};}function _0xad9a84(_0x30f0c7){const _0x5eb387=_0x19d64d,_0x8329c5=_0x2f4662=>()=>{const _0x1d0a1b=_0x20ac;throw new Error(_0x1d0a1b(0x1a7)+_0x2f4662+'\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.');};return{'process':_0x8329c5(_0x5eb387(0x437)),'processRest':_0x8329c5(_0x5eb387(0x8a0)),'processEverything':_0x8329c5('processEverything()'),async 'start'(){return _0x30f0c7['_call']('db',null,'processorsStart',[]);},async 'stop'(){const _0xef8b53=_0x5eb387;return _0x30f0c7[_0xef8b53(0x7b0)]('db',null,_0xef8b53(0x505),[]);},'status'(){const _0x19418a=_0x5eb387;return _0x30f0c7[_0x19418a(0x7b0)]('db',null,_0x19418a(0x6df),[],![]);},get 'participating'(){const _0x3eed5a=_0x5eb387;return _0x30f0c7[_0x3eed5a(0x7b0)]('db',null,'processorsParticipating',[],![]);},get '_participate'(){const _0x247040=_0x5eb387;return _0x30f0c7[_0x247040(0x7b0)]('db',null,_0x247040(0x56e),[],![]);}};}function _0x5b0d37(_0x27065f,_0x121eb2,_0x3e73b0){const _0x1ab01b=_0x19d64d;_0x1dbdb4();try{return _0x3e4a0d()[_0x1ab01b(0x758)](_0x27065f,_0x121eb2,_0x3e73b0);}catch(_0x5b42b4){throw _0xf898ca(_0x5b42b4);}}_0x180229[_0x19d64d(0x3f6)]=_0x4b5211,_0x180229[_0x19d64d(0x3f6)]['staticCall']=_0x5b0d37,_0x180229[_0x19d64d(0x3f6)][_0x19d64d(0x683)]=_0x4b5211,_0x180229[_0x19d64d(0x3f6)][_0x19d64d(0x54e)]=_0x39307f,_0x180229[_0x19d64d(0x3f6)][_0x19d64d(0x3e4)]=_0x4b5211,Object['defineProperty'](_0x180229[_0x19d64d(0x3f6)],_0x19d64d(0x222),{'get':()=>require$$1$1['loadedPath']?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0xaa4a0d(0x3f6)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x1c5fdf(0x3f6)]=index;