@kedem/okdb 2.1.2 → 2.2.1

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.
@@ -264,7 +264,7 @@ Queue-mode embeddings records keep the same explicit membership order in the gen
264
264
  // For a pipeline named 'articles' in the default env, the scoped key is 'default:articles'
265
265
  const indexer = okdb.embeddings.indexer('default:articles');
266
266
  const stats = await indexer.stats();
267
- // { total, pending, embedded, failed }
267
+ // { doc_counts: { pending, done, failed, deleted, total }, ... }
268
268
 
269
269
  // Pipeline api.stats() wraps all four components
270
270
  const { api } = await okdb.embeddings.createPipeline('articles', { ... });
@@ -278,8 +278,8 @@ function waitForIdle(pipelineKey, timeoutMs = 120_000) {
278
278
  const check = async () => {
279
279
  const api = okdb.embeddings.indexer(pipelineKey);
280
280
  if (!api) return;
281
- const { pending } = await api.stats().catch(() => ({ pending: 1 }));
282
- if (pending === 0) { clearTimeout(timer); resolve(); }
281
+ const { doc_counts } = await api.stats().catch(() => ({ doc_counts: { pending: 1 } }));
282
+ if (doc_counts.pending === 0) { clearTimeout(timer); resolve(); }
283
283
  };
284
284
  okdb.events.on(`embeddings:indexer_flushed@indexer@${pipelineKey}`, check);
285
285
  check();
package/docs/querying.md CHANGED
@@ -118,12 +118,30 @@ const recent = okdb.query(
118
118
  limit: 20,
119
119
  },
120
120
  );
121
+
122
+ // Arbitrary (non-prefix) range on an index: use startIndex/endIndex, not start/end —
123
+ // query()'s own bound names differ from byIndex's (see below). Passing start/end here
124
+ // throws, pointing you at the right names, instead of silently scanning everything.
125
+ const weekAgo = Date.now() - 7 * 86400_000;
126
+ const recentAdmins = okdb.query(
127
+ 'users',
128
+ {},
129
+ {
130
+ index: ['role', 'createdAt'],
131
+ startIndex: ['admin', weekAgo],
132
+ endIndex: ['admin', Infinity],
133
+ },
134
+ );
121
135
  ```
122
136
 
123
137
  :::tip
124
138
  There is no query planner. If you pass `index`, OKDB uses it without cost analysis. Pick the most selective index for your query by hand.
125
139
  :::
126
140
 
141
+ :::warning Unrecognized options throw
142
+ `query()`'s options are a fixed, invented vocabulary (`index`, `prefix`, `startIndex`, `endIndex`, `startKey`, `endKey`, `reverse`, `limit`, `offset`, `select`, `near`, `fts`, `vector`) — not a raw pass-through to the underlying range scan. Passing anything else, including the byIndex/getRange-style `start`/`end`, throws immediately rather than silently ignoring the key and scanning unfiltered.
143
+ :::
144
+
127
145
  ---
128
146
 
129
147
  ## Index scans
@@ -161,6 +179,8 @@ for (const { key, value } of okdb.byIndex('articles', ['author', 'publishedAt'],
161
179
  | `offset` | number | Skip this many entries |
162
180
  | `includeViolations` | boolean | For unique indexes: include all violating entries |
163
181
 
182
+ `start`/`end` are always the lower/upper bound regardless of `reverse` — `byIndex`/`getIndex`/`countByIndex` swap them internally for a descending scan, so you never need to. Unrecognized option keys throw immediately rather than being silently ignored.
183
+
164
184
  `getIndex` returns primary keys from the index sub-database (not full records) as a **lazy iterable**. Spread to an array if you need `.length`: `[...env.getIndex(...)]`.
165
185
 
166
186
  ---
package/docs/views.md CHANGED
@@ -31,7 +31,7 @@ const stats = env.views.get('orderStats');
31
31
  // total: { value: 142500 },
32
32
  // count: { value: 312 },
33
33
  // avgValue: { value: 456.7 },
34
- // byRegion: { EU: { value: 140 }, US: { value: 172 } }
34
+ // byRegion: { totalGroups: 2, preview: [{ key: 'EU', value: 140 }, { key: 'US', value: 172 }], hasMore: false, cursor: null }
35
35
  // }
36
36
  ```
37
37
 
@@ -82,14 +82,14 @@ reduce: {
82
82
 
83
83
  Each key in `reduce` becomes an output field. The value is a reducer spec:
84
84
 
85
- | Reducer | Spec | Output | Notes |
86
- | ---------- | ----------------------- | ------------------------------ | ---------------------------------------------------- |
87
- | `$count` | `{ $count: true }` | `{ value: N }` | Counts matching docs |
88
- | `$sum` | `{ $sum: 'field' }` | `{ value: N }` | Sums a numeric field; non-numeric values are ignored |
89
- | `$avg` | `{ $avg: 'field' }` | `{ value: N }` | Running average; `value` is `0` when no docs match |
90
- | `$min` | `{ $min: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
91
- | `$max` | `{ $max: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
92
- | `$countBy` | `{ $countBy: 'field' }` | `{ [groupKey]: { value: N } }` | Groups docs by a field value |
85
+ | Reducer | Spec | Output | Notes |
86
+ | ---------- | ----------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------------- |
87
+ | `$count` | `{ $count: true }` | `{ value: N }` | Counts matching docs |
88
+ | `$sum` | `{ $sum: 'field' }` | `{ value: N }` | Sums a numeric field; non-numeric values are ignored |
89
+ | `$avg` | `{ $avg: 'field' }` | `{ value: N }` | Running average; `value` is `0` when no docs match |
90
+ | `$min` | `{ $min: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
91
+ | `$max` | `{ $max: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
92
+ | `$countBy` | `{ $countBy: 'field' }` | `{ totalGroups, preview: [{key, value}], hasMore, cursor }` | Groups docs by a field value — paginated, see [Output shape](#output-shape) |
93
93
 
94
94
  Field paths in all reducers support dot notation for nested access: `{ $sum: 'metrics.revenue' }`, `{ $countBy: 'address.country' }`. This is consistent with how indexes handle nested fields.
95
95
 
@@ -102,14 +102,14 @@ Field paths in all reducers support dot notation for nested access: `{ $sum: 'me
102
102
  `views.get(name)` returns an object with one key per entry in `reduce`. The shape depends on the reducer:
103
103
 
104
104
  - **Scalar reducers** (`$count`, `$sum`, `$avg`, `$min`, `$max`): `{ value: N }`
105
- - **Grouped reducer** (`$countBy`): `{ [groupKey]: { value: N } }`
105
+ - **Grouped reducers** (`$countBy`, `$group`): `{ totalGroups, preview: [...], hasMore, cursor }` — a paginated top-N of groups, not a plain `{ [groupKey]: ... }` map. `preview` entries are `{ key, value }` for `$countBy` and `{ key, <subReducerName>: { value } , ... }` for `$group`. By default `$countBy` sorts by count descending, capped at 50 groups; pass `{ preview: { limit, order, axis, cursor } }` to `get()` to page through the rest (`hasMore`/`cursor` mirror the next page).
106
106
  - **`$ref` slots**: a nested object with the same shape as a top-level `reduce` result (see [$ref aggregations](#ref-aggregations))
107
107
 
108
108
  ```js
109
109
  const result = env.views.get('orderStats');
110
110
  result.total.value; // → 142500 (number)
111
111
  result.avgValue.value; // → 456.7 (number)
112
- result.byRegion.EU.value; // → 140 (number)
112
+ result.byRegion.preview.find((e) => e.key === 'EU').value; // → 140 (number)
113
113
  ```
114
114
 
115
115
  ### `items: true`
@@ -123,7 +123,7 @@ reduce: {
123
123
  }
124
124
 
125
125
  // Access source docs for a specific group
126
- const euOrders = result.byRegion.EU.items(); // → Order[]
126
+ const euOrders = result.byRegion.preview.find((e) => e.key === 'EU').items(); // → Order[]
127
127
 
128
128
  // Scalar items() returns all matching docs
129
129
  const allOrders = result.total.items(); // → Order[]
@@ -156,18 +156,17 @@ reduce: {
156
156
 
157
157
  ### Output shape
158
158
 
159
- Each populated group key maps to a nested object with one entry per sub-reducer:
159
+ Like `$countBy`, the result is the paginated `{ totalGroups, preview, hasMore, cursor }` shape (see [Output shape](#output-shape) above) — not a plain `{ [groupKey]: {...} }` map. Each `preview` entry is `{ key, <subReducerName>: { value }, ... }`:
160
160
 
161
161
  ```js
162
162
  {
163
- groupKey1: {
164
- revenue: { value: 1200 },
165
- count: { value: 4 },
166
- },
167
- groupKey2: {
168
- revenue: { value: 800 },
169
- count: { value: 3 },
170
- },
163
+ totalGroups: 2,
164
+ preview: [
165
+ { key: 'groupKey1', revenue: { value: 1200 }, count: { value: 4 } },
166
+ { key: 'groupKey2', revenue: { value: 800 }, count: { value: 3 } },
167
+ ],
168
+ hasMore: false,
169
+ cursor: null,
171
170
  }
172
171
  ```
173
172
 
@@ -175,8 +174,9 @@ Empty groups (count/sum reaching 0) are removed automatically — they are never
175
174
 
176
175
  ```js
177
176
  const stats = env.views.get('orderStats');
178
- stats.byProduct.p1.revenue.value; // → 1200
179
- stats.byProduct.p1.count.value; // → 4
177
+ const p1 = stats.byProduct.preview.find((e) => e.key === 'p1');
178
+ p1.revenue.value; // → 1200
179
+ p1.count.value; // → 4
180
180
  ```
181
181
 
182
182
  ### Compound key
@@ -190,7 +190,7 @@ $group: {
190
190
  }
191
191
 
192
192
  // Key for product_id='p1', region='EU': 'p1\x00EU'
193
- stats.byProductRegion['p1\x00EU'].count.value;
193
+ stats.byProductRegion.preview.find((e) => e.key === 'p1\x00EU').count.value;
194
194
  ```
195
195
 
196
196
  ### Filter semantics
@@ -227,10 +227,10 @@ await env.views.create('lineItemStats', {
227
227
  });
228
228
 
229
229
  const stats = env.views.get('lineItemStats');
230
- // stats.byProduct = {
231
- // 'p1': { revenue: { value: 1500 }, count: { value: 3 } },
232
- // 'p2': { revenue: { value: 800 }, count: { value: 2 } },
233
- // }
230
+ // stats.byProduct.preview = [
231
+ // { key: 'p1', revenue: { value: 1500 }, count: { value: 3 } },
232
+ // { key: 'p2', revenue: { value: 800 }, count: { value: 2 } },
233
+ // ]
234
234
  ```
235
235
 
236
236
  `$group` also works inside `$ref.reduce`:
@@ -253,7 +253,7 @@ reduce: {
253
253
  },
254
254
  }
255
255
 
256
- stats.lineItems.byProduct.p1.total.value; // → aggregate revenue for product p1
256
+ stats.lineItems.byProduct.preview.find((e) => e.key === 'p1').total.value; // → aggregate revenue for product p1
257
257
  ```
258
258
 
259
259
  ---
@@ -315,12 +315,12 @@ await db.put('products', 'p1', { vendor: 'ACME' });
315
315
  await db.put('line_items', 'li1', { product_id: 'p1', amount: 100 });
316
316
  await db.put('line_items', 'li2', { product_id: 'p1', amount: 200 });
317
317
 
318
- // salesByVendor.byVendor = { ACME: { value: 2 } }
318
+ // salesByVendor.byVendor.preview → [{ key: 'ACME', value: 2 }]
319
319
 
320
320
  await db.put('products', 'p1', { vendor: 'NewCo' }); // rename the vendor
321
321
 
322
322
  // After propagation:
323
- // salesByVendor.byVendor = { NewCo: { value: 2 } }
323
+ // salesByVendor.byVendor.preview → [{ key: 'NewCo', value: 2 }]
324
324
  // ACME bucket is removed; both li1 and li2 moved to NewCo automatically.
325
325
  ```
326
326
 
@@ -451,7 +451,7 @@ Each entry:
451
451
 
452
452
  - `bucketKey` — canonical string key for the bucket (ISO date string for `preset:'time'`)
453
453
  - `granularity` — the view's configured granularity
454
- - `reducers` — `{ [outputField]: { value: N } }` for scalar reducers; `{ [outputField]: { [groupKey]: { value: N } } }` for `$countBy`
454
+ - `reducers` — `{ [outputField]: { value: N } }` for scalar reducers; `{ [outputField]: { totalGroups, preview: [{key, value}], hasMore, cursor } }` for `$countBy`/`$group`
455
455
  - `refs` — `{ [refName]: { [subField]: { value: N } } }` for `$ref` sub-views
456
456
 
457
457
  ### `listBuckets(name, options)` — enumerate populated buckets
@@ -1 +1 @@
1
- 'use strict';const _0x449694=_0x5978;(function(_0x444bb5,_0x3c995e){const _0x3c2561=_0x5978,_0x3c8bd0=_0x444bb5();while(!![]){try{const _0x5a1603=-parseInt(_0x3c2561(0x2c8))/0x1+-parseInt(_0x3c2561(0x1ea))/0x2+parseInt(_0x3c2561(0x252))/0x3+-parseInt(_0x3c2561(0x22d))/0x4+parseInt(_0x3c2561(0x22b))/0x5*(-parseInt(_0x3c2561(0x280))/0x6)+parseInt(_0x3c2561(0x34c))/0x7*(-parseInt(_0x3c2561(0x315))/0x8)+parseInt(_0x3c2561(0x21b))/0x9;if(_0x5a1603===_0x3c995e)break;else _0x3c8bd0['push'](_0x3c8bd0['shift']());}catch(_0x5b469c){_0x3c8bd0['push'](_0x3c8bd0['shift']());}}}(_0x3536,0x54f9e));var require$$0$4=require(_0x449694(0x260)),require$$2=require('v8'),require$$0=require(_0x449694(0x1f4)),require$$0$3=require(_0x449694(0x334)),require$$0$1=require('lmdb'),require$$0$2=require(_0x449694(0x2b1)),require$$6=require('./okdb');function getDefaultExportFromCjs(_0x2ec5a5){const _0x3e9e97=_0x449694;return _0x2ec5a5&&_0x2ec5a5[_0x3e9e97(0x363)]&&Object[_0x3e9e97(0x2b7)][_0x3e9e97(0x30f)][_0x3e9e97(0x336)](_0x2ec5a5,_0x3e9e97(0x1e6))?_0x2ec5a5[_0x3e9e97(0x1e6)]:_0x2ec5a5;}var okdbFunctionsSandboxWorker$1={},okdbFatalReport,hasRequiredOkdbFatalReport;function requireOkdbFatalReport(){if(hasRequiredOkdbFatalReport)return okdbFatalReport;hasRequiredOkdbFatalReport=0x1;function _0x16e445(_0x546c49){const _0x19f7e7=_0x5978;if(process.env.OKDB_FATAL_REPORT!=='1')return;try{if(!process['report'])return;process[_0x19f7e7(0x2bf)][_0x19f7e7(0x33e)]=!![];try{if('excludeEnv'in process[_0x19f7e7(0x2bf)])process[_0x19f7e7(0x2bf)]['excludeEnv']=process.env.OKDB_FATAL_REPORT_ENV!=='1';}catch{}if(process[_0x19f7e7(0x2c5)]!==_0x19f7e7(0x2fa))try{process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2cb)]=!![];if(typeof process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2dd)]===_0x19f7e7(0x332))process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2dd)]='SIGSEGV';}catch{}if(process.env.OKDB_REPORT_DIR)try{require('fs')[_0x19f7e7(0x368)](process.env.OKDB_REPORT_DIR,{'recursive':!![]}),process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2e0)]=process.env.OKDB_REPORT_DIR;}catch{}try{process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2fd)]='';}catch{}if(_0x546c49)process.env.OKDB_REPORT_TAG=String(_0x546c49);}catch{}}return okdbFatalReport={'enableFatalReport':_0x16e445},okdbFatalReport;}var okdbFunctionsSandbox,hasRequiredOkdbFunctionsSandbox;function requireOkdbFunctionsSandbox(){if(hasRequiredOkdbFunctionsSandbox)return okdbFunctionsSandbox;hasRequiredOkdbFunctionsSandbox=0x1;const _0x450b6f=require$$0;function _0x1d259e(_0x16701e){const _0x408ca4=_0x16701e==='*',_0x4635a3=_0x408ca4?null:new Set(Array['isArray'](_0x16701e)?_0x16701e:[]);return function _0x2afd32(_0x222910,_0x41e7c9){const _0x4cc1f0=_0x5978;if(!_0x408ca4){let _0x1f8509;try{const _0x102f00=new URL(typeof _0x222910===_0x4cc1f0(0x332)?_0x222910:_0x222910?.['url']??String(_0x222910));_0x1f8509=_0x102f00[_0x4cc1f0(0x22e)];}catch{const _0x38ce74=new Error(_0x4cc1f0(0x218));return _0x38ce74['code']=_0x4cc1f0(0x2ff),Promise['reject'](_0x38ce74);}if(!_0x4635a3[_0x4cc1f0(0x270)](_0x1f8509)){const _0x241347=new Error(_0x4635a3['size']===0x0?_0x4cc1f0(0x312):_0x4cc1f0(0x331)+_0x1f8509+_0x4cc1f0(0x1fd));return _0x241347['code']=_0x4cc1f0(0x2ff),Promise[_0x4cc1f0(0x1f2)](_0x241347);}}return fetch(_0x222910,_0x41e7c9);};}function _0x1dd1e5(_0x3fcf6c={}){const _0x506f85=_0x5978,_0x9de61d=_0x3fcf6c[_0x506f85(0x1e3)]!==![],_0x3544e1=_0x3fcf6c[_0x506f85(0x345)]??[],_0x4020c9={'Date':Date,'Math':Math,'JSON':JSON,'Array':Array,'Object':Object,'String':String,'Number':Number,'Boolean':Boolean,'Map':Map,'Set':Set,'Promise':Promise,'URL':URL,'URLSearchParams':URLSearchParams,'TextEncoder':TextEncoder,'TextDecoder':TextDecoder,'AbortController':AbortController,'AbortSignal':AbortSignal,'setTimeout':setTimeout,'clearTimeout':clearTimeout,'setInterval':setInterval,'clearInterval':clearInterval,'queueMicrotask':queueMicrotask,'structuredClone':structuredClone,'crypto':globalThis[_0x506f85(0x267)]};return _0x9de61d&&typeof fetch===_0x506f85(0x2e4)&&(_0x4020c9['fetch']=_0x1d259e(_0x3544e1)),_0x4020c9[_0x506f85(0x221)]=_0x4020c9,_0x4020c9;}function _0x40a09f(_0x1b876b,_0x3c2a31={}){const _0x49a2c1=_0x5978,_0x4d0590=_0x1dd1e5(_0x3c2a31),_0x37ffb9=_0x450b6f[_0x49a2c1(0x36a)](_0x4d0590,{'name':'okdb-function-sandbox','codeGeneration':{'strings':![],'wasm':![]}});let _0x49ec62;try{_0x49ec62=new _0x450b6f[(_0x49a2c1(0x1fe))]('('+_0x1b876b+')',{'filename':_0x3c2a31[_0x49a2c1(0x2fd)]??_0x49a2c1(0x34b)});}catch(_0x30d35c){const _0x5d5b10=new Error(_0x30d35c?.[_0x49a2c1(0x208)]||_0x49a2c1(0x32c));_0x5d5b10['code']='FUNCTION_SCRIPT_COMPILE_FAILED',_0x5d5b10['cause']=_0x30d35c;throw _0x5d5b10;}let _0x5b621f;try{_0x5b621f=_0x49ec62[_0x49a2c1(0x2fc)](_0x37ffb9,{'timeout':_0x3c2a31['compileTimeoutMs']??0x64});}catch(_0x18c4b7){const _0x477803=new Error(_0x18c4b7?.[_0x49a2c1(0x208)]||_0x49a2c1(0x28f));_0x477803['code']=_0x49a2c1(0x261),_0x477803[_0x49a2c1(0x2b9)]=_0x18c4b7;throw _0x477803;}if(typeof _0x5b621f!==_0x49a2c1(0x2e4)){const _0x1b362d=new Error(_0x49a2c1(0x328));_0x1b362d[_0x49a2c1(0x2be)]=_0x49a2c1(0x1f5);throw _0x1b362d;}return _0x5b621f;}return okdbFunctionsSandbox={'createSandboxGlobals':_0x1dd1e5,'compileFunctionExpression':_0x40a09f,'_buildRestrictedFetch':_0x1d259e},okdbFunctionsSandbox;}var okdbFunctionsIpc,hasRequiredOkdbFunctionsIpc;function requireOkdbFunctionsIpc(){if(hasRequiredOkdbFunctionsIpc)return okdbFunctionsIpc;hasRequiredOkdbFunctionsIpc=0x1;function _0x5c8919(_0x29c9fe){const _0x1b0907=_0x5978;if(!_0x29c9fe)return null;return{'message':_0x29c9fe['message']||String(_0x29c9fe),'stack':_0x29c9fe['stack']||null,'code':_0x29c9fe['code']||null,'details':_0x29c9fe[_0x1b0907(0x2ad)]||null};}function _0x3fee8(_0x402ce9){const _0x1ea885=_0x5978;if(!_0x402ce9)return new Error(_0x1ea885(0x1f9));const _0x25e868=new Error(_0x402ce9[_0x1ea885(0x208)]||String(_0x402ce9));if(_0x402ce9[_0x1ea885(0x365)])_0x25e868[_0x1ea885(0x365)]=_0x402ce9[_0x1ea885(0x365)];if(_0x402ce9['code'])_0x25e868['code']=_0x402ce9[_0x1ea885(0x2be)];if(_0x402ce9[_0x1ea885(0x2ad)])_0x25e868[_0x1ea885(0x2ad)]=_0x402ce9[_0x1ea885(0x2ad)];return _0x25e868;}return okdbFunctionsIpc={'serializeError':_0x5c8919,'deserializeError':_0x3fee8},okdbFunctionsIpc;}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x194c39=_0x449694;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x1790bb={'PUT':_0x194c39(0x223),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x194c39(0x20a),'INDEX_RESET':_0x194c39(0x2ce),'TYPE_REGISTER':'registerType','TYPE_DROP':'dropType','FTS_REGISTER':_0x194c39(0x2f4),'FTS_DROP':_0x194c39(0x24c),'FTS_RESET':_0x194c39(0x2a9),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x194c39(0x1ff),'TTL_SET':_0x194c39(0x2bc),'TTL_CLEAR':_0x194c39(0x219)},_0x260ddd={'SYSTEM_READY':'system:ready','SYSTEM_STOPPED':_0x194c39(0x309),'SYSTEM_CLOCK_CHANGE':_0x194c39(0x255),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x194c39(0x24b),'SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x194c39(0x291),'SYSTEM_BUS_STATE_CHANGE':_0x194c39(0x211),'ITEM_CREATE':_0x194c39(0x25d),'ITEM_UPDATE':_0x194c39(0x247),'ITEM_REMOVE':_0x194c39(0x337),'INDEX_RESET':'index:reset','INDEX_READY':_0x194c39(0x1e8),'INDEX_PROGRESS':_0x194c39(0x224),'VIEW_PROGRESS':_0x194c39(0x2d1),'INDEX_DROP':_0x194c39(0x2ab),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x194c39(0x369),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':_0x194c39(0x2b4),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x194c39(0x2fb),'UNIQUE_VIOLATION_RESOLVED':_0x194c39(0x232),'REF_VIOLATION':_0x194c39(0x220),'REF_VIOLATION_RESOLVED':_0x194c39(0x2d8),'SYNC_APPLY':'sync:apply','TXN_START':_0x194c39(0x30e),'TXN_END':_0x194c39(0x325),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x194c39(0x282),'TYPE_DROP':_0x194c39(0x205),'ENV_OPENED':_0x194c39(0x2c6),'ENV_REMOVED':_0x194c39(0x2b2),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':'ttl:expired','TTL_SET':_0x194c39(0x317),'TTL_CLEAR':_0x194c39(0x330),'LICENSE_INVALID':_0x194c39(0x1e9),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x194c39(0x33f)},_0x1b0e2c={'CREATING':_0x194c39(0x327),'RESETTING':_0x194c39(0x2bd),'READY':'ready','DROPPING':_0x194c39(0x2cf),'WAITING':'waiting'},_0x438e22={'CREATED':_0x194c39(0x2f5),'STARTING':'starting','STARTED':_0x194c39(0x215),'STOPPING':_0x194c39(0x2cc),'STOPPED':_0x194c39(0x34f)},_0x46ab1f={'CREATING':_0x194c39(0x327),'READY':_0x194c39(0x212),'HALTED':_0x194c39(0x2f6),'STOPPED':_0x194c39(0x34f),'RESETTING':_0x194c39(0x2bd)},_0x4b5cbc=Object['freeze']({'POKE':'bus:poke','DRAIN':_0x194c39(0x23d),'TYPE_DROP':_0x194c39(0x2f3),'PROC':_0x194c39(0x2c3),'ENV_RELEASE':_0x194c39(0x274)});return okdbEnums={'BUS_EVENTS':_0x4b5cbc,'CHANGE_ACTIONS':_0x1790bb,'EVENTS':_0x260ddd,'INDEX_STATE':_0x1b0e2c,'OKDB_STATE':_0x438e22,'VIEW_STATE':_0x46ab1f},okdbEnums;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x388676 extends Error{constructor(_0x5dd30d,_0x15d28f,_0x3cebc7={}){const _0x1ff713=_0x5978;super(_0x5dd30d),this['name']=_0x1ff713(0x2c7),this[_0x1ff713(0x2be)]=_0x15d28f,this[_0x1ff713(0x2ad)]=_0x3cebc7,_0x3cebc7[_0x1ff713(0x2b9)]&&(this['cause']=_0x3cebc7[_0x1ff713(0x2b9)]),Error[_0x1ff713(0x21c)](this,this[_0x1ff713(0x364)]);}}class _0x1641cc extends _0x388676{constructor(_0x1cb9df,_0x533227,_0x49d7a5,_0x2beb6d){const _0x22f8bf=_0x5978;super('Version\x20mismatch\x20for\x20'+_0x1cb9df+'@'+_0x533227+_0x22f8bf(0x235)+_0x49d7a5+',\x20got\x20'+_0x2beb6d,_0x22f8bf(0x2a8),{'type':_0x1cb9df,'key':_0x533227,'expectedVersion':_0x49d7a5,'actualVersion':_0x2beb6d}),this[_0x22f8bf(0x322)]=_0x22f8bf(0x2e2);}}class _0xcea38 extends _0x388676{constructor(_0x46f9be,_0x31ec26){const _0xd9e39f=_0x5978;super(_0x46f9be+'@'+_0x31ec26+_0xd9e39f(0x25a),_0xd9e39f(0x2e5),{'type':_0x46f9be,'key':_0x31ec26}),this['name']='OKDBNotFoundError';}}class _0x582c91 extends _0x388676{constructor(_0x2d40b2,_0xdbc86){const _0x19d7cf=_0x5978;super(_0x2d40b2+'@'+_0xdbc86+'\x20already\x20exists',_0x19d7cf(0x263),{'type':_0x2d40b2,'key':_0xdbc86}),this[_0x19d7cf(0x322)]=_0x19d7cf(0x20f);}}class _0x4836c1 extends _0x388676{constructor(_0x4563eb,_0x5839e0){const _0x4dcb0c=_0x5978,_0x1d2ca8=typeof _0x5839e0;super(_0x4dcb0c(0x360)+_0x4563eb+'\x27:\x20'+_0x1d2ca8+_0x4dcb0c(0x29f)+_0x5839e0,_0x4dcb0c(0x31a),{'index':_0x4563eb,'key':_0x5839e0,'keyType':_0x1d2ca8}),this[_0x4dcb0c(0x322)]=_0x4dcb0c(0x335);}}class _0x14755f extends _0x388676{constructor(_0x2e358a){const _0x1e325d=_0x5978,_0x40407d=typeof _0x2e358a;super(_0x1e325d(0x24a)+_0x40407d+_0x1e325d(0x2d4)+_0x2e358a,_0x1e325d(0x2bb),{'key':_0x2e358a,'keyType':_0x40407d}),this[_0x1e325d(0x322)]='OKDBInvalidPrimaryKeyError';}}class _0x102748 extends _0x388676{constructor(_0x38bb33){const _0x34b45d=_0x5978;super(_0x34b45d(0x226)+_0x38bb33+_0x34b45d(0x290),_0x34b45d(0x2e1),{'type':_0x38bb33}),this[_0x34b45d(0x322)]='OKDBTypeNotRegisteredError';}}class _0x5a422c extends _0x388676{constructor(_0x536f74){const _0xacb86b=_0x5978;super(_0xacb86b(0x226)+_0x536f74+'\x27\x20already\x20registered',_0xacb86b(0x311),{'type':_0x536f74}),this[_0xacb86b(0x322)]=_0xacb86b(0x21f);}}class _0x3b34c5 extends _0x388676{constructor(_0x43f87b,_0x1e4e05){const _0x17ea61=_0x5978;super(_0x17ea61(0x2aa)+_0x1e4e05+'\x27\x20on\x20type\x20\x27'+_0x43f87b+_0x17ea61(0x290),_0x17ea61(0x302),{'type':_0x43f87b,'index':_0x1e4e05}),this['name']='OKDBIndexNotRegisteredError';}}class _0xb533b2 extends _0x388676{constructor(_0x5673b7,_0x330abf){const _0x1489ef=_0x5978;super(_0x1489ef(0x2aa)+_0x330abf+'\x27\x20on\x20type\x20\x27'+_0x5673b7+'\x27\x20is\x20already\x20registered','INDEX_ALREADY_REGISTERED',{'type':_0x5673b7,'index':_0x330abf}),this[_0x1489ef(0x322)]=_0x1489ef(0x210);}}class _0x34007c extends _0x388676{constructor(_0x54d43e,_0x39391b={}){const _0x28b7e5=_0x5978;super(_0x54d43e,_0x28b7e5(0x2d7),_0x39391b),this[_0x28b7e5(0x322)]=_0x28b7e5(0x239);}}class _0x36bdd9 extends _0x388676{constructor(_0x19823b,_0x607829,_0x553776,_0x40e9ee,_0x59cc81){const _0x1eaa83=_0x5978;super('Unique\x20constraint\x20violated\x20on\x20'+_0x19823b+'@'+_0x607829+':\x20key\x20['+_0x553776+']\x20already\x20maps\x20to\x20\x27'+_0x40e9ee+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x59cc81+'\x27','UNIQUE_CONSTRAINT',{'type':_0x19823b,'index':_0x607829,'indexKey':_0x553776,'existingKey':_0x40e9ee,'conflictingKey':_0x59cc81}),this[_0x1eaa83(0x322)]=_0x1eaa83(0x2c1);}}class _0x294107 extends _0x388676{constructor(_0x41c7f8,_0x35da57,_0x3f7bd5){const _0x28c895=_0x5978;super('Schema\x20validation\x20failed\x20for\x20'+_0x41c7f8+'@'+_0x35da57,_0x28c895(0x357),{'type':_0x41c7f8,'key':_0x35da57,'errors':_0x3f7bd5}),this['name']='OKDBSchemaValidationError',this[_0x28c895(0x361)]=_0x41c7f8,this[_0x28c895(0x2c2)]=_0x35da57,this[_0x28c895(0x2d5)]=_0x3f7bd5;}}class _0x2039f3 extends _0x388676{constructor(_0x140672,_0x1c9fda){const _0x2084e5=_0x5978;super('Cannot\x20set\x20enforce\x20schema\x20on\x20'+_0x140672+':\x20'+_0x1c9fda['length']+'\x20documents\x20fail\x20validation','SCHEMA_COLLECTION_INVALID',{'type':_0x140672,'failures':_0x1c9fda}),this[_0x2084e5(0x322)]='OKDBSchemaCollectionError',this[_0x2084e5(0x361)]=_0x140672,this[_0x2084e5(0x2b3)]=_0x1c9fda;}}class _0x5c8b0b extends _0x388676{constructor(_0x4b2f77,_0x4c8f61,_0x4382a9,_0x102ef2,_0x47143b){const _0x338a93=_0x5978;super('Foreign\x20key\x20violation:\x20'+_0x4b2f77+'@'+_0x4c8f61+'.'+_0x4382a9+_0x338a93(0x238)+_0x102ef2+'@'+_0x47143b+'\x20which\x20does\x20not\x20exist',_0x338a93(0x24f),{'sourceType':_0x4b2f77,'sourceKey':_0x4c8f61,'fieldPath':_0x4382a9,'targetType':_0x102ef2,'targetKey':_0x47143b}),this[_0x338a93(0x322)]=_0x338a93(0x27b),this[_0x338a93(0x2a6)]=_0x4b2f77,this[_0x338a93(0x2fe)]=_0x4c8f61,this[_0x338a93(0x1ef)]=_0x4382a9,this[_0x338a93(0x2a1)]=_0x102ef2,this[_0x338a93(0x2af)]=_0x47143b;}}class _0x3d9252 extends _0x388676{constructor(_0x3c62d5,_0x39a31e,_0x1316f1){const _0x318316=_0x5978;super(_0x318316(0x301)+_0x3c62d5+'@'+_0x39a31e+':\x20'+_0x1316f1[_0x318316(0x31d)]+_0x318316(0x287),_0x318316(0x1e5),{'targetType':_0x3c62d5,'targetKey':_0x39a31e,'references':_0x1316f1}),this[_0x318316(0x322)]=_0x318316(0x277),this[_0x318316(0x2a1)]=_0x3c62d5,this[_0x318316(0x2af)]=_0x39a31e,this[_0x318316(0x2b5)]=_0x1316f1;}}class _0x18f32e extends _0x388676{constructor(_0x2093d7,_0x587527,_0x2fa33f){const _0x523c3=_0x5978;super(_0x523c3(0x358)+_0x587527+'\x22\x20on\x20\x22'+_0x2093d7+_0x523c3(0x33c)+_0x2fa33f[_0x523c3(0x1e7)](_0x5ba326=>_0x5ba326[_0x523c3(0x25f)]+':'+_0x5ba326[_0x523c3(0x322)])[_0x523c3(0x2b0)](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x2093d7,'index':_0x587527,'usedBy':_0x2fa33f}),this[_0x523c3(0x322)]=_0x523c3(0x28b);}}return okdbError={'OKDBError':_0x388676,'OKDBVersionMismatchError':_0x1641cc,'OKDBNotFoundError':_0xcea38,'OKDBAlreadyExistsError':_0x582c91,'OKDBInvalidIndexKeyError':_0x4836c1,'OKDBInvalidPrimaryKeyError':_0x14755f,'OKDBTypeNotRegisteredError':_0x102748,'OKDBTypeAlreadyRegisteredError':_0x5a422c,'OKDBIndexNotRegisteredError':_0x3b34c5,'OKDBIndexAlreadyRegisteredError':_0xb533b2,'OKDBInvalidValueError':_0x34007c,'OKDBUniqueConstraintError':_0x36bdd9,'OKDBSchemaValidationError':_0x294107,'OKDBSchemaCollectionError':_0x2039f3,'OKDBForeignKeyError':_0x5c8b0b,'OKDBForeignKeyDeleteError':_0x3d9252,'OKDBIndexHasConsumersError':_0x18f32e},okdbError;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x124b96=_0x449694;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x415adc=require$$0$1,{OKDBError:_0x50b67b}=requireOkdbError(),_0x3f2339={'value':null,'done':!![]};class _0x2e3e0f{constructor(_0x5c1db2){const _0x2de339=_0x5978;this[_0x2de339(0x1ed)]=_0x5c1db2;}get[_0x124b96(0x2ee)](){return _0x3f2339;}[Symbol['iterator']](){const _0x30d491=_0x124b96;return this[_0x30d491(0x1ed)]();}[_0x124b96(0x1e7)](_0x90fe4d){const _0x544a33=this;return new _0x2e3e0f(()=>{const _0xa8a099=_0x5978,_0x5b489a=_0x544a33[Symbol[_0xa8a099(0x24e)]]();return{'next'(){const _0x39a77a=_0xa8a099;for(;;){const _0x1cbb79=_0x5b489a['next']();if(_0x1cbb79[_0x39a77a(0x339)])return{'done':!![],'value':undefined};const _0x14c9f5=_0x90fe4d(_0x1cbb79[_0x39a77a(0x23c)]);if(_0x14c9f5===_0x415adc[_0x39a77a(0x2ec)])continue;if(_0x14c9f5===_0x3f2339)return _0x5b489a[_0x39a77a(0x266)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x14c9f5};}},'return'(){const _0x191f06=_0xa8a099;return _0x5b489a[_0x191f06(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['filter'](_0x475acf){const _0x3fca01=_0x124b96;return this[_0x3fca01(0x1e7)](_0x2de216=>_0x475acf(_0x2de216)?_0x2de216:_0x415adc['SKIP']);}['forEach'](_0x1df9a4){for(const _0x1342c0 of this)_0x1df9a4(_0x1342c0);}[_0x124b96(0x243)](_0x89de0c=0x0,_0x34a312=Infinity){const _0x5eea18=this;return new _0x2e3e0f(()=>{const _0x29c1cc=_0x5978,_0x4f7791=_0x5eea18[Symbol[_0x29c1cc(0x24e)]]();let _0x569e55=0x0;return{'next'(){const _0x5b88b2=_0x29c1cc;for(;;){const _0x8f4311=_0x4f7791[_0x5b88b2(0x2d3)]();if(_0x8f4311[_0x5b88b2(0x339)])return{'done':!![],'value':undefined};const _0x55b912=_0x569e55++;if(_0x55b912<_0x89de0c)continue;if(_0x55b912>=_0x34a312)return _0x4f7791[_0x5b88b2(0x266)]?.(),{'done':!![],'value':undefined};return _0x8f4311;}},'return'(){const _0x8d1d85=_0x29c1cc;return _0x4f7791[_0x8d1d85(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x29c1cc(0x24e)]](){return this;}};});}['at'](_0x262666){let _0x2c1c68=0x0;for(const _0x2def9a of this)if(_0x2c1c68++===_0x262666)return _0x2def9a;return undefined;}[_0x124b96(0x233)](_0x58b73e){const _0x1abdee=this;return new _0x2e3e0f(()=>{const _0x188f6d=_0x5978,_0x371495=_0x1abdee[Symbol[_0x188f6d(0x24e)]]();let _0x1c46ae=[];return{'next'(){const _0x435afc=_0x188f6d;for(;;){if(_0x1c46ae[_0x435afc(0x31d)])return{'done':![],'value':_0x1c46ae[_0x435afc(0x36b)]()};const _0x526114=_0x371495[_0x435afc(0x2d3)]();if(_0x526114[_0x435afc(0x339)])return{'done':!![],'value':undefined};const _0x3c0bf6=_0x58b73e(_0x526114[_0x435afc(0x23c)]);if(Array[_0x435afc(0x244)](_0x3c0bf6))_0x1c46ae=_0x1c46ae[_0x435afc(0x26d)](_0x3c0bf6);else{if(_0x3c0bf6!=null&&(_0x3c0bf6 instanceof _0x2e3e0f||typeof _0x3c0bf6[Symbol[_0x435afc(0x24e)]]===_0x435afc(0x2e4)&&'asArray'in _0x3c0bf6))_0x1c46ae=_0x1c46ae[_0x435afc(0x26d)](Array[_0x435afc(0x2a0)](_0x3c0bf6));else{if(_0x3c0bf6!==_0x415adc[_0x435afc(0x2ec)])return{'done':![],'value':_0x3c0bf6};}}}},'return'(){const _0xa08121=_0x188f6d;return _0x371495[_0xa08121(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x188f6d(0x24e)]](){return this;}};});}['concat'](_0x3de81b){const _0x299fd8=this;return new _0x2e3e0f(()=>{const _0x1c49e1=_0x5978;let _0x4e1389=_0x299fd8[Symbol[_0x1c49e1(0x24e)]](),_0x4e4889=![];return{'next'(){const _0x1e34d0=_0x1c49e1;for(;;){const _0xfb769e=_0x4e1389[_0x1e34d0(0x2d3)]();if(!_0xfb769e[_0x1e34d0(0x339)])return _0xfb769e;if(_0x4e4889)return{'done':!![],'value':undefined};_0x4e4889=!![],_0x4e1389=_0x3de81b[Symbol['iterator']]();}},'return'(){const _0x456383=_0x1c49e1;return _0x4e1389[_0x456383(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x1c49e1(0x24e)]](){return this;}};});}[_0x124b96(0x24d)](_0x131666){const _0x1c7e8e=this;return new _0x2e3e0f(()=>{const _0x5bb6c7=_0x5978,_0x1e9f38=_0x1c7e8e[Symbol[_0x5bb6c7(0x24e)]]();return{'next'(){const _0x522075=_0x5bb6c7;for(;;){try{return _0x1e9f38[_0x522075(0x2d3)]();}catch(_0x280175){const _0x48b030=_0x131666(_0x280175);if(_0x48b030===_0x415adc[_0x522075(0x2ec)]||_0x48b030===undefined)continue;return{'done':![],'value':_0x48b030};}}},'return'(){const _0xe99f40=_0x5bb6c7;return _0x1e9f38[_0xe99f40(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5bb6c7(0x24e)]](){return this;}};});}[_0x124b96(0x230)](){return Array['from'](this);}get[_0x124b96(0x338)](){const _0x5a6595=_0x124b96;return Array[_0x5a6595(0x2a0)](this);}}const _0xc1841f={'total':0x0,'byLabel':{},'last':null};function _0x30fd0c(_0x4cc239){const _0x508d36=_0x124b96;_0xc1841f[_0x508d36(0x22c)]++;if(_0x4cc239)_0xc1841f[_0x508d36(0x35e)][_0x4cc239]=(_0xc1841f[_0x508d36(0x35e)][_0x4cc239]??0x0)+0x1;_0xc1841f[_0x508d36(0x35d)]={'label':_0x4cc239??null,'at':Date['now']()};}function _0x3e9b31(){return{'total':_0xc1841f['total'],'byLabel':{..._0xc1841f['byLabel']},'last':_0xc1841f['last']};}function _0x4ea4dc(_0x46ed3f,_0x56da95={}){const {getTxnId:_0x1f6b0c,resume:_0x54a963,label:_0x4aa133,baseline:_0x2d3a54}=_0x56da95;return new _0x2e3e0f(()=>{const _0x5a8082=_0x5978;let _0x13a259=null,_0x2cd398=![],_0x213f1c=![],_0x5e2797=![],_0xaee85b,_0x53bcfd=0x0,_0x3a9c40;return{'next'(){const _0x176640=_0x5978;if(_0x5e2797)return{'done':!![],'value':undefined};if(_0x213f1c){let _0x4dd40b=![];if(_0x54a963&&_0x1f6b0c)try{_0x4dd40b=_0x1f6b0c()===_0x3a9c40;}catch{}if(!_0x4dd40b){_0x5e2797=!![],_0x30fd0c(_0x4aa133);throw new _0x50b67b(_0x54a963?_0x176640(0x29e)+_0x176640(0x29b)+_0x176640(0x241):_0x176640(0x324)+_0x176640(0x278)+_0x176640(0x2a7),'READER_HELD_ACROSS_AWAIT');}_0x13a259=_0x54a963(_0xaee85b,_0x53bcfd)[Symbol[_0x176640(0x24e)]](),_0x213f1c=![];}if(!_0x13a259){if(_0x2d3a54!==undefined)_0x3a9c40=_0x2d3a54;else try{_0x3a9c40=_0x1f6b0c?_0x1f6b0c():undefined;}catch{_0x3a9c40=undefined;}try{_0x13a259=_0x46ed3f()[Symbol['iterator']]();}catch(_0x992803){_0x5e2797=!![];throw _0x992803;}}!_0x2cd398&&(_0x2cd398=!![],queueMicrotask(()=>{const _0x37a39b=_0x176640;_0x2cd398=![];if(_0x5e2797||_0x213f1c)return;try{_0x13a259?.[_0x37a39b(0x266)]?.();}catch{}_0x13a259=null,_0x213f1c=!![];}));const _0x3aac1b=_0x13a259['next']();if(_0x3aac1b[_0x176640(0x339)])return _0x5e2797=!![],{'done':!![],'value':undefined};return _0xaee85b=_0x3aac1b[_0x176640(0x23c)],_0x53bcfd++,_0x3aac1b;},'return'(){const _0x345c47=_0x5978;_0x5e2797=!![];try{_0x13a259?.[_0x345c47(0x266)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x5a8082(0x24e)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x4ea4dc,'OKDBGuardedRange':_0x2e3e0f,'recordGuardTrip':_0x30fd0c,'getGuardTripStats':_0x3e9b31},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1af960=_0x449694;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x39709,performance:_0x1c486c}=require$$0$2,_0x2e919a=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1af960(0x297),_0x2f1f67=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x45daad=process.env.OKDB_LOOP_LAG_ALL==='1',_0x15c4e5=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x2b59b4{constructor(){const _0x3a448e=_0x1af960;this['enabled']=_0x2e919a,this[_0x3a448e(0x21d)]=new Map(),this['_h']=null,this[_0x3a448e(0x2d6)]=null,this[_0x3a448e(0x353)]=![],this[_0x3a448e(0x2ed)]=(_0x576f70,_0x13edf0)=>process[_0x3a448e(0x258)][_0x3a448e(0x285)](_0x576f70+(_0x13edf0?'\x20'+JSON[_0x3a448e(0x1f0)](_0x13edf0):'')+'\x0a');}['now'](){const _0x3b2a7c=_0x1af960;return _0x1c486c[_0x3b2a7c(0x2de)]();}[_0x1af960(0x31e)](_0x27bcca){const _0x449f82=_0x1af960;if(typeof _0x27bcca===_0x449f82(0x2e4))this['_log']=_0x27bcca;}['note'](_0x4ba36f,_0x2f59cb,_0x2e7192){const _0x16635e=_0x1af960;if(!this['enabled'])return;let _0x35af6e=this[_0x16635e(0x21d)]['get'](_0x4ba36f);!_0x35af6e&&(_0x35af6e={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x16635e(0x21d)][_0x16635e(0x2eb)](_0x4ba36f,_0x35af6e)),_0x35af6e['ms']+=_0x2f59cb,_0x35af6e[_0x16635e(0x23a)]+=0x1,_0x2f59cb>_0x35af6e[_0x16635e(0x25e)]&&(_0x35af6e[_0x16635e(0x25e)]=_0x2f59cb,_0x35af6e[_0x16635e(0x304)]=_0x2e7192||'');}[_0x1af960(0x257)](_0xde238e){const _0x182de2=_0x1af960;if(!this[_0x182de2(0x1f1)]||this[_0x182de2(0x353)])return;this[_0x182de2(0x353)]=!![];if(_0xde238e)this[_0x182de2(0x2ed)]=_0xde238e;this['_h']=_0x39709({'resolution':0xa}),this['_h'][_0x182de2(0x1f8)](),this['_timer']=setInterval(()=>this[_0x182de2(0x362)](),_0x2f1f67);if(this[_0x182de2(0x2d6)][_0x182de2(0x2c4)])this['_timer']['unref']();}[_0x1af960(0x36c)](_0x1c7853){const _0x5fa480=_0x1af960;if(!this[_0x5fa480(0x207)])this[_0x5fa480(0x207)]=new Set();this['_windowCbs']['add'](_0x1c7853);if(!this['_started'])this[_0x5fa480(0x32b)]();}[_0x1af960(0x30a)](_0x3a136c){const _0x2bfcb7=_0x1af960;this[_0x2bfcb7(0x207)]?.[_0x2bfcb7(0x292)](_0x3a136c);}[_0x1af960(0x32b)](){const _0x22c28c=_0x1af960;if(this[_0x22c28c(0x22a)])return;this[_0x22c28c(0x22a)]=!![];!this['_h']&&(this['_h']=_0x39709({'resolution':0xa}),this['_h']['enable']());const _0x1b1976=_0x2f1f67;this[_0x22c28c(0x25b)]=setInterval(()=>{const _0x16dec2=_0x22c28c,_0xd18e1e=this['_h'];if(!_0xd18e1e)return;const _0x205d77=_0xd18e1e[_0x16dec2(0x2f2)](0x63)/0xf4240,_0x2d5e14=_0xd18e1e[_0x16dec2(0x237)]/0xf4240,_0x636249=_0xd18e1e[_0x16dec2(0x242)]/0xf4240;_0xd18e1e[_0x16dec2(0x1fc)]();if(this['_windowCbs'])for(const _0x49a50d of this[_0x16dec2(0x207)]){try{_0x49a50d({'p99Ms':_0x205d77,'maxMs':_0x2d5e14,'meanMs':_0x636249,'reportMs':_0x1b1976});}catch{}}},_0x1b1976);if(this['_admissionTimer'][_0x22c28c(0x2c4)])this[_0x22c28c(0x25b)][_0x22c28c(0x2c4)]();}['_report'](){const _0x345c44=_0x1af960,_0x10eb56=this['_h'],_0x38d3d5=_0x10eb56[_0x345c44(0x237)]/0xf4240,_0x101962=_0x10eb56[_0x345c44(0x2f2)](0x63)/0xf4240,_0x45c867=_0x10eb56['mean']/0xf4240;_0x10eb56['reset']();const _0x365280=[...this[_0x345c44(0x21d)]['entries']()][_0x345c44(0x1e7)](([_0x4fc21b,_0x2a8eb7])=>({'label':_0x4fc21b,..._0x2a8eb7}))[_0x345c44(0x342)]((_0xd98cd4,_0x1350b2)=>_0x1350b2['ms']-_0xd98cd4['ms'])[_0x345c44(0x243)](0x0,0x8);this[_0x345c44(0x21d)]['clear']();const _0x19db16=_0x365280[_0x345c44(0x229)]((_0x154fe8,_0x45d9cb)=>_0x154fe8+_0x45d9cb['ms'],0x0),_0x4e8a18=_0x365280['map'](_0x266ce5=>_0x266ce5[_0x345c44(0x288)]+'='+_0x266ce5['ms'][_0x345c44(0x204)](0x0)+'ms/'+_0x266ce5['count']+(_0x266ce5[_0x345c44(0x25e)]>0x5?'(worst\x20'+_0x266ce5[_0x345c44(0x25e)][_0x345c44(0x204)](0x0)+'ms'+(_0x266ce5[_0x345c44(0x304)]?'\x20'+_0x266ce5[_0x345c44(0x304)]:'')+')':''));(_0x45daad||_0x38d3d5>=_0x15c4e5)&&this['_log'](_0x345c44(0x240)+_0x2f1f67+_0x345c44(0x2e6)+_0x38d3d5[_0x345c44(0x204)](0x0)+_0x345c44(0x268)+_0x101962['toFixed'](0x0)+_0x345c44(0x279)+_0x45c867[_0x345c44(0x204)](0x0)+_0x345c44(0x28c)+_0x19db16[_0x345c44(0x204)](0x0)+'ms'+(_0x4e8a18[_0x345c44(0x31d)]?_0x345c44(0x225)+_0x4e8a18[_0x345c44(0x2b0)]('\x20\x20'):''),{'feature':_0x345c44(0x1eb)});if(this['_windowCbs'])for(const _0x1f1ed5 of this[_0x345c44(0x207)]){try{_0x1f1ed5({'p99Ms':_0x101962,'maxMs':_0x38d3d5,'meanMs':_0x45c867,'reportMs':_0x2f1f67});}catch{}}}[_0x1af960(0x346)](){const _0x4f03c1=_0x1af960;if(this[_0x4f03c1(0x2d6)])clearInterval(this[_0x4f03c1(0x2d6)]);if(this['_h'])this['_h'][_0x4f03c1(0x33a)]();this[_0x4f03c1(0x2d6)]=null,this['_h']=null,this['_started']=![];}}const _0x21951a=new _0x2b59b4();if(_0x21951a[_0x1af960(0x1f1)])_0x21951a['start']();return okdbLoopMonitor={'LOOP':_0x21951a},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x3385e5=_0x449694;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x282cb3=require$$0$3,{EVENTS:_0x5237ad}=requireOkdbEnums(),{OKDBError:_0x5bea50}=requireOkdbError(),{recordGuardTrip:_0x59d3ce,guardSnapshotIterable:_0x679ae3}=requireOkdbGuardedRange(),{LOOP:_0x2af126}=requireOkdbLoopMonitor();function _0x12d4ed(_0x20bfb0){const _0x4a43ed=_0x5978;return _0x20bfb0[_0x4a43ed(0x1e7)](_0x580039=>{const _0x2a4a4d=_0x4a43ed,[_0x1832e9,_0x232e77]=_0x580039[_0x2a4a4d(0x367)]||[];return{'action':_0x580039[_0x2a4a4d(0x34d)],'type':_0x1832e9,'key':_0x232e77};});}class _0x391b08{[_0x3385e5(0x307)];[_0x3385e5(0x1f6)]=[];[_0x3385e5(0x1ec)]=[];[_0x3385e5(0x2f7)]=[];constructor(_0x37c481,_0x1cdbbc={'useReadTransaction':![]}){const _0x42a004=_0x3385e5;this[_0x42a004(0x307)]=_0x37c481,this[_0x42a004(0x32e)]=_0x1cdbbc,this['id']=_0x282cb3['v4']();if(this[_0x42a004(0x32e)][_0x42a004(0x264)])try{this['_txnIdAtSnapshot']=this[_0x42a004(0x307)]['db'][_0x42a004(0x2a3)]()['lastTxnId'];}catch{this[_0x42a004(0x34a)]=undefined;}this['readTransaction']=this[_0x42a004(0x32e)][_0x42a004(0x264)]?this[_0x42a004(0x307)]['db']['useReadTransaction']():null,this[_0x42a004(0x275)]=![],this[_0x42a004(0x2c9)]=![],this[_0x42a004(0x2ef)]&&queueMicrotask(()=>{const _0x4ac78e=_0x42a004;this[_0x4ac78e(0x2ef)]&&(this[_0x4ac78e(0x250)](),this[_0x4ac78e(0x2c9)]=!![]);});}['onDo'](_0x494d6f){const _0x30928f=_0x3385e5;this[_0x30928f(0x1ec)]['push'](_0x494d6f);}['onUndo'](_0x1ff79f){const _0x1d5fbb=_0x3385e5;this[_0x1d5fbb(0x2f7)][_0x1d5fbb(0x350)](_0x1ff79f);}[_0x3385e5(0x250)](){const _0x5eb447=_0x3385e5;if(!this['readTransaction'])return;try{this['readTransaction'][_0x5eb447(0x339)]();}catch(_0x4271c4){}this[_0x5eb447(0x2ef)]=null;}[_0x3385e5(0x366)](){const _0x180bdc=_0x3385e5;if(this[_0x180bdc(0x275)])throw new _0x5bea50(_0x180bdc(0x2ca),_0x180bdc(0x323));if(this[_0x180bdc(0x2c9)]){let _0x4cb88d=![];if(this[_0x180bdc(0x32e)][_0x180bdc(0x264)]==='tolerant'&&this['_txnIdAtSnapshot']!==undefined)try{_0x4cb88d=this['okdb']['db'][_0x180bdc(0x2a3)]()[_0x180bdc(0x293)]===this[_0x180bdc(0x34a)];}catch{}if(!_0x4cb88d){_0x59d3ce((this['okdb']?.['name']??'?')+':useReadTransaction');throw new _0x5bea50('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+_0x180bdc(0x1ee)+_0x180bdc(0x340)+_0x180bdc(0x36e),_0x180bdc(0x2cd));}}}[_0x3385e5(0x35b)](_0x42f26f,_0x5375d4){const _0x4ee53e=_0x3385e5;return this[_0x4ee53e(0x366)](),this['okdb'][_0x4ee53e(0x35b)](_0x42f26f,_0x5375d4,{'transaction':this[_0x4ee53e(0x2ef)]});}[_0x3385e5(0x2df)](_0x37940d,_0x374392){const _0x5d5baa=_0x3385e5;return this[_0x5d5baa(0x366)](),this[_0x5d5baa(0x307)][_0x5d5baa(0x2df)](_0x37940d,_0x374392,{'transaction':this[_0x5d5baa(0x2ef)]});}['getMany'](_0xedf006,_0x16ae9a){const _0x46b6da=_0x3385e5;return this[_0x46b6da(0x366)](),this[_0x46b6da(0x307)][_0x46b6da(0x354)](_0xedf006,_0x16ae9a,{'transaction':this[_0x46b6da(0x2ef)]});}['_range'](_0x30b8cf){const _0x1cc28b=_0x3385e5;if(!this['options'][_0x1cc28b(0x264)])return _0x30b8cf;if(_0x30b8cf&&typeof _0x30b8cf[_0x1cc28b(0x31b)]===_0x1cc28b(0x2e4))return _0x30b8cf;if(Array[_0x1cc28b(0x244)](_0x30b8cf))return _0x30b8cf;const _0x3d0499=this,_0x689454=_0x3d0499[_0x1cc28b(0x32e)][_0x1cc28b(0x264)]===_0x1cc28b(0x30d),_0x2f3d03=()=>{const _0x30112f=_0x1cc28b;if(!_0x3d0499[_0x30112f(0x2c9)])return![];if(!_0x689454)return!![];if(_0x3d0499['_txnIdAtSnapshot']===undefined)return!![];try{return _0x3d0499[_0x30112f(0x307)]['db'][_0x30112f(0x2a3)]()[_0x30112f(0x293)]!==_0x3d0499[_0x30112f(0x34a)];}catch{return!![];}};return _0x679ae3(()=>{const _0x557711=_0x1cc28b;if(_0x3d0499['_closed'])throw new _0x5bea50(_0x557711(0x2ca),_0x557711(0x323));if(_0x2f3d03()){_0x59d3ce((_0x3d0499[_0x557711(0x307)]?.[_0x557711(0x322)]??'?')+_0x557711(0x29a));throw new _0x5bea50(_0x557711(0x2c0)+_0x557711(0x272)+'materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.',_0x557711(0x2cd));}return _0x30b8cf;},{'label':(_0x3d0499[_0x1cc28b(0x307)]?.[_0x1cc28b(0x322)]??'?')+':txnRange',..._0x689454?{'baseline':_0x3d0499[_0x1cc28b(0x34a)],'getTxnId':()=>_0x3d0499['okdb']['db']['getStats']()[_0x1cc28b(0x293)],'resume':(_0x2ff350,_0x33b9f6)=>_0x30b8cf[_0x1cc28b(0x243)](_0x33b9f6)}:{}});}[_0x3385e5(0x256)](_0x311132,_0x56b16b={}){const _0x46903e=_0x3385e5;return this[_0x46903e(0x366)](),this[_0x46903e(0x22f)](this[_0x46903e(0x307)]['getRange'](_0x311132,{'transaction':this[_0x46903e(0x2ef)],..._0x56b16b}));}[_0x3385e5(0x313)](_0x44c643,_0x113325={}){const _0x5e0afd=_0x3385e5;return this['_assertOpen'](),this[_0x5e0afd(0x22f)](this['okdb'][_0x5e0afd(0x313)](_0x44c643,{'transaction':this[_0x5e0afd(0x2ef)],..._0x113325}));}[_0x3385e5(0x308)](_0x5bbd7a,_0x358c08={}){const _0x2ec98f=_0x3385e5;return this[_0x2ec98f(0x366)](),this['_range'](this[_0x2ec98f(0x307)][_0x2ec98f(0x308)](_0x5bbd7a,{'transaction':this[_0x2ec98f(0x2ef)],..._0x358c08}));}[_0x3385e5(0x298)](_0x3a896f,_0x229b4e,_0x346f15={}){const _0x53e108=_0x3385e5;return this[_0x53e108(0x366)](),this[_0x53e108(0x22f)](this[_0x53e108(0x307)][_0x53e108(0x298)](_0x3a896f,_0x229b4e,{'transaction':this['readTransaction'],..._0x346f15}));}[_0x3385e5(0x320)](_0x153e9f,_0x5303c3,_0x3cb616={}){const _0x2a2745=_0x3385e5;return this[_0x2a2745(0x366)](),this[_0x2a2745(0x22f)](this[_0x2a2745(0x307)][_0x2a2745(0x320)](_0x153e9f,_0x5303c3,{'transaction':this[_0x2a2745(0x2ef)],..._0x3cb616}));}[_0x3385e5(0x30b)](_0x1d085d=null){const _0x4b2ba9=_0x3385e5;return this['_assertOpen'](),this[_0x4b2ba9(0x307)][_0x4b2ba9(0x30b)](_0x1d085d,{'transaction':this[_0x4b2ba9(0x2ef)]});}[_0x3385e5(0x35f)](_0x5962fa){const _0x277821=_0x3385e5;return this[_0x277821(0x366)](),this[_0x277821(0x307)][_0x277821(0x35f)](_0x5962fa,{'transaction':this['readTransaction']});}[_0x3385e5(0x223)](_0x162f66,_0x3fce4c,_0xcd3aec,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null,ttl:ttl=null}={}){const _0x388d87=_0x3385e5;this['actions'][_0x388d87(0x350)]({'action':_0x388d87(0x223),'args':[_0x162f66,_0x3fce4c,_0xcd3aec,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3385e5(0x300)](_0x46c949,_0x420641,_0x45bb53,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null,ttl:ttl=null}={}){const _0x90e6ef=_0x3385e5;this[_0x90e6ef(0x1f6)][_0x90e6ef(0x350)]({'action':_0x90e6ef(0x300),'args':[_0x46c949,_0x420641,_0x45bb53,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3385e5(0x2ba)](_0x94c59c,_0x2f539b,_0x3b2e40,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x164667=_0x3385e5;this[_0x164667(0x1f6)][_0x164667(0x350)]({'action':_0x164667(0x2ba),'args':[_0x94c59c,_0x2f539b,_0x3b2e40,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3385e5(0x2e3)](_0xfeb77b,_0x59d973,_0x44c812,{version:version=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null,ttl:ttl=null}={}){const _0x33cba9=_0x3385e5;this['actions'][_0x33cba9(0x350)]({'action':'create','args':[_0xfeb77b,_0x59d973,_0x44c812,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['remove'](_0x43d040,_0x1a7918,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null}={}){const _0x1c2275=_0x3385e5;this[_0x1c2275(0x1f6)]['push']({'action':'remove','args':[_0x43d040,_0x1a7918,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x3385e5(0x1f3)](_0xc03542,_0x3fdc80,_0x398469){const _0xc655d4=_0x3385e5;this[_0xc655d4(0x1f6)][_0xc655d4(0x350)]({'action':_0xc655d4(0x1f3),'args':[_0xc03542,_0x3fdc80,_0x398469]});}[_0x3385e5(0x253)](_0x742760,_0x3ee24e){const _0x50bd66=_0x3385e5;this[_0x50bd66(0x1f6)][_0x50bd66(0x350)]({'action':_0x50bd66(0x253),'args':[_0x742760,_0x3ee24e]});}[_0x3385e5(0x355)](){const _0x2b00cd=_0x3385e5;if(this[_0x2b00cd(0x275)])return;for(const _0x408a72 of this['_undoHooks']){try{_0x408a72();}catch{}}this[_0x2b00cd(0x307)][_0x2b00cd(0x2db)][_0x2b00cd(0x2d2)](_0x5237ad[_0x2b00cd(0x36d)],{'id':this['id']}),this[_0x2b00cd(0x1f6)]=[],this[_0x2b00cd(0x250)](),this[_0x2b00cd(0x275)]=!![];}async[_0x3385e5(0x29c)](){const _0x340475=_0x3385e5;if(this[_0x340475(0x275)])throw new Error(_0x340475(0x2ca));const _0x429421={'id':this['id'],'timestamp':Date[_0x340475(0x2de)](),'actions':this[_0x340475(0x1f6)]};this['okdb'][_0x340475(0x2db)]['emit'](_0x5237ad['TXN_START'],_0x429421);try{const _0x53c14c=_0x2af126[_0x340475(0x1f1)]?_0x2af126[_0x340475(0x2de)]():0x0;await this[_0x340475(0x307)]['_writer']['transaction'](()=>{const _0x216523=_0x340475;for(const _0x36455b of this[_0x216523(0x1f6)]){const _0xb1b4b9=this['okdb']['_'+_0x36455b[_0x216523(0x34d)]];if(typeof _0xb1b4b9!==_0x216523(0x2e4))throw new Error(_0x216523(0x318)+_0x36455b[_0x216523(0x34d)]);_0xb1b4b9['call'](this[_0x216523(0x307)],this,..._0x36455b[_0x216523(0x367)]);}}),_0x2af126['enabled']&&_0x2af126[_0x340475(0x1e4)](_0x340475(0x296),_0x2af126[_0x340475(0x2de)]()-_0x53c14c,(this[_0x340475(0x307)]['name']??'?')+_0x340475(0x349)+this[_0x340475(0x1f6)][_0x340475(0x31d)]);}catch(_0x5b2dcd){for(const _0x3d158b of this[_0x340475(0x2f7)]){try{_0x3d158b();}catch{}}this[_0x340475(0x250)](),this[_0x340475(0x275)]=!![];if(_0x5b2dcd instanceof _0x5bea50)throw _0x5b2dcd;const _0x1b13a8={'cause':_0x5b2dcd,'env':this['okdb']?.[_0x340475(0x322)],'envPath':this['okdb']?.[_0x340475(0x202)],'pid':process[_0x340475(0x27a)],'txnId':this['id'],'actionCount':this[_0x340475(0x1f6)][_0x340475(0x31d)],'actions':_0x12d4ed(this[_0x340475(0x1f6)]),'nativeCode':_0x5b2dcd?.[_0x340475(0x2be)],'nativeName':_0x5b2dcd?.[_0x340475(0x322)]};try{this[_0x340475(0x307)]?.[_0x340475(0x200)]?.['error']?.(_0x340475(0x283),{'env':_0x1b13a8[_0x340475(0x20e)],'envPath':_0x1b13a8[_0x340475(0x273)],'pid':_0x1b13a8[_0x340475(0x27a)],'txnId':_0x1b13a8[_0x340475(0x333)],'actionCount':_0x1b13a8[_0x340475(0x2b6)],'actions':_0x1b13a8[_0x340475(0x1f6)],'nativeCode':_0x1b13a8[_0x340475(0x351)],'error':_0x5b2dcd?.[_0x340475(0x208)],'stack':_0x5b2dcd?.[_0x340475(0x365)]});}catch{}throw new _0x5bea50(_0x5b2dcd?.[_0x340475(0x208)]||_0x340475(0x347),_0x340475(0x259),_0x1b13a8);}this[_0x340475(0x307)][_0x340475(0x2db)][_0x340475(0x2d2)](_0x5237ad['TXN_END'],_0x429421);for(const _0x224f2d of this['_doHooks']){try{await _0x224f2d();}catch{}}this[_0x340475(0x1f6)]=[],this['_closeReadTransaction'](),this[_0x340475(0x275)]=!![];}static[_0x3385e5(0x217)](_0x3382d1){const _0x1531bd=_0x3385e5;return Object['freeze']({'id':_0x3382d1['id'],'put':_0x3382d1[_0x1531bd(0x223)][_0x1531bd(0x2a5)](_0x3382d1),'update':_0x3382d1[_0x1531bd(0x300)][_0x1531bd(0x2a5)](_0x3382d1),'patch':_0x3382d1[_0x1531bd(0x2ba)][_0x1531bd(0x2a5)](_0x3382d1),'create':_0x3382d1[_0x1531bd(0x2e3)][_0x1531bd(0x2a5)](_0x3382d1),'remove':_0x3382d1['remove'][_0x1531bd(0x2a5)](_0x3382d1),'setTTL':_0x3382d1[_0x1531bd(0x1f3)]['bind'](_0x3382d1),'clearTTL':_0x3382d1[_0x1531bd(0x253)]['bind'](_0x3382d1),'commit':_0x3382d1['commit'][_0x1531bd(0x2a5)](_0x3382d1),'rollback':_0x3382d1[_0x1531bd(0x355)][_0x1531bd(0x2a5)](_0x3382d1),'get':_0x3382d1[_0x1531bd(0x35b)]['bind'](_0x3382d1),'getEntry':_0x3382d1[_0x1531bd(0x2df)][_0x1531bd(0x2a5)](_0x3382d1),'getMany':_0x3382d1['getMany'][_0x1531bd(0x2a5)](_0x3382d1),'getRange':_0x3382d1[_0x1531bd(0x256)][_0x1531bd(0x2a5)](_0x3382d1),'getValues':_0x3382d1[_0x1531bd(0x313)][_0x1531bd(0x2a5)](_0x3382d1),'getKeys':_0x3382d1['getKeys']['bind'](_0x3382d1),'byIndex':_0x3382d1[_0x1531bd(0x298)]['bind'](_0x3382d1),'query':_0x3382d1[_0x1531bd(0x320)]['bind'](_0x3382d1),'getClock':_0x3382d1['getClock'][_0x1531bd(0x2a5)](_0x3382d1),'getCount':_0x3382d1['getCount'][_0x1531bd(0x2a5)](_0x3382d1),'read':_0x3382d1,'raw':_0x3382d1});}static['applyOps'](_0x132cca,_0x507a1c=[]){const _0x5e3025=_0x3385e5;if(!Array['isArray'](_0x507a1c))throw new _0x5bea50(_0x5e3025(0x20c),_0x5e3025(0x23e));for(const _0x119df8 of _0x507a1c){if(Array[_0x5e3025(0x244)](_0x119df8)){const [_0x2a7bcb,..._0x10a509]=_0x119df8;if(typeof _0x132cca[_0x2a7bcb]!==_0x5e3025(0x2e4))throw new _0x5bea50(_0x5e3025(0x318)+_0x2a7bcb,_0x5e3025(0x32f),{'action':_0x2a7bcb});_0x132cca[_0x2a7bcb](..._0x10a509);continue;}if(!_0x119df8||typeof _0x119df8!==_0x5e3025(0x344))throw new _0x5bea50(_0x5e3025(0x343),'TXN_INVALID_OP');const {action:_0x4228d8}=_0x119df8;if(typeof _0x4228d8!=='string'||typeof _0x132cca[_0x4228d8]!==_0x5e3025(0x2e4))throw new _0x5bea50(_0x5e3025(0x318)+_0x4228d8,_0x5e3025(0x32f),{'action':_0x4228d8});switch(_0x4228d8){case _0x5e3025(0x223):case _0x5e3025(0x300):case _0x5e3025(0x2e3):_0x132cca[_0x4228d8](_0x119df8[_0x5e3025(0x361)],_0x119df8[_0x5e3025(0x2c2)],_0x119df8['value'],{..._0x119df8['options'],'ttl':_0x119df8['ttl']??_0x119df8[_0x5e3025(0x32e)]?.[_0x5e3025(0x26e)]??null});break;case'patch':_0x132cca[_0x5e3025(0x2ba)](_0x119df8[_0x5e3025(0x361)],_0x119df8['key'],_0x119df8[_0x5e3025(0x2ba)],{..._0x119df8[_0x5e3025(0x32e)],'ttl':_0x119df8[_0x5e3025(0x26e)]??_0x119df8[_0x5e3025(0x32e)]?.[_0x5e3025(0x26e)]??null});break;case _0x5e3025(0x29d):_0x132cca['remove'](_0x119df8[_0x5e3025(0x361)],_0x119df8[_0x5e3025(0x2c2)],_0x119df8[_0x5e3025(0x32e)]||{});break;case _0x5e3025(0x1f3):_0x132cca[_0x5e3025(0x1f3)](_0x119df8[_0x5e3025(0x361)],_0x119df8['key'],_0x119df8[_0x5e3025(0x26e)]);break;case'clearTTL':_0x132cca[_0x5e3025(0x253)](_0x119df8[_0x5e3025(0x361)],_0x119df8[_0x5e3025(0x2c2)]);break;default:throw new _0x5bea50(_0x5e3025(0x206)+_0x4228d8,'TXN_INVALID_ACTION',{'action':_0x4228d8});}}}static async[_0x3385e5(0x2a2)](_0x5b8415,_0x2b11f6,_0x162dec={}){const _0x27e626=_0x3385e5,_0x6eadb1=new _0x391b08(_0x5b8415,_0x162dec),_0x3f973f=_0x391b08[_0x27e626(0x217)](_0x6eadb1);try{typeof _0x2b11f6===_0x27e626(0x2e4)?await _0x2b11f6(_0x3f973f):_0x391b08[_0x27e626(0x21a)](_0x6eadb1,_0x2b11f6||[]);const _0x51faf4=_0x6eadb1[_0x27e626(0x1f6)][_0x27e626(0x31d)];return await _0x6eadb1[_0x27e626(0x29c)](),{'id':_0x6eadb1['id'],'actions':_0x51faf4};}catch(_0x140894){try{_0x6eadb1['rollback']();}catch(_0x3e722d){}throw _0x140894;}}}return okdbTransaction=_0x391b08,okdbTransaction;}var okdbFunctionsFacades,hasRequiredOkdbFunctionsFacades;function _0x3536(){const _0x38ca72=['length','setLogger','runId','query','materializerContext','name','TXN_CLOSED','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','txn:end','global','creating','Function\x20script\x20must\x20evaluate\x20to\x20a\x20callable\x20function','sdk','unsafe','_startAdmission','Function\x20script\x20failed\x20to\x20compile','tags','options','TXN_INVALID_ACTION','ttl:clear','fetch\x20blocked:\x20hostname\x20\x22','string','txnId','uuid','OKDBInvalidIndexKeyError','call','item:remove','asArray','done','disable','jobContext','\x22\x20is\x20used\x20by:\x20','geoQuery','reportOnFatalError','license:removed','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','stats','sort','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','object','allowedFetchDomains','stop','Unknown\x20OKDB\x20transaction\x20error','getIndexStatus','\x20actions=','_txnIdAtSnapshot','okdb-function.js','182AcBoyw','action','enqueue','stopped','push','nativeCode','job','_started','getMany','rollback','dropType','SCHEMA_VALIDATION_FAILED','Index\x20\x22','sandbox\x20worker:\x20rootPath\x20missing\x20from\x20workerData','used_heap_size','get','cancel','last','byLabel','getCount','Invalid\x20index\x20key\x20type\x20for\x20\x27','type','_report','__esModule','constructor','stack','_assertOpen','args','mkdirSync','fts:registered','createContext','shift','onWindow','TXN_ROLLBACK','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','allowFetch','note','FOREIGN_KEY_DELETE_RESTRICTED','default','map','index:ready','license:invalid','1372372ZYQhZP','loop-lag','_doHooks','_makeIterator','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','fieldPath','stringify','enabled','reject','setTTL','node:vm','FUNCTION_SCRIPT_INVALID_SHAPE','actions','stream','enable','Unknown\x20custom\x20function\x20error','listTTL','bucket','reset','\x22\x20is\x20not\x20in\x20the\x20allowedFetchDomains\x20list','Script','dropSchema','log','dryRunActions','path','exports','toFixed','type:drop','Unsupported\x20transaction\x20action:\x20','_windowCbs','message','getHeapStatistics','registerIndex','getByPath','txn\x20ops\x20must\x20be\x20an\x20array','createEnvironment','env','OKDBAlreadyExistsError','OKDBIndexAlreadyRegisteredError','system:bus_state_change','ready','sourceEnv','job_progress','started','sandbox','createWriteFacade','fetch\x20blocked:\x20invalid\x20URL','clearTtl','applyOps','10832706ihHpzM','captureStackTrace','_buckets','claimId','OKDBTypeAlreadyRegisteredError','ref:violation','globalThis','processor','put','index:progress','\x20│\x20','Type\x20\x27','indexReady','materializer','reduce','_admissionStarted','62165dbIlvn','total','1365728uFHSlF','hostname','_range','toJSON','registerType','unique:violation_resolved','flatMap','result',':\x20expected\x20','range','max','\x20references\x20','OKDBInvalidValueError','count','requestedAt','value','bus:drain','TXN_INVALID_OPS','_envs','loop-lag\x20','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','mean','slice','isArray','ensureType','getChanges','item:update','getByPrefix','setDefaultTTL','Invalid\x20primary\x20key\x20type:\x20','system:drain','dropFts','mapError','iterator','FOREIGN_KEY_VIOLATION','_closeReadTransaction','upload','1750287ZVHgPH','clearTTL','~system','system:clock_change','getRange','start','stderr','TXN_ERROR','\x20does\x20not\x20exist','_admissionTimer','list','item:create','maxMs','kind','worker_threads','FUNCTION_SCRIPT_COMPILE_FAILED','addBucket','ALREADY_EXISTS','useReadTransaction','processorContext','return','crypto','ms\x20p99=','_drainHandler','open','warn','openEnv','concat','ttl','keys','has','trigger','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','envPath','bus:env_release','_closed','txn','OKDBForeignKeyDeleteError','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','ms\x20mean=','pid','OKDBForeignKeyError','getJob','getTTL','close','exit','102VJSRKG','debug','type:registered','transaction\x20commit\x20failed','envName','write','getDefaultTTL','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','label','requestId','timeout','OKDBIndexHasConsumersError','ms\x20busy=','mode','getBucket','Function\x20script\x20failed\x20to\x20initialize','\x27\x20doesn\x27t\x20exist','system:proc','delete','lastTxnId','script','clearDefaultTTL','txn-commit','true','byIndex','listBuckets',':txnRange','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','commit','remove','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','from','targetType','run','getStats','info','bind','sourceType','Array.from)\x20before\x20any\x20await.','VERSION_MISMATCH','resetFts','Index\x20\x27','index:drop','hasIndex','details','dropIndex','targetKey','join','node:perf_hooks','env:removed','failures','schema:set','references','actionCount','prototype','error','cause','patch','INVALID_PRIMARY_KEY','setTtl','resetting','code','report','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','OKDBUniqueConstraintError','key','bus:proc','unref','platform','env:opened','OKDBError','87962krOlFC','_readViewExpired','Transaction\x20already\x20closed','reportOnSignal','stopping','READER_HELD_ACROSS_AWAIT','resetIndex','dropping','payload','view:progress','emit','next','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','errors','_timer','INVALID_VALUE','ref:violation_resolved','sandbox-','queue','events','removeJob','signal','now','getEntry','directory','TYPE_NOT_REGISTERED','OKDBVersionMismatchError','create','function','NOT_FOUND','ms\x20max=','priority','cursorKey','ttlStats','timeoutMs','set','SKIP','_log','DONE','readTransaction','ftsQuery','job_heartbeat','percentile','bus:type_drop','registerFts','created','halted','_undoHooks','files','engineKey','win32','unique:violation','runInContext','filename','sourceKey','FETCH_NOT_ALLOWED','update','Cannot\x20delete\x20','INDEX_NOT_REGISTERED','transaction','maxExtra','runtime','removeEnvironment','okdb','getKeys','system:stopped','offWindow','getClock','functionName','tolerant','txn:start','hasOwnProperty','targetEnv','TYPE_ALREADY_REGISTERED','fetch\x20is\x20not\x20allowed\x20in\x20this\x20function\x20sandbox\x20(no\x20allowedFetchDomains\x20configured)','getValues','updateJob','34480praVrj','tries','ttl:set','Unknown\x20transaction\x20action:\x20','hasType','INVALID_INDEX_KEY','then','sweepExpiredTTL'];_0x3536=function(){return _0x38ca72;};return _0x3536();}function requireOkdbFunctionsFacades(){if(hasRequiredOkdbFunctionsFacades)return okdbFunctionsFacades;hasRequiredOkdbFunctionsFacades=0x1;const _0x17a7e1=requireOkdbTransaction();function _0x4b6d62(_0x1f0f67){const _0x23d37f=_0x5978;return{'transaction':typeof _0x1f0f67[_0x23d37f(0x303)]==='function'?_0x1f0f67[_0x23d37f(0x303)][_0x23d37f(0x2a5)](_0x1f0f67):_0x117396=>new _0x17a7e1(_0x1f0f67,_0x117396),'txn':typeof _0x1f0f67['txn']===_0x23d37f(0x2e4)?_0x1f0f67[_0x23d37f(0x276)]['bind'](_0x1f0f67):(_0x4c00c1,_0x1144cb)=>_0x17a7e1['run'](_0x1f0f67,_0x4c00c1,_0x1144cb)};}function _0x211f82(_0x599f62){const _0x9c40de=_0x5978;return{'name':_0x599f62['name'],..._0x4b6d62(_0x599f62),'put':_0x599f62[_0x9c40de(0x223)]['bind'](_0x599f62),'update':_0x599f62[_0x9c40de(0x300)][_0x9c40de(0x2a5)](_0x599f62),'patch':_0x599f62[_0x9c40de(0x2ba)][_0x9c40de(0x2a5)](_0x599f62),'create':_0x599f62[_0x9c40de(0x2e3)][_0x9c40de(0x2a5)](_0x599f62),'remove':_0x599f62[_0x9c40de(0x29d)]['bind'](_0x599f62),'get':_0x599f62['get']['bind'](_0x599f62),'getMany':_0x599f62[_0x9c40de(0x354)][_0x9c40de(0x2a5)](_0x599f62),'getEntry':_0x599f62[_0x9c40de(0x2df)][_0x9c40de(0x2a5)](_0x599f62),'getRange':_0x599f62[_0x9c40de(0x256)]['bind'](_0x599f62),'getValues':_0x599f62[_0x9c40de(0x313)][_0x9c40de(0x2a5)](_0x599f62),'getKeys':_0x599f62[_0x9c40de(0x308)][_0x9c40de(0x2a5)](_0x599f62),'getCount':_0x599f62[_0x9c40de(0x35f)]['bind'](_0x599f62),'getByPrefix':_0x599f62[_0x9c40de(0x248)]['bind'](_0x599f62),'getIndex':_0x599f62['getIndex'][_0x9c40de(0x2a5)](_0x599f62),'byIndex':_0x599f62[_0x9c40de(0x298)][_0x9c40de(0x2a5)](_0x599f62),'query':_0x599f62[_0x9c40de(0x320)]['bind'](_0x599f62),'geoQuery':_0x599f62[_0x9c40de(0x33d)][_0x9c40de(0x2a5)](_0x599f62),'ftsQuery':_0x599f62[_0x9c40de(0x2f0)][_0x9c40de(0x2a5)](_0x599f62),'setTTL':_0x599f62[_0x9c40de(0x1f3)][_0x9c40de(0x2a5)](_0x599f62),'getTTL':_0x599f62[_0x9c40de(0x27d)][_0x9c40de(0x2a5)](_0x599f62),'clearTTL':_0x599f62[_0x9c40de(0x253)]['bind'](_0x599f62),'sweepExpiredTTL':_0x599f62['sweepExpiredTTL']['bind'](_0x599f62),'listTTL':_0x599f62[_0x9c40de(0x1fa)][_0x9c40de(0x2a5)](_0x599f62),'ttlStats':_0x599f62[_0x9c40de(0x2e9)]['bind'](_0x599f62),'setDefaultTTL':_0x599f62['setDefaultTTL']['bind'](_0x599f62),'getDefaultTTL':_0x599f62['getDefaultTTL'][_0x9c40de(0x2a5)](_0x599f62),'clearDefaultTTL':_0x599f62[_0x9c40de(0x295)][_0x9c40de(0x2a5)](_0x599f62),'registerType':_0x599f62[_0x9c40de(0x231)][_0x9c40de(0x2a5)](_0x599f62),'ensureType':_0x599f62[_0x9c40de(0x245)][_0x9c40de(0x2a5)](_0x599f62),'hasType':_0x599f62[_0x9c40de(0x319)][_0x9c40de(0x2a5)](_0x599f62),'dropType':_0x599f62[_0x9c40de(0x356)][_0x9c40de(0x2a5)](_0x599f62),'registerIndex':_0x599f62[_0x9c40de(0x20a)]['bind'](_0x599f62),'hasIndex':_0x599f62['hasIndex'][_0x9c40de(0x2a5)](_0x599f62),'dropIndex':_0x599f62[_0x9c40de(0x2ae)][_0x9c40de(0x2a5)](_0x599f62),'resetIndex':_0x599f62[_0x9c40de(0x2ce)][_0x9c40de(0x2a5)](_0x599f62),'indexReady':_0x599f62[_0x9c40de(0x227)][_0x9c40de(0x2a5)](_0x599f62),'getIndexStatus':_0x599f62['getIndexStatus'][_0x9c40de(0x2a5)](_0x599f62),'getClock':_0x599f62[_0x9c40de(0x30b)][_0x9c40de(0x2a5)](_0x599f62),'getChanges':_0x599f62[_0x9c40de(0x246)][_0x9c40de(0x2a5)](_0x599f62),'count':_0x599f62[_0x9c40de(0x23a)][_0x9c40de(0x2a5)](_0x599f62),'range':_0x599f62[_0x9c40de(0x236)]['bind'](_0x599f62),'now':_0x599f62[_0x9c40de(0x2de)][_0x9c40de(0x2a5)](_0x599f62)};}function _0x2698f5(_0x172d15){const _0x13b1dc=_0x5978;if(!_0x172d15)return null;const _0xc9d19f={};for(const _0x13974d of[_0x13b1dc(0x34e),'getJob',_0x13b1dc(0x25c),_0x13b1dc(0x314),_0x13b1dc(0x2dc),_0x13b1dc(0x262),_0x13b1dc(0x28e),'listBuckets']){if(typeof _0x172d15[_0x13974d]===_0x13b1dc(0x2e4))_0xc9d19f[_0x13974d]=_0x172d15[_0x13974d]['bind'](_0x172d15);}return Object[_0x13b1dc(0x26f)](_0xc9d19f)['length']?_0xc9d19f:null;}function _0x181e18(_0x2d3005){const _0x1f4d61=_0x5978;if(!_0x2d3005)return null;const _0x25998f={};for(const _0x1d09fc of['upload',_0x1f4d61(0x1f7),_0x1f4d61(0x29d),_0x1f4d61(0x35b),'list',_0x1f4d61(0x20b)]){if(typeof _0x2d3005[_0x1d09fc]==='function')_0x25998f[_0x1d09fc]=_0x2d3005[_0x1d09fc][_0x1f4d61(0x2a5)](_0x2d3005);}return Object['keys'](_0x25998f)[_0x1f4d61(0x31d)]?_0x25998f:null;}function _0x3de942(_0x1a13e6){const _0x31999e=_0x5978;return{'env':_0x1a13e6[_0x31999e(0x20e)][_0x31999e(0x2a5)](_0x1a13e6),'createEnvironment':_0x1a13e6[_0x31999e(0x20d)][_0x31999e(0x2a5)](_0x1a13e6),'removeEnvironment':_0x1a13e6[_0x31999e(0x306)]['bind'](_0x1a13e6),'info':_0x1a13e6[_0x31999e(0x2a4)],..._0x4b6d62(_0x1a13e6),'put':_0x1a13e6[_0x31999e(0x223)][_0x31999e(0x2a5)](_0x1a13e6),'update':_0x1a13e6[_0x31999e(0x300)][_0x31999e(0x2a5)](_0x1a13e6),'patch':_0x1a13e6['patch'][_0x31999e(0x2a5)](_0x1a13e6),'create':_0x1a13e6['create'][_0x31999e(0x2a5)](_0x1a13e6),'remove':_0x1a13e6[_0x31999e(0x29d)]['bind'](_0x1a13e6),'get':_0x1a13e6[_0x31999e(0x35b)][_0x31999e(0x2a5)](_0x1a13e6),'getMany':_0x1a13e6[_0x31999e(0x354)]['bind'](_0x1a13e6),'getEntry':_0x1a13e6[_0x31999e(0x2df)][_0x31999e(0x2a5)](_0x1a13e6),'getRange':_0x1a13e6[_0x31999e(0x256)][_0x31999e(0x2a5)](_0x1a13e6),'getValues':_0x1a13e6[_0x31999e(0x313)]['bind'](_0x1a13e6),'getKeys':_0x1a13e6[_0x31999e(0x308)][_0x31999e(0x2a5)](_0x1a13e6),'getCount':_0x1a13e6[_0x31999e(0x35f)][_0x31999e(0x2a5)](_0x1a13e6),'getByPrefix':_0x1a13e6['getByPrefix'][_0x31999e(0x2a5)](_0x1a13e6),'getIndex':_0x1a13e6['getIndex'][_0x31999e(0x2a5)](_0x1a13e6),'byIndex':_0x1a13e6[_0x31999e(0x298)][_0x31999e(0x2a5)](_0x1a13e6),'query':_0x1a13e6[_0x31999e(0x320)][_0x31999e(0x2a5)](_0x1a13e6),'setTTL':_0x1a13e6['setTTL'][_0x31999e(0x2a5)](_0x1a13e6),'getTTL':_0x1a13e6['getTTL'][_0x31999e(0x2a5)](_0x1a13e6),'clearTTL':_0x1a13e6['clearTTL'][_0x31999e(0x2a5)](_0x1a13e6),'sweepExpiredTTL':_0x1a13e6[_0x31999e(0x31c)][_0x31999e(0x2a5)](_0x1a13e6),'listTTL':_0x1a13e6[_0x31999e(0x1fa)][_0x31999e(0x2a5)](_0x1a13e6),'ttlStats':_0x1a13e6[_0x31999e(0x2e9)][_0x31999e(0x2a5)](_0x1a13e6),'setDefaultTTL':_0x1a13e6[_0x31999e(0x249)][_0x31999e(0x2a5)](_0x1a13e6),'getDefaultTTL':_0x1a13e6[_0x31999e(0x286)][_0x31999e(0x2a5)](_0x1a13e6),'clearDefaultTTL':_0x1a13e6['clearDefaultTTL'][_0x31999e(0x2a5)](_0x1a13e6),'ensureType':_0x1a13e6[_0x31999e(0x245)][_0x31999e(0x2a5)](_0x1a13e6),'registerType':_0x1a13e6[_0x31999e(0x231)][_0x31999e(0x2a5)](_0x1a13e6),'hasType':_0x1a13e6['hasType']['bind'](_0x1a13e6),'dropType':_0x1a13e6[_0x31999e(0x356)][_0x31999e(0x2a5)](_0x1a13e6),'registerIndex':_0x1a13e6['registerIndex']['bind'](_0x1a13e6),'hasIndex':_0x1a13e6[_0x31999e(0x2ac)][_0x31999e(0x2a5)](_0x1a13e6),'dropIndex':_0x1a13e6[_0x31999e(0x2ae)][_0x31999e(0x2a5)](_0x1a13e6),'resetIndex':_0x1a13e6[_0x31999e(0x2ce)][_0x31999e(0x2a5)](_0x1a13e6),'indexReady':_0x1a13e6['indexReady'][_0x31999e(0x2a5)](_0x1a13e6),'getIndexStatus':_0x1a13e6[_0x31999e(0x348)][_0x31999e(0x2a5)](_0x1a13e6),'getClock':_0x1a13e6['getClock'][_0x31999e(0x2a5)](_0x1a13e6),'getChanges':_0x1a13e6[_0x31999e(0x246)]['bind'](_0x1a13e6),'queue':_0x1a13e6[_0x31999e(0x2da)],'files':_0x1a13e6[_0x31999e(0x2f8)]};}return okdbFunctionsFacades={'createEnvFacade':_0x211f82,'createQueueFacade':_0x2698f5,'createFilesFacade':_0x181e18,'createGlobalFacade':_0x3de942},okdbFunctionsFacades;}var okdbFunctionsDryrun,hasRequiredOkdbFunctionsDryrun;function requireOkdbFunctionsDryrun(){const _0x4a89a4=_0x449694;if(hasRequiredOkdbFunctionsDryrun)return okdbFunctionsDryrun;hasRequiredOkdbFunctionsDryrun=0x1;const _0x43e683=new Set([_0x4a89a4(0x223),_0x4a89a4(0x2ba),'create',_0x4a89a4(0x29d),_0x4a89a4(0x300),_0x4a89a4(0x1f3),'clearTTL',_0x4a89a4(0x31c),_0x4a89a4(0x249),_0x4a89a4(0x295),'dropType','dropIndex',_0x4a89a4(0x2ce)]),_0x48bd8a=new Set([_0x4a89a4(0x34e),_0x4a89a4(0x314),_0x4a89a4(0x2dc),_0x4a89a4(0x262)]),_0x4435b1=new Set([_0x4a89a4(0x251),_0x4a89a4(0x29d)]);function _0x297173(_0x4efc80,_0xd40395){const _0x29c026=_0x4a89a4;if(_0x4efc80===_0x29c026(0x20e)||_0x4efc80===_0x29c026(0x326))return _0x43e683['has'](_0xd40395);if(_0x4efc80===_0x29c026(0x2da))return _0x48bd8a['has'](_0xd40395);if(_0x4efc80===_0x29c026(0x2f8))return _0x4435b1[_0x29c026(0x270)](_0xd40395);return![];}function _0xd6b514(_0x2c18b1,_0x2c29af,_0x317c5f,_0x7557d4){if(!_0x2c18b1)return _0x2c18b1;return new Proxy(_0x2c18b1,{'get'(_0x4bf968,_0x3b61ba,_0x1e75da){const _0xe78893=_0x5978,_0x115c53=Reflect[_0xe78893(0x35b)](_0x4bf968,_0x3b61ba,_0x1e75da);if(typeof _0x115c53!==_0xe78893(0x2e4))return _0x115c53;if(!_0x297173(_0x2c29af,_0x3b61ba))return _0x115c53[_0xe78893(0x2a5)](_0x4bf968);return function(..._0x15b48d){const _0x56da7e=_0xe78893;return _0x7557d4[_0x56da7e(0x350)]({'scope':_0x2c29af,'method':_0x3b61ba,'envName':_0x317c5f,'args':_0x15b48d}),null;};}});}function _0x5e63ea(_0x43afad,_0x19b4ae,_0x2ccb0b,_0x3e009d){const _0x459589={};for(const _0x5133d1 of _0x2ccb0b){_0x459589[_0x5133d1]=(..._0x48cbaa)=>{const _0x3c015b=_0x5978;return _0x297173(_0x43afad,_0x5133d1)&&_0x3e009d[_0x3c015b(0x350)]({'scope':_0x43afad,'method':_0x5133d1,'envName':_0x19b4ae,'args':_0x48cbaa}),null;};}return _0x459589;}return okdbFunctionsDryrun={'isWriteMethod':_0x297173,'wrapForDryRun':_0xd6b514,'syntheticDryRunFacade':_0x5e63ea,'ENV_WRITE_METHODS':_0x43e683,'QUEUE_WRITE_METHODS':_0x48bd8a,'FILES_WRITE_METHODS':_0x4435b1},okdbFunctionsDryrun;}var okdbFunctionsContext,hasRequiredOkdbFunctionsContext;function requireOkdbFunctionsContext(){const _0x11edaf=_0x449694;if(hasRequiredOkdbFunctionsContext)return okdbFunctionsContext;hasRequiredOkdbFunctionsContext=0x1;const {createEnvFacade:_0x3a431b,createQueueFacade:_0x2a3d4a,createFilesFacade:_0x3189ca,createGlobalFacade:_0x1e765c}=requireOkdbFunctionsFacades(),{wrapForDryRun:_0x55a690,syntheticDryRunFacade:_0x59d939}=requireOkdbFunctionsDryrun(),_0x52e145=[_0x11edaf(0x34e),_0x11edaf(0x27c),'list',_0x11edaf(0x314),_0x11edaf(0x2dc),_0x11edaf(0x262),'getBucket',_0x11edaf(0x299)],_0x3b68d2=['upload',_0x11edaf(0x1f7),_0x11edaf(0x29d),_0x11edaf(0x35b),_0x11edaf(0x25c),_0x11edaf(0x20b)];function _0x49630d(_0x6a6a6b,_0x320a3a){const _0x43d6a1=_0x11edaf,_0x2f7b4c=(_0x4a66f3,_0x25c484,_0x4752ed)=>_0x320a3a({'type':_0x43d6a1(0x200),'requestId':_0x6a6a6b[_0x43d6a1(0x289)],'runId':_0x6a6a6b[_0x43d6a1(0x31f)],'entry':{'level':_0x4a66f3,'msg':_0x25c484,'context':_0x4752ed,'ts':Date['now']()}}),_0x12d5fb=(_0x1eb5d8,_0x443cd9)=>_0x2f7b4c('info',_0x1eb5d8,_0x443cd9);return _0x12d5fb[_0x43d6a1(0x2a4)]=(_0xc0a20a,_0x4f7c6c)=>_0x2f7b4c(_0x43d6a1(0x2a4),_0xc0a20a,_0x4f7c6c),_0x12d5fb['warn']=(_0xa3f64c,_0x5597be)=>_0x2f7b4c(_0x43d6a1(0x26b),_0xa3f64c,_0x5597be),_0x12d5fb[_0x43d6a1(0x2b8)]=(_0xc569d5,_0x1c0d1f)=>_0x2f7b4c(_0x43d6a1(0x2b8),_0xc569d5,_0x1c0d1f),_0x12d5fb['debug']=(_0x310f2d,_0x309b12)=>_0x2f7b4c(_0x43d6a1(0x281),_0x310f2d,_0x309b12),_0x12d5fb;}function _0x114b31(_0x119c09,_0x19613b,_0x4e6027){const _0x5ca587=_0x11edaf;if(!_0x119c09)return null;return{'id':_0x119c09['id']??null,'type':_0x119c09[_0x5ca587(0x361)]??null,'tries':_0x119c09[_0x5ca587(0x316)]??null,'created':_0x119c09[_0x5ca587(0x2f5)]??null,'tags':_0x119c09[_0x5ca587(0x32d)]??null,'priority':_0x119c09[_0x5ca587(0x2e7)]??null,'bucket':_0x119c09[_0x5ca587(0x1fb)]??null,'cron':_0x119c09['cron']??null,'heartbeat'(){const _0x508017=_0x5ca587;_0x4e6027({'type':_0x508017(0x2f1),'requestId':_0x19613b['requestId'],'runId':_0x19613b[_0x508017(0x31f)],'jobId':_0x119c09['id'],'claimId':_0x119c09[_0x508017(0x21e)]});},'markProgress'(_0x1750cb){const _0x57bde5=_0x5ca587;_0x4e6027({'type':_0x57bde5(0x214),'requestId':_0x19613b['requestId'],'runId':_0x19613b[_0x57bde5(0x31f)],'jobId':_0x119c09['id'],'claimId':_0x119c09['claimId'],'message':_0x1750cb});}};}function _0x25eb89(_0x24c25b){const _0x2c30ed=_0x11edaf;if(!_0x24c25b)return null;return{'mode':_0x24c25b['mode']??null,'sourceType':_0x24c25b[_0x2c30ed(0x2a6)]??null,'sourceEnv':_0x24c25b[_0x2c30ed(0x213)]??null,'processor':_0x24c25b['processor']??null,'engineKey':_0x24c25b[_0x2c30ed(0x2f9)]??null,'cursorKey':_0x24c25b[_0x2c30ed(0x2e8)]??null};}function _0x3d8248(_0x4168aa){const _0x292207=_0x11edaf;if(!_0x4168aa)return null;return{'mode':_0x4168aa[_0x292207(0x28d)]??null,'sourceType':_0x4168aa[_0x292207(0x2a6)]??null,'targetType':_0x4168aa[_0x292207(0x2a1)]??null,'sourceEnv':_0x4168aa['sourceEnv']??null,'targetEnv':_0x4168aa[_0x292207(0x310)]??null,'engineKey':_0x4168aa[_0x292207(0x2f9)]??null,'cursorKey':_0x4168aa[_0x292207(0x2e8)]??null};}function _0x37e17c(_0x403927,_0x3653cf,_0x348369,_0xbbedfd=null,_0x389ee1=null){const _0x4a44d3=_0x11edaf,_0x37928b={'runId':_0x3653cf['runId'],'scope':_0x4a44d3(0x20e),'env':_0x3653cf[_0x4a44d3(0x284)]??null,'functionName':_0x3653cf[_0x4a44d3(0x30c)],'trigger':_0x3653cf[_0x4a44d3(0x2a4)]?.[_0x4a44d3(0x271)]??_0x4a44d3(0x329),'requestedAt':_0x3653cf[_0x4a44d3(0x2a4)]?.[_0x4a44d3(0x23b)]??Date['now']()},_0x432b04=_0x49630d(_0x3653cf,_0x348369),_0x2102d9=AbortSignal[_0x4a44d3(0x28a)](Math[_0x4a44d3(0x237)](0x1,_0x3653cf['runtime']?.[_0x4a44d3(0x2ea)]??0x3e8)),_0x32f08a=_0x389ee1?AbortSignal['any']([_0x2102d9,_0x389ee1]):_0x2102d9,_0x15129f=_0x403927[_0x4a44d3(0x20e)](_0x3653cf['envName']),_0x57d3de=_0xbbedfd?_0x55a690(_0x15129f,'env',_0x3653cf['envName'],_0xbbedfd):_0x15129f,_0x381ed4=_0xbbedfd?_0x15129f[_0x4a44d3(0x2da)]?_0x55a690(_0x15129f[_0x4a44d3(0x2da)],_0x4a44d3(0x2da),_0x3653cf[_0x4a44d3(0x284)],_0xbbedfd):_0x59d939(_0x4a44d3(0x2da),_0x3653cf['envName'],_0x52e145,_0xbbedfd):_0x15129f[_0x4a44d3(0x2da)],_0x5752ba=_0xbbedfd?_0x15129f[_0x4a44d3(0x2f8)]?_0x55a690(_0x15129f['files'],_0x4a44d3(0x2f8),_0x3653cf['envName'],_0xbbedfd):_0x59d939(_0x4a44d3(0x2f8),_0x3653cf['envName'],_0x3b68d2,_0xbbedfd):_0x15129f[_0x4a44d3(0x2f8)],_0x4d7303=_0x3a431b(_0x57d3de),_0xee558=_0x2a3d4a(_0x381ed4),_0x1fa6dd=_0x3189ca(_0x5752ba);if(_0xee558)_0x4d7303[_0x4a44d3(0x2da)]=_0xee558;if(_0x1fa6dd)_0x4d7303['files']=_0x1fa6dd;const _0x527ecf={'payload':_0x3653cf[_0x4a44d3(0x2d0)]??null,'info':_0x37928b,'signal':_0x32f08a,'log':_0x432b04,'env':_0x4d7303},_0x1cf4e8=_0x114b31(_0x3653cf[_0x4a44d3(0x33b)],_0x3653cf,_0x348369);if(_0x1cf4e8)_0x527ecf[_0x4a44d3(0x352)]=_0x1cf4e8;const _0x2a41f8=_0x25eb89(_0x3653cf[_0x4a44d3(0x265)]);if(_0x2a41f8)_0x527ecf[_0x4a44d3(0x222)]=_0x2a41f8;const _0x196a41=_0x3d8248(_0x3653cf[_0x4a44d3(0x321)]);if(_0x196a41)_0x527ecf[_0x4a44d3(0x228)]=_0x196a41;if(_0x3653cf[_0x4a44d3(0x32a)]){const _0x386e89=_0xbbedfd?_0x55a690(_0x403927,'global',null,_0xbbedfd):_0x403927;_0x527ecf[_0x4a44d3(0x307)]=_0x1e765c(_0x386e89);}return _0x527ecf;}return okdbFunctionsContext={'createExecutionContext':_0x37e17c,'createScriptLogger':_0x49630d},okdbFunctionsContext;}var hasRequiredOkdbFunctionsSandboxWorker;function requireOkdbFunctionsSandboxWorker(){const _0xc14703=_0x449694;if(hasRequiredOkdbFunctionsSandboxWorker)return okdbFunctionsSandboxWorker$1;hasRequiredOkdbFunctionsSandboxWorker=0x1;const {parentPort:_0x32fa31,workerData:_0x21a05a}=require$$0$4;requireOkdbFatalReport()['enableFatalReport'](_0xc14703(0x216));const _0x51b95e=require$$2,{compileFunctionExpression:_0x504cfc}=requireOkdbFunctionsSandbox(),{serializeError:_0x141962}=requireOkdbFunctionsIpc(),{createExecutionContext:_0x40df76}=requireOkdbFunctionsContext(),_0xda4aee=require$$6;let _0x37ab6a=null,_0x4dca75=![];const _0x320684=new Map(),_0x23d882=new Map();function _0x32711c(_0x2139c4){try{_0x32fa31['postMessage'](_0x2139c4);}catch{}}function _0x5e2f83(_0x2f9c68){const _0x113e3f=_0xc14703,_0x65c51d=(_0x2f9c68[_0x113e3f(0x284)]||_0x113e3f(0x254))+':'+_0x2f9c68[_0x113e3f(0x30c)]+':'+_0x2f9c68['version']+':'+_0x2f9c68['hash'];let _0x1a7405=_0x320684['get'](_0x65c51d);return!_0x1a7405&&(_0x1a7405=_0x504cfc(_0x2f9c68[_0x113e3f(0x294)],{'allowFetch':_0x2f9c68[_0x113e3f(0x305)]?.[_0x113e3f(0x1e3)]!==![],'allowedFetchDomains':_0x2f9c68['runtime']?.[_0x113e3f(0x345)],'filename':_0x2f9c68[_0x113e3f(0x30c)]+'.okdb-function.js'}),_0x320684['set'](_0x65c51d,_0x1a7405)),_0x1a7405;}async function _0x25c6a5(_0x2a2561){const _0x135792=_0xc14703,_0x5496e8=Date[_0x135792(0x2de)](),_0xaa546c=new AbortController();_0x23d882[_0x135792(0x2eb)](_0x2a2561[_0x135792(0x289)],_0xaa546c);try{const _0x793498=_0x5e2f83(_0x2a2561);if(_0x2a2561[_0x135792(0x284)])await _0x37ab6a[_0x135792(0x26c)](_0x2a2561[_0x135792(0x284)]);const _0x29803f=_0x2a2561['dryRun']?[]:null,_0x30d3a6=_0x40df76(_0x37ab6a,_0x2a2561,_0x32711c,_0x29803f,_0xaa546c[_0x135792(0x2dd)]),_0x303a95=await _0x793498(_0x30d3a6),_0x186ffc={'type':_0x135792(0x234),'requestId':_0x2a2561[_0x135792(0x289)],'runId':_0x2a2561[_0x135792(0x31f)],'result':_0x303a95,'meta':{'runnerId':_0x135792(0x2d9)+process[_0x135792(0x27a)],'startedAt':_0x5496e8,'finishedAt':Date['now'](),'durationMs':Date['now']()-_0x5496e8}};if(_0x29803f)_0x186ffc[_0x135792(0x201)]=_0x29803f;_0x32711c(_0x186ffc);}catch(_0x52d82a){_0x32711c({'type':_0x135792(0x2b8),'requestId':_0x2a2561['requestId'],'runId':_0x2a2561[_0x135792(0x31f)],'error':_0x141962(_0x52d82a),'meta':{'runnerId':_0x135792(0x2d9)+process[_0x135792(0x27a)],'startedAt':_0x5496e8,'finishedAt':Date[_0x135792(0x2de)](),'durationMs':Date['now']()-_0x5496e8}});}finally{_0x23d882[_0x135792(0x292)](_0x2a2561[_0x135792(0x289)]);}}async function _0xd88dd9(){const _0x629b5b=_0xc14703;if(_0x4dca75)return;_0x4dca75=!![];try{await _0x37ab6a?.[_0x629b5b(0x27e)]?.();}catch{}process[_0x629b5b(0x27f)](0x0);}async function _0x543b83(){const _0x24a562=_0xc14703,{rootPath:_0xa6357d}=_0x21a05a??{};if(!_0xa6357d)throw new Error(_0x24a562(0x359));_0x37ab6a=new _0xda4aee(_0xa6357d,{'engines':![],'processors':![],'compaction':![],'http':![],'auth':{'open':!![]},'processes':![]}),await _0x37ab6a[_0x24a562(0x26a)]();const _0x1a6eb9=setInterval(()=>{const _0x1d1ae5=_0x24a562;if(_0x4dca75)return;for(const [,_0x316884]of _0x37ab6a[_0x1d1ae5(0x23f)]){try{_0x316884[_0x1d1ae5(0x269)]?.();}catch{}}},0xc8);if(typeof _0x1a6eb9[_0x24a562(0x2c4)]===_0x24a562(0x2e4))_0x1a6eb9[_0x24a562(0x2c4)]();_0x32fa31['on']('message',_0x3daad4=>{const _0x231f90=_0x24a562;if(!_0x3daad4||typeof _0x3daad4!==_0x231f90(0x344))return;if(_0x3daad4['type']==='stop')return void _0xd88dd9();if(_0x3daad4[_0x231f90(0x361)]===_0x231f90(0x35c)){_0x23d882[_0x231f90(0x35b)](_0x3daad4[_0x231f90(0x289)])?.['abort'](new Error('cancelled\x20by\x20caller'));return;}_0x3daad4[_0x231f90(0x361)]===_0x231f90(0x2a2)&&void _0x25c6a5(_0x3daad4['job']);});const _0x3ddc21=Math[_0x24a562(0x237)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x2a0926=setInterval(()=>{const _0x2e3586=_0x24a562;try{_0x32711c({'type':_0x2e3586(0x341),'heapUsed':_0x51b95e[_0x2e3586(0x209)]()[_0x2e3586(0x35a)]});}catch{}},_0x3ddc21);if(typeof _0x2a0926[_0x24a562(0x2c4)]===_0x24a562(0x2e4))_0x2a0926['unref']();_0x32711c({'type':_0x24a562(0x212)});}return _0x543b83()['catch'](_0x368261=>{const _0x6a744b=_0xc14703;_0x32711c({'type':'fatal','error':_0x141962(_0x368261)}),process[_0x6a744b(0x27f)](0x1);}),okdbFunctionsSandboxWorker$1;}var okdbFunctionsSandboxWorkerExports=requireOkdbFunctionsSandboxWorker(),okdbFunctionsSandboxWorker=getDefaultExportFromCjs(okdbFunctionsSandboxWorkerExports);function _0x5978(_0x2e431,_0x50e44e){_0x2e431=_0x2e431-0x1e3;const _0x3536be=_0x3536();let _0x5978fa=_0x3536be[_0x2e431];return _0x5978fa;}module[_0x449694(0x203)]=okdbFunctionsSandboxWorker;
1
+ 'use strict';const _0x1e36df=_0x33fa;(function(_0x11e55d,_0x78e734){const _0x2e8b9d=_0x33fa,_0x55548b=_0x11e55d();while(!![]){try{const _0x4e167e=-parseInt(_0x2e8b9d(0x1e7))/0x1*(-parseInt(_0x2e8b9d(0x29c))/0x2)+parseInt(_0x2e8b9d(0x1ac))/0x3*(parseInt(_0x2e8b9d(0x2dd))/0x4)+parseInt(_0x2e8b9d(0x2e4))/0x5+-parseInt(_0x2e8b9d(0x216))/0x6*(-parseInt(_0x2e8b9d(0x1c4))/0x7)+-parseInt(_0x2e8b9d(0x23b))/0x8*(parseInt(_0x2e8b9d(0x1a7))/0x9)+parseInt(_0x2e8b9d(0x196))/0xa*(-parseInt(_0x2e8b9d(0x165))/0xb)+-parseInt(_0x2e8b9d(0x1be))/0xc*(parseInt(_0x2e8b9d(0x2b5))/0xd);if(_0x4e167e===_0x78e734)break;else _0x55548b['push'](_0x55548b['shift']());}catch(_0x17fefd){_0x55548b['push'](_0x55548b['shift']());}}}(_0x4479,0x3e43e));var require$$0$4=require('worker_threads'),require$$2=require('v8'),require$$0=require('node:vm'),require$$0$3=require(_0x1e36df(0x282)),require$$0$1=require(_0x1e36df(0x2c3)),require$$0$2=require('node:perf_hooks'),require$$6=require(_0x1e36df(0x242));function getDefaultExportFromCjs(_0x2e9420){const _0x527b66=_0x1e36df;return _0x2e9420&&_0x2e9420[_0x527b66(0x1ea)]&&Object[_0x527b66(0x2ac)][_0x527b66(0x233)][_0x527b66(0x270)](_0x2e9420,_0x527b66(0x203))?_0x2e9420[_0x527b66(0x203)]:_0x2e9420;}var okdbFunctionsSandboxWorker$1={},okdbFatalReport,hasRequiredOkdbFatalReport;function requireOkdbFatalReport(){if(hasRequiredOkdbFatalReport)return okdbFatalReport;hasRequiredOkdbFatalReport=0x1;function _0x18290a(_0x552404){const _0x29934a=_0x33fa;if(process.env.OKDB_FATAL_REPORT!=='1')return;try{if(!process[_0x29934a(0x22a)])return;process['report'][_0x29934a(0x220)]=!![];try{if(_0x29934a(0x224)in process[_0x29934a(0x22a)])process[_0x29934a(0x22a)][_0x29934a(0x224)]=process.env.OKDB_FATAL_REPORT_ENV!=='1';}catch{}if(process[_0x29934a(0x264)]!==_0x29934a(0x181))try{process[_0x29934a(0x22a)]['reportOnSignal']=!![];if(typeof process['report'][_0x29934a(0x1af)]==='string')process[_0x29934a(0x22a)][_0x29934a(0x1af)]='SIGSEGV';}catch{}if(process.env.OKDB_REPORT_DIR)try{require('fs')['mkdirSync'](process.env.OKDB_REPORT_DIR,{'recursive':!![]}),process['report'][_0x29934a(0x1d0)]=process.env.OKDB_REPORT_DIR;}catch{}try{process[_0x29934a(0x22a)][_0x29934a(0x1b1)]='';}catch{}if(_0x552404)process.env.OKDB_REPORT_TAG=String(_0x552404);}catch{}}return okdbFatalReport={'enableFatalReport':_0x18290a},okdbFatalReport;}function _0x4479(){const _0x34be4a=['Unknown\x20custom\x20function\x20error','version','setDefaultTTL','hostname','_drainHandler','runtime','getByPath','join','processorContext','reportOnFatalError','processor','created','Unsupported\x20transaction\x20action:\x20','excludeEnv','txn\x20ops\x20must\x20be\x20an\x20array','engineKey','targetEnv','INVALID_VALUE','used_heap_size','report','transaction','fatal','OKDBSchemaValidationError','OKDBInvalidIndexKeyError','done','txn:end','map','getEntry','hasOwnProperty','_makeIterator','fts:reset','system:bus_state_change','priority','put','stats','tolerant','88RZlzub','Index\x20\x27','index:drop','events','schema:set','INDEX_ALREADY_REGISTERED',',\x20got\x20','./okdb','string','setSchema','action','readTransaction','clearTtl','update','OKDBError','SKIP','reduce','dropping','loop-lag','targetType','job_heartbeat','_startAdmission','value','system:stopped','sandbox\x20worker:\x20rootPath\x20missing\x20from\x20workerData','abort','set','_timer','system:ready','hasIndex','kind','TXN_INVALID_ACTION','getMany','unref','materializerContext','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','function','registerIndex','Cannot\x20set\x20enforce\x20schema\x20on\x20','object','key','platform','job_progress','path','createWriteFacade','files','FUNCTION_SCRIPT_COMPILE_FAILED','listBuckets','toFixed','index:ready','upload','INVALID_INDEX_KEY','license:added','call','OKDBTypeAlreadyRegisteredError','ttl:clear','removeJob','schema:drop','ms\x20busy=','\x20│\x20','entries','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','stderr','OKDBIndexNotRegisteredError','trigger','errors','(worst\x20','catch','create','tries','system:proc','uuid','system:drain','max','_doHooks','emit','INDEX_NOT_REGISTERED','_windowCbs','Type\x20\x27','item:remove','debug','stopped','OKDBVersionMismatchError','info','ms\x20max=','getBucket','sourceType','stop','addBucket','hasType','onWindow','getKeys','getIndexStatus','details','useReadTransaction','started','onUndo','889466iLMwEE','dryRun','Invalid\x20index\x20key\x20type\x20for\x20\x27','Array.from)\x20before\x20any\x20await.','_closed','args','enabled','creating','TXN_END','patch','mapError','Unknown\x20transaction\x20action:\x20','ALREADY_EXISTS','FUNCTION_SCRIPT_INVALID_SHAPE','stack','\x27\x20already\x20registered','prototype',':\x20key\x20[','updateJob','runInContext','ms\x20p99=','getStats','sourceEnv','then','OKDBAlreadyExistsError','156cNikuP','disable','Function\x20script\x20failed\x20to\x20initialize','unsafe','sourceKey','_undoHooks','filter','getChanges','ref:violation','push','FOREIGN_KEY_DELETE_RESTRICTED','ready','txn:start','TXN_START','lmdb','functionName','txn-commit','TYPE_ALREADY_REGISTERED','bus:proc','OKDBSchemaCollectionError','Cannot\x20delete\x20','\x22\x20on\x20\x22','\x27:\x20','run','bucket','~system','next','iterator','ms/','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','_writer','resetIndex','sandbox-','halted','Function\x20script\x20failed\x20to\x20compile','dropSchema','bus:drain','TXN_INVALID_OPS','Version\x20mismatch\x20for\x20','getCount','300920bzOkGE','allowFetch','sandbox','commit','_range','removeEnvironment','timeout','1257400goNsNI','reset','freeze','Unique\x20constraint\x20violated\x20on\x20','registerFts','INDEX_HAS_CONSUMERS',']\x20already\x20maps\x20to\x20\x27','isArray','geoQuery','bus:type_drop','rollback','requestedAt','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','Foreign\x20key\x20violation:\x20','cause','ttl:set','mean','name','getByPrefix','\x20which\x20does\x20not\x20exist','length','Index\x20\x22','unique:violation','379676dhymOO','registerType','\x27\x20doesn\x27t\x20exist','count','Schema\x20validation\x20failed\x20for\x20','SCHEMA_VALIDATION_FAILED','setTTL','Transaction\x20already\x20closed','txnId','getRange','FETCH_NOT_ALLOWED','getTTL','bind','_buckets','starting','claimId','keys','note','ttl','list','sdk','message','clearDefaultTTL','createEnvironment','actions','references','OKDBForeignKeyDeleteError','Unknown\x20OKDB\x20transaction\x20error','win32','applyOps','_readViewExpired','READER_HELD_ACROSS_AWAIT','warn','ensureType','ref:violation_resolved','slice','forEach','now','percentile','getValues','clear','concat','flatMap','job','maxExtra','_closeReadTransaction','_admissionTimer','setTtl','okdb','30SPrjIS','open','OKDBInvalidValueError','return','index:registered','system:clock_change','fts:drop','remove','INVALID_PRIMARY_KEY','TXN_INVALID_OP','\x22\x20is\x20not\x20in\x20the\x20allowedFetchDomains\x20list','TXN_ROLLBACK','onDo','fetch','size','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','getClock','146313NRurGf','materializer',':txnRange','Function\x20script\x20must\x20evaluate\x20to\x20a\x20callable\x20function','cursorKey','9JjHmRm','query','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','signal','sweepExpiredTTL','filename','resetting','okdb-function-sandbox','label','has','license:activated','fts:registered','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','from','okdb-function.js','listTTL','envPath','exit','697428DHyCew','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','ftsQuery','\x22\x20is\x20used\x20by:\x20','write','fieldPath','7dyHUab','txn:rollback','ttl:expired','lastTxnId','createContext','_txnIdAtSnapshot','OKDBTypeNotRegisteredError','postMessage','allowedFetchDomains','_report','global','start','directory','targetKey','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','stringify','openEnv','dropType','log','\x20actions=','\x20does\x20not\x20exist','script','asArray','\x20references\x20','bus:env_release','_started','pid','_log','UNIQUE_CONSTRAINT','OKDBUniqueConstraintError','env','OKDBForeignKeyError','last','\x27\x20on\x20type\x20\x27','code','1PjoTqS','Invalid\x20primary\x20key\x20type:\x20','byIndex','__esModule','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','VERSION_MISMATCH','index:progress','getIndex','add','envName','_assertOpen','clearTTL','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','system:type_drop','env:opened','queue','reject','sync:apply','requestId','mode','FOREIGN_KEY_VIOLATION','dropFts','get','byLabel','exports','dropIndex','range','options','default','TXN_CLOSED','ttlStats','error','cron','.okdb-function.js','shift','license:removed','delete','type','runId','getHeapStatistics','getJob','loop-lag\x20','enable','enqueue','stream','maxMs','sort','1877628JFboEJ'];_0x4479=function(){return _0x34be4a;};return _0x4479();}var okdbFunctionsSandbox,hasRequiredOkdbFunctionsSandbox;function requireOkdbFunctionsSandbox(){if(hasRequiredOkdbFunctionsSandbox)return okdbFunctionsSandbox;hasRequiredOkdbFunctionsSandbox=0x1;const _0x587537=require$$0;function _0x4759f7(_0x30b697){const _0x1f1ebd=_0x33fa,_0x8723c0=_0x30b697==='*',_0x231585=_0x8723c0?null:new Set(Array[_0x1f1ebd(0x2eb)](_0x30b697)?_0x30b697:[]);return function _0xa5a99c(_0x52ea0c,_0x46a8cf){const _0x337560=_0x1f1ebd;if(!_0x8723c0){let _0x362619;try{const _0x556b74=new URL(typeof _0x52ea0c===_0x337560(0x243)?_0x52ea0c:_0x52ea0c?.['url']??String(_0x52ea0c));_0x362619=_0x556b74[_0x337560(0x21a)];}catch{const _0x27a869=new Error('fetch\x20blocked:\x20invalid\x20URL');return _0x27a869[_0x337560(0x1e6)]=_0x337560(0x16f),Promise[_0x337560(0x1f7)](_0x27a869);}if(!_0x231585['has'](_0x362619)){const _0x358fc7=new Error(_0x231585[_0x337560(0x1a4)]===0x0?'fetch\x20is\x20not\x20allowed\x20in\x20this\x20function\x20sandbox\x20(no\x20allowedFetchDomains\x20configured)':'fetch\x20blocked:\x20hostname\x20\x22'+_0x362619+_0x337560(0x1a0));return _0x358fc7[_0x337560(0x1e6)]=_0x337560(0x16f),Promise[_0x337560(0x1f7)](_0x358fc7);}}return fetch(_0x52ea0c,_0x46a8cf);};}function _0x89113f(_0x4ae7f7={}){const _0x3c2294=_0x33fa,_0x117b5c=_0x4ae7f7[_0x3c2294(0x2de)]!==![],_0x37a03f=_0x4ae7f7[_0x3c2294(0x1cc)]??[],_0x574a19={'Date':Date,'Math':Math,'JSON':JSON,'Array':Array,'Object':Object,'String':String,'Number':Number,'Boolean':Boolean,'Map':Map,'Set':Set,'Promise':Promise,'URL':URL,'URLSearchParams':URLSearchParams,'TextEncoder':TextEncoder,'TextDecoder':TextDecoder,'AbortController':AbortController,'AbortSignal':AbortSignal,'setTimeout':setTimeout,'clearTimeout':clearTimeout,'setInterval':setInterval,'clearInterval':clearInterval,'queueMicrotask':queueMicrotask,'structuredClone':structuredClone,'crypto':globalThis['crypto']};return _0x117b5c&&typeof fetch===_0x3c2294(0x25f)&&(_0x574a19[_0x3c2294(0x1a3)]=_0x4759f7(_0x37a03f)),_0x574a19['globalThis']=_0x574a19,_0x574a19;}function _0x10b1d3(_0x3eb66e,_0xf1c092={}){const _0x4c6623=_0x33fa,_0x3315ab=_0x89113f(_0xf1c092),_0x43aa7c=_0x587537[_0x4c6623(0x1c8)](_0x3315ab,{'name':_0x4c6623(0x1b3),'codeGeneration':{'strings':![],'wasm':![]}});let _0xfa94f6;try{_0xfa94f6=new _0x587537['Script']('('+_0x3eb66e+')',{'filename':_0xf1c092[_0x4c6623(0x1b1)]??_0x4c6623(0x1ba)});}catch(_0x3a28b2){const _0x48dca5=new Error(_0x3a28b2?.[_0x4c6623(0x17a)]||_0x4c6623(0x2d7));_0x48dca5[_0x4c6623(0x1e6)]='FUNCTION_SCRIPT_COMPILE_FAILED',_0x48dca5[_0x4c6623(0x2f2)]=_0x3a28b2;throw _0x48dca5;}let _0x1d0529;try{_0x1d0529=_0xfa94f6[_0x4c6623(0x2af)](_0x43aa7c,{'timeout':_0xf1c092['compileTimeoutMs']??0x64});}catch(_0xa359a6){const _0x7a2768=new Error(_0xa359a6?.[_0x4c6623(0x17a)]||_0x4c6623(0x2b7));_0x7a2768[_0x4c6623(0x1e6)]=_0x4c6623(0x269),_0x7a2768[_0x4c6623(0x2f2)]=_0xa359a6;throw _0x7a2768;}if(typeof _0x1d0529!==_0x4c6623(0x25f)){const _0x193700=new Error(_0x4c6623(0x1aa));_0x193700[_0x4c6623(0x1e6)]=_0x4c6623(0x2a9);throw _0x193700;}return _0x1d0529;}return okdbFunctionsSandbox={'createSandboxGlobals':_0x89113f,'compileFunctionExpression':_0x10b1d3,'_buildRestrictedFetch':_0x4759f7},okdbFunctionsSandbox;}var okdbFunctionsIpc,hasRequiredOkdbFunctionsIpc;function requireOkdbFunctionsIpc(){if(hasRequiredOkdbFunctionsIpc)return okdbFunctionsIpc;hasRequiredOkdbFunctionsIpc=0x1;function _0x4c7be2(_0x38c73d){const _0x342262=_0x33fa;if(!_0x38c73d)return null;return{'message':_0x38c73d[_0x342262(0x17a)]||String(_0x38c73d),'stack':_0x38c73d[_0x342262(0x2aa)]||null,'code':_0x38c73d[_0x342262(0x1e6)]||null,'details':_0x38c73d['details']||null};}function _0x214636(_0x3c1a79){const _0x57822f=_0x33fa;if(!_0x3c1a79)return new Error(_0x57822f(0x217));const _0x446cd4=new Error(_0x3c1a79[_0x57822f(0x17a)]||String(_0x3c1a79));if(_0x3c1a79[_0x57822f(0x2aa)])_0x446cd4[_0x57822f(0x2aa)]=_0x3c1a79[_0x57822f(0x2aa)];if(_0x3c1a79[_0x57822f(0x1e6)])_0x446cd4[_0x57822f(0x1e6)]=_0x3c1a79[_0x57822f(0x1e6)];if(_0x3c1a79['details'])_0x446cd4[_0x57822f(0x298)]=_0x3c1a79[_0x57822f(0x298)];return _0x446cd4;}return okdbFunctionsIpc={'serializeError':_0x4c7be2,'deserializeError':_0x214636},okdbFunctionsIpc;}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x265f08=_0x1e36df;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x584323={'PUT':'put','REMOVE':'remove','INDEX_DROP':_0x265f08(0x200),'INDEX_REGISTER':_0x265f08(0x260),'INDEX_RESET':_0x265f08(0x2d4),'TYPE_REGISTER':_0x265f08(0x166),'TYPE_DROP':_0x265f08(0x1d5),'FTS_REGISTER':_0x265f08(0x2e8),'FTS_DROP':_0x265f08(0x1fc),'FTS_RESET':'resetFts','SCHEMA_SET':_0x265f08(0x244),'SCHEMA_DROP':_0x265f08(0x2d8),'TTL_SET':_0x265f08(0x194),'TTL_CLEAR':_0x265f08(0x247)},_0x4a310d={'SYSTEM_READY':_0x265f08(0x257),'SYSTEM_STOPPED':_0x265f08(0x252),'SYSTEM_CLOCK_CHANGE':_0x265f08(0x19b),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x265f08(0x283),'SYSTEM_TYPE_DROP':_0x265f08(0x1f4),'SYSTEM_PROC':_0x265f08(0x281),'SYSTEM_BUS_STATE_CHANGE':_0x265f08(0x236),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x265f08(0x28a),'INDEX_RESET':'index:reset','INDEX_READY':_0x265f08(0x26c),'INDEX_PROGRESS':_0x265f08(0x1ed),'VIEW_PROGRESS':'view:progress','INDEX_DROP':_0x265f08(0x23d),'INDEX_REGISTERED':_0x265f08(0x19a),'FTS_REGISTERED':_0x265f08(0x1b7),'FTS_DROP':_0x265f08(0x19c),'FTS_RESET':_0x265f08(0x235),'SCHEMA_SET':_0x265f08(0x23f),'SCHEMA_DROP':_0x265f08(0x274),'UNIQUE_VIOLATION':_0x265f08(0x164),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x265f08(0x2bd),'REF_VIOLATION_RESOLVED':_0x265f08(0x187),'SYNC_APPLY':_0x265f08(0x1f8),'TXN_START':_0x265f08(0x2c1),'TXN_END':_0x265f08(0x230),'TXN_ROLLBACK':_0x265f08(0x1c5),'TYPE_REGISTERED':'type:registered','TYPE_DROP':'type:drop','ENV_OPENED':_0x265f08(0x1f5),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x265f08(0x1c6),'TTL_SET':_0x265f08(0x2f3),'TTL_CLEAR':_0x265f08(0x272),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x265f08(0x26f),'LICENSE_ACTIVATED':_0x265f08(0x1b6),'LICENSE_REMOVED':_0x265f08(0x20a)},_0x56dffa={'CREATING':_0x265f08(0x2a3),'RESETTING':_0x265f08(0x1b2),'READY':_0x265f08(0x2c0),'DROPPING':_0x265f08(0x24c),'WAITING':'waiting'},_0x7f7791={'CREATED':_0x265f08(0x222),'STARTING':_0x265f08(0x173),'STARTED':_0x265f08(0x29a),'STOPPING':'stopping','STOPPED':_0x265f08(0x28c)},_0x264733={'CREATING':_0x265f08(0x2a3),'READY':_0x265f08(0x2c0),'HALTED':_0x265f08(0x2d6),'STOPPED':_0x265f08(0x28c),'RESETTING':'resetting'},_0x6e7aea=Object[_0x265f08(0x2e6)]({'POKE':'bus:poke','DRAIN':_0x265f08(0x2d9),'TYPE_DROP':_0x265f08(0x2ed),'PROC':_0x265f08(0x2c7),'ENV_RELEASE':_0x265f08(0x1dc)});return okdbEnums={'BUS_EVENTS':_0x6e7aea,'CHANGE_ACTIONS':_0x584323,'EVENTS':_0x4a310d,'INDEX_STATE':_0x56dffa,'OKDB_STATE':_0x7f7791,'VIEW_STATE':_0x264733},okdbEnums;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0xa1de5 extends Error{constructor(_0x5cc688,_0x5bff46,_0x5e0ca8={}){const _0x4b78b1=_0x33fa;super(_0x5cc688),this[_0x4b78b1(0x2f5)]=_0x4b78b1(0x249),this[_0x4b78b1(0x1e6)]=_0x5bff46,this[_0x4b78b1(0x298)]=_0x5e0ca8,_0x5e0ca8['cause']&&(this[_0x4b78b1(0x2f2)]=_0x5e0ca8[_0x4b78b1(0x2f2)]),Error['captureStackTrace'](this,this['constructor']);}}class _0x17bfde extends _0xa1de5{constructor(_0xc2a5e7,_0x195991,_0x4fca07,_0x222e54){const _0x387600=_0x33fa;super(_0x387600(0x2db)+_0xc2a5e7+'@'+_0x195991+':\x20expected\x20'+_0x4fca07+_0x387600(0x241)+_0x222e54,_0x387600(0x1ec),{'type':_0xc2a5e7,'key':_0x195991,'expectedVersion':_0x4fca07,'actualVersion':_0x222e54}),this[_0x387600(0x2f5)]=_0x387600(0x28d);}}class _0x343436 extends _0xa1de5{constructor(_0x1e0829,_0x97e7ec){const _0x3636da=_0x33fa;super(_0x1e0829+'@'+_0x97e7ec+_0x3636da(0x1d8),'NOT_FOUND',{'type':_0x1e0829,'key':_0x97e7ec}),this[_0x3636da(0x2f5)]='OKDBNotFoundError';}}class _0x6899d7 extends _0xa1de5{constructor(_0x4ada72,_0x2cdd98){const _0x69ac1d=_0x33fa;super(_0x4ada72+'@'+_0x2cdd98+'\x20already\x20exists',_0x69ac1d(0x2a8),{'type':_0x4ada72,'key':_0x2cdd98}),this['name']=_0x69ac1d(0x2b4);}}class _0x1f0517 extends _0xa1de5{constructor(_0x5a3d42,_0x31b165){const _0x6b9074=_0x33fa,_0x3c356a=typeof _0x31b165;super(_0x6b9074(0x29e)+_0x5a3d42+_0x6b9074(0x2cb)+_0x3c356a+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x31b165,_0x6b9074(0x26e),{'index':_0x5a3d42,'key':_0x31b165,'keyType':_0x3c356a}),this[_0x6b9074(0x2f5)]=_0x6b9074(0x22e);}}class _0xf356e2 extends _0xa1de5{constructor(_0x478e48){const _0x4e9f32=_0x33fa,_0x3f2831=typeof _0x478e48;super(_0x4e9f32(0x1e8)+_0x3f2831+_0x4e9f32(0x1d2)+_0x478e48,_0x4e9f32(0x19e),{'key':_0x478e48,'keyType':_0x3f2831}),this[_0x4e9f32(0x2f5)]='OKDBInvalidPrimaryKeyError';}}class _0x32cc37 extends _0xa1de5{constructor(_0x388963){const _0x5bb99b=_0x33fa;super(_0x5bb99b(0x289)+_0x388963+_0x5bb99b(0x167),'TYPE_NOT_REGISTERED',{'type':_0x388963}),this['name']=_0x5bb99b(0x1ca);}}class _0x3c400b extends _0xa1de5{constructor(_0x195c79){const _0x2fd35d=_0x33fa;super(_0x2fd35d(0x289)+_0x195c79+_0x2fd35d(0x2ab),_0x2fd35d(0x2c6),{'type':_0x195c79}),this[_0x2fd35d(0x2f5)]=_0x2fd35d(0x271);}}class _0x32ad71 extends _0xa1de5{constructor(_0x3d2ae7,_0x11a6b2){const _0x352758=_0x33fa;super('Index\x20\x27'+_0x11a6b2+_0x352758(0x1e5)+_0x3d2ae7+_0x352758(0x167),_0x352758(0x287),{'type':_0x3d2ae7,'index':_0x11a6b2}),this[_0x352758(0x2f5)]=_0x352758(0x27a);}}class _0x4a786a extends _0xa1de5{constructor(_0xa05200,_0x54f38b){const _0x4345c8=_0x33fa;super(_0x4345c8(0x23c)+_0x54f38b+'\x27\x20on\x20type\x20\x27'+_0xa05200+'\x27\x20is\x20already\x20registered',_0x4345c8(0x240),{'type':_0xa05200,'index':_0x54f38b}),this[_0x4345c8(0x2f5)]='OKDBIndexAlreadyRegisteredError';}}class _0x37448c extends _0xa1de5{constructor(_0x3437b4,_0x23f299={}){const _0x57a092=_0x33fa;super(_0x3437b4,_0x57a092(0x228),_0x23f299),this['name']=_0x57a092(0x198);}}class _0x5e690c extends _0xa1de5{constructor(_0x200906,_0x41195d,_0x527bb2,_0x427704,_0x5a662c){const _0x56a866=_0x33fa;super(_0x56a866(0x2e7)+_0x200906+'@'+_0x41195d+_0x56a866(0x2ad)+_0x527bb2+_0x56a866(0x2ea)+_0x427704+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x5a662c+'\x27',_0x56a866(0x1e0),{'type':_0x200906,'index':_0x41195d,'indexKey':_0x527bb2,'existingKey':_0x427704,'conflictingKey':_0x5a662c}),this[_0x56a866(0x2f5)]=_0x56a866(0x1e1);}}class _0x3698b9 extends _0xa1de5{constructor(_0x59cbb4,_0x39d9e9,_0x270392){const _0x434961=_0x33fa;super(_0x434961(0x169)+_0x59cbb4+'@'+_0x39d9e9,_0x434961(0x16a),{'type':_0x59cbb4,'key':_0x39d9e9,'errors':_0x270392}),this['name']=_0x434961(0x22d),this[_0x434961(0x20c)]=_0x59cbb4,this[_0x434961(0x263)]=_0x39d9e9,this[_0x434961(0x27c)]=_0x270392;}}class _0x71521f extends _0xa1de5{constructor(_0x5cc746,_0x212acc){const _0x2d5a0f=_0x33fa;super(_0x2d5a0f(0x261)+_0x5cc746+':\x20'+_0x212acc[_0x2d5a0f(0x2f8)]+'\x20documents\x20fail\x20validation','SCHEMA_COLLECTION_INVALID',{'type':_0x5cc746,'failures':_0x212acc}),this[_0x2d5a0f(0x2f5)]=_0x2d5a0f(0x2c8),this[_0x2d5a0f(0x20c)]=_0x5cc746,this['failures']=_0x212acc;}}class _0x107620 extends _0xa1de5{constructor(_0x5eb2a7,_0xe829d0,_0x3c60c2,_0x51ce1f,_0x22d0ce){const _0x4fe2e3=_0x33fa;super(_0x4fe2e3(0x2f1)+_0x5eb2a7+'@'+_0xe829d0+'.'+_0x3c60c2+_0x4fe2e3(0x1db)+_0x51ce1f+'@'+_0x22d0ce+_0x4fe2e3(0x2f7),_0x4fe2e3(0x1fb),{'sourceType':_0x5eb2a7,'sourceKey':_0xe829d0,'fieldPath':_0x3c60c2,'targetType':_0x51ce1f,'targetKey':_0x22d0ce}),this[_0x4fe2e3(0x2f5)]=_0x4fe2e3(0x1e3),this['sourceType']=_0x5eb2a7,this[_0x4fe2e3(0x2b9)]=_0xe829d0,this[_0x4fe2e3(0x1c3)]=_0x3c60c2,this[_0x4fe2e3(0x24e)]=_0x51ce1f,this['targetKey']=_0x22d0ce;}}class _0x3cb370 extends _0xa1de5{constructor(_0x27214a,_0x4d8fcd,_0x5d98aa){const _0x3c86e8=_0x33fa;super(_0x3c86e8(0x2c9)+_0x27214a+'@'+_0x4d8fcd+':\x20'+_0x5d98aa[_0x3c86e8(0x2f8)]+_0x3c86e8(0x1a5),_0x3c86e8(0x2bf),{'targetType':_0x27214a,'targetKey':_0x4d8fcd,'references':_0x5d98aa}),this[_0x3c86e8(0x2f5)]=_0x3c86e8(0x17f),this[_0x3c86e8(0x24e)]=_0x27214a,this[_0x3c86e8(0x1d1)]=_0x4d8fcd,this[_0x3c86e8(0x17e)]=_0x5d98aa;}}class _0x4d9ed9 extends _0xa1de5{constructor(_0x24c241,_0x13af97,_0x523499){const _0x4bab76=_0x33fa;super(_0x4bab76(0x163)+_0x13af97+_0x4bab76(0x2ca)+_0x24c241+_0x4bab76(0x1c1)+_0x523499[_0x4bab76(0x231)](_0x2d38fd=>_0x2d38fd[_0x4bab76(0x259)]+':'+_0x2d38fd[_0x4bab76(0x2f5)])[_0x4bab76(0x21e)](',\x20'),_0x4bab76(0x2e9),{'type':_0x24c241,'index':_0x13af97,'usedBy':_0x523499}),this[_0x4bab76(0x2f5)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0xa1de5,'OKDBVersionMismatchError':_0x17bfde,'OKDBNotFoundError':_0x343436,'OKDBAlreadyExistsError':_0x6899d7,'OKDBInvalidIndexKeyError':_0x1f0517,'OKDBInvalidPrimaryKeyError':_0xf356e2,'OKDBTypeNotRegisteredError':_0x32cc37,'OKDBTypeAlreadyRegisteredError':_0x3c400b,'OKDBIndexNotRegisteredError':_0x32ad71,'OKDBIndexAlreadyRegisteredError':_0x4a786a,'OKDBInvalidValueError':_0x37448c,'OKDBUniqueConstraintError':_0x5e690c,'OKDBSchemaValidationError':_0x3698b9,'OKDBSchemaCollectionError':_0x71521f,'OKDBForeignKeyError':_0x107620,'OKDBForeignKeyDeleteError':_0x3cb370,'OKDBIndexHasConsumersError':_0x4d9ed9},okdbError;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0xb60563=_0x1e36df;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x2468f6=require$$0$1,{OKDBError:_0x980ef0}=requireOkdbError(),_0x514f04={'value':null,'done':!![]};class _0x1af3de{constructor(_0x3210a8){const _0x11b3ab=_0x33fa;this[_0x11b3ab(0x234)]=_0x3210a8;}get['DONE'](){return _0x514f04;}[Symbol[_0xb60563(0x2d0)]](){const _0x1b2bc5=_0xb60563;return this[_0x1b2bc5(0x234)]();}['map'](_0x2851fd){const _0x25cc01=this;return new _0x1af3de(()=>{const _0x220148=_0x33fa,_0x334d8f=_0x25cc01[Symbol[_0x220148(0x2d0)]]();return{'next'(){const _0x2995cb=_0x220148;for(;;){const _0x239693=_0x334d8f[_0x2995cb(0x2cf)]();if(_0x239693[_0x2995cb(0x22f)])return{'done':!![],'value':undefined};const _0x1a85d5=_0x2851fd(_0x239693[_0x2995cb(0x251)]);if(_0x1a85d5===_0x2468f6[_0x2995cb(0x24a)])continue;if(_0x1a85d5===_0x514f04)return _0x334d8f[_0x2995cb(0x199)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x1a85d5};}},'return'(){const _0x1f1441=_0x220148;return _0x334d8f[_0x1f1441(0x199)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x220148(0x2d0)]](){return this;}};});}[_0xb60563(0x2bb)](_0x2cc154){const _0x324998=_0xb60563;return this[_0x324998(0x231)](_0x395ff1=>_0x2cc154(_0x395ff1)?_0x395ff1:_0x2468f6[_0x324998(0x24a)]);}[_0xb60563(0x189)](_0x6f3a4c){for(const _0x63742e of this)_0x6f3a4c(_0x63742e);}[_0xb60563(0x188)](_0x3d1430=0x0,_0x297c04=Infinity){const _0x3e7c03=this;return new _0x1af3de(()=>{const _0x13d251=_0x33fa,_0x534899=_0x3e7c03[Symbol[_0x13d251(0x2d0)]]();let _0x5518f6=0x0;return{'next'(){const _0x202099=_0x13d251;for(;;){const _0xf4f416=_0x534899[_0x202099(0x2cf)]();if(_0xf4f416['done'])return{'done':!![],'value':undefined};const _0x2ca4fd=_0x5518f6++;if(_0x2ca4fd<_0x3d1430)continue;if(_0x2ca4fd>=_0x297c04)return _0x534899[_0x202099(0x199)]?.(),{'done':!![],'value':undefined};return _0xf4f416;}},'return'(){return _0x534899['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x13d251(0x2d0)]](){return this;}};});}['at'](_0x5ddb51){let _0x7540d7=0x0;for(const _0x52de32 of this)if(_0x7540d7++===_0x5ddb51)return _0x52de32;return undefined;}[_0xb60563(0x18f)](_0x13c0d6){const _0x1575cb=this;return new _0x1af3de(()=>{const _0x11548f=_0x33fa,_0x152e09=_0x1575cb[Symbol[_0x11548f(0x2d0)]]();let _0x594c86=[];return{'next'(){const _0x1d7d23=_0x11548f;for(;;){if(_0x594c86[_0x1d7d23(0x2f8)])return{'done':![],'value':_0x594c86[_0x1d7d23(0x209)]()};const _0x1df268=_0x152e09[_0x1d7d23(0x2cf)]();if(_0x1df268['done'])return{'done':!![],'value':undefined};const _0x58871e=_0x13c0d6(_0x1df268['value']);if(Array[_0x1d7d23(0x2eb)](_0x58871e))_0x594c86=_0x594c86[_0x1d7d23(0x18e)](_0x58871e);else{if(_0x58871e!=null&&(_0x58871e instanceof _0x1af3de||typeof _0x58871e[Symbol[_0x1d7d23(0x2d0)]]===_0x1d7d23(0x25f)&&_0x1d7d23(0x1da)in _0x58871e))_0x594c86=_0x594c86[_0x1d7d23(0x18e)](Array[_0x1d7d23(0x1b9)](_0x58871e));else{if(_0x58871e!==_0x2468f6[_0x1d7d23(0x24a)])return{'done':![],'value':_0x58871e};}}}},'return'(){const _0x5e6add=_0x11548f;return _0x152e09[_0x5e6add(0x199)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0xb60563(0x18e)](_0x2c09c9){const _0x2f8aa9=this;return new _0x1af3de(()=>{const _0x4d418a=_0x33fa;let _0x1329dd=_0x2f8aa9[Symbol[_0x4d418a(0x2d0)]](),_0x2bc256=![];return{'next'(){const _0x3f37ec=_0x4d418a;for(;;){const _0x28df97=_0x1329dd['next']();if(!_0x28df97[_0x3f37ec(0x22f)])return _0x28df97;if(_0x2bc256)return{'done':!![],'value':undefined};_0x2bc256=!![],_0x1329dd=_0x2c09c9[Symbol[_0x3f37ec(0x2d0)]]();}},'return'(){const _0x126108=_0x4d418a;return _0x1329dd[_0x126108(0x199)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0xb60563(0x2a6)](_0x4f4122){const _0x42565f=this;return new _0x1af3de(()=>{const _0x3f3709=_0x33fa,_0x3aee2d=_0x42565f[Symbol['iterator']]();return{'next'(){const _0x467f63=_0x33fa;for(;;){try{return _0x3aee2d[_0x467f63(0x2cf)]();}catch(_0x4613e4){const _0x2c5d47=_0x4f4122(_0x4613e4);if(_0x2c5d47===_0x2468f6[_0x467f63(0x24a)]||_0x2c5d47===undefined)continue;return{'done':![],'value':_0x2c5d47};}}},'return'(){const _0x2293bc=_0x33fa;return _0x3aee2d[_0x2293bc(0x199)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3f3709(0x2d0)]](){return this;}};});}['toJSON'](){const _0x2c33cc=_0xb60563;return Array[_0x2c33cc(0x1b9)](this);}get[_0xb60563(0x1da)](){return Array['from'](this);}}const _0x26367a={'total':0x0,'byLabel':{},'last':null};function _0x525c74(_0x5b3def){const _0x390442=_0xb60563;_0x26367a['total']++;if(_0x5b3def)_0x26367a[_0x390442(0x1fe)][_0x5b3def]=(_0x26367a[_0x390442(0x1fe)][_0x5b3def]??0x0)+0x1;_0x26367a[_0x390442(0x1e4)]={'label':_0x5b3def??null,'at':Date[_0x390442(0x18a)]()};}function _0x5ca93a(){return{'total':_0x26367a['total'],'byLabel':{..._0x26367a['byLabel']},'last':_0x26367a['last']};}function _0x30dfda(_0x2622d6,_0x227818={}){const {getTxnId:_0x3ff349,resume:_0x218d05,label:_0x1d83c7,baseline:_0xe0dae}=_0x227818;return new _0x1af3de(()=>{const _0x504696=_0x33fa;let _0x4cd318=null,_0x3abb9c=![],_0x57f693=![],_0x66dd1d=![],_0x3b1fb7,_0x1299a5=0x0,_0x207496;return{'next'(){const _0x4d2645=_0x33fa;if(_0x66dd1d)return{'done':!![],'value':undefined};if(_0x57f693){let _0xb44be7=![];if(_0x218d05&&_0x3ff349)try{_0xb44be7=_0x3ff349()===_0x207496;}catch{}if(!_0xb44be7){_0x66dd1d=!![],_0x525c74(_0x1d83c7);throw new _0x980ef0(_0x218d05?_0x4d2645(0x1eb)+'meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20'+_0x4d2645(0x2f0):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x4d2645(0x29f),_0x4d2645(0x184));}_0x4cd318=_0x218d05(_0x3b1fb7,_0x1299a5)[Symbol['iterator']](),_0x57f693=![];}if(!_0x4cd318){if(_0xe0dae!==undefined)_0x207496=_0xe0dae;else try{_0x207496=_0x3ff349?_0x3ff349():undefined;}catch{_0x207496=undefined;}try{_0x4cd318=_0x2622d6()[Symbol[_0x4d2645(0x2d0)]]();}catch(_0x5bcabc){_0x66dd1d=!![];throw _0x5bcabc;}}!_0x3abb9c&&(_0x3abb9c=!![],queueMicrotask(()=>{const _0x732aef=_0x4d2645;_0x3abb9c=![];if(_0x66dd1d||_0x57f693)return;try{_0x4cd318?.[_0x732aef(0x199)]?.();}catch{}_0x4cd318=null,_0x57f693=!![];}));const _0x351a1e=_0x4cd318[_0x4d2645(0x2cf)]();if(_0x351a1e['done'])return _0x66dd1d=!![],{'done':!![],'value':undefined};return _0x3b1fb7=_0x351a1e[_0x4d2645(0x251)],_0x1299a5++,_0x351a1e;},'return'(){const _0x1e648f=_0x33fa;_0x66dd1d=!![];try{_0x4cd318?.[_0x1e648f(0x199)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x504696(0x2d0)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x30dfda,'OKDBGuardedRange':_0x1af3de,'recordGuardTrip':_0x525c74,'getGuardTripStats':_0x5ca93a},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x4e6c6b=_0x1e36df;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x8be2f8,performance:_0x29d6d9}=require$$0$2,_0x248e9a=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x1b6976=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x303e43=process.env.OKDB_LOOP_LAG_ALL==='1',_0x322712=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x4020ab{constructor(){const _0x277a28=_0x33fa;this[_0x277a28(0x2a2)]=_0x248e9a,this['_buckets']=new Map(),this['_h']=null,this['_timer']=null,this[_0x277a28(0x1dd)]=![],this['_log']=(_0x3d7b4a,_0x4f3c7e)=>process[_0x277a28(0x279)][_0x277a28(0x1c2)](_0x3d7b4a+(_0x4f3c7e?'\x20'+JSON[_0x277a28(0x1d3)](_0x4f3c7e):'')+'\x0a');}[_0x4e6c6b(0x18a)](){return _0x29d6d9['now']();}['setLogger'](_0x541600){if(typeof _0x541600==='function')this['_log']=_0x541600;}[_0x4e6c6b(0x176)](_0x537204,_0x409a40,_0x907733){const _0x2cd848=_0x4e6c6b;if(!this[_0x2cd848(0x2a2)])return;let _0x3e47c1=this[_0x2cd848(0x172)][_0x2cd848(0x1fd)](_0x537204);!_0x3e47c1&&(_0x3e47c1={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x2cd848(0x172)][_0x2cd848(0x255)](_0x537204,_0x3e47c1)),_0x3e47c1['ms']+=_0x409a40,_0x3e47c1[_0x2cd848(0x168)]+=0x1,_0x409a40>_0x3e47c1['maxMs']&&(_0x3e47c1['maxMs']=_0x409a40,_0x3e47c1[_0x2cd848(0x191)]=_0x907733||'');}[_0x4e6c6b(0x1cf)](_0x4bbe21){const _0x2bf715=_0x4e6c6b;if(!this[_0x2bf715(0x2a2)]||this[_0x2bf715(0x1dd)])return;this['_started']=!![];if(_0x4bbe21)this[_0x2bf715(0x1df)]=_0x4bbe21;this['_h']=_0x8be2f8({'resolution':0xa}),this['_h'][_0x2bf715(0x211)](),this['_timer']=setInterval(()=>this['_report'](),_0x1b6976);if(this['_timer'][_0x2bf715(0x25c)])this[_0x2bf715(0x256)]['unref']();}[_0x4e6c6b(0x295)](_0x3b0ad8){const _0x51ae38=_0x4e6c6b;if(!this['_windowCbs'])this[_0x51ae38(0x288)]=new Set();this[_0x51ae38(0x288)][_0x51ae38(0x1ef)](_0x3b0ad8);if(!this['_started'])this[_0x51ae38(0x250)]();}['offWindow'](_0x5b06bf){const _0x144171=_0x4e6c6b;this[_0x144171(0x288)]?.[_0x144171(0x20b)](_0x5b06bf);}[_0x4e6c6b(0x250)](){const _0x5858f6=_0x4e6c6b;if(this['_admissionStarted'])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x8be2f8({'resolution':0xa}),this['_h']['enable']());const _0x1a2d6a=_0x1b6976;this[_0x5858f6(0x193)]=setInterval(()=>{const _0x107259=_0x5858f6,_0x4f1ee7=this['_h'];if(!_0x4f1ee7)return;const _0x4b65d4=_0x4f1ee7[_0x107259(0x18b)](0x63)/0xf4240,_0x40b9f9=_0x4f1ee7[_0x107259(0x284)]/0xf4240,_0x352e09=_0x4f1ee7[_0x107259(0x2f4)]/0xf4240;_0x4f1ee7[_0x107259(0x2e5)]();if(this[_0x107259(0x288)])for(const _0x25767e of this[_0x107259(0x288)]){try{_0x25767e({'p99Ms':_0x4b65d4,'maxMs':_0x40b9f9,'meanMs':_0x352e09,'reportMs':_0x1a2d6a});}catch{}}},_0x1a2d6a);if(this[_0x5858f6(0x193)][_0x5858f6(0x25c)])this['_admissionTimer']['unref']();}[_0x4e6c6b(0x1cd)](){const _0x4f72fc=_0x4e6c6b,_0x1170df=this['_h'],_0x425f9f=_0x1170df['max']/0xf4240,_0x13b78b=_0x1170df[_0x4f72fc(0x18b)](0x63)/0xf4240,_0x207d39=_0x1170df[_0x4f72fc(0x2f4)]/0xf4240;_0x1170df[_0x4f72fc(0x2e5)]();const _0x1dd77d=[...this[_0x4f72fc(0x172)][_0x4f72fc(0x277)]()][_0x4f72fc(0x231)](([_0x5df020,_0x7d004c])=>({'label':_0x5df020,..._0x7d004c}))[_0x4f72fc(0x215)]((_0x1c93b4,_0x3eab62)=>_0x3eab62['ms']-_0x1c93b4['ms'])['slice'](0x0,0x8);this['_buckets'][_0x4f72fc(0x18d)]();const _0x7722c0=_0x1dd77d[_0x4f72fc(0x24b)]((_0x13993b,_0x5a9d41)=>_0x13993b+_0x5a9d41['ms'],0x0),_0x407ec9=_0x1dd77d['map'](_0x5945ba=>_0x5945ba[_0x4f72fc(0x1b4)]+'='+_0x5945ba['ms'][_0x4f72fc(0x26b)](0x0)+_0x4f72fc(0x2d1)+_0x5945ba['count']+(_0x5945ba[_0x4f72fc(0x214)]>0x5?_0x4f72fc(0x27d)+_0x5945ba[_0x4f72fc(0x214)]['toFixed'](0x0)+'ms'+(_0x5945ba[_0x4f72fc(0x191)]?'\x20'+_0x5945ba[_0x4f72fc(0x191)]:'')+')':''));(_0x303e43||_0x425f9f>=_0x322712)&&this[_0x4f72fc(0x1df)](_0x4f72fc(0x210)+_0x1b6976+_0x4f72fc(0x28f)+_0x425f9f[_0x4f72fc(0x26b)](0x0)+_0x4f72fc(0x2b0)+_0x13b78b['toFixed'](0x0)+'ms\x20mean='+_0x207d39['toFixed'](0x0)+_0x4f72fc(0x275)+_0x7722c0[_0x4f72fc(0x26b)](0x0)+'ms'+(_0x407ec9[_0x4f72fc(0x2f8)]?_0x4f72fc(0x276)+_0x407ec9[_0x4f72fc(0x21e)]('\x20\x20'):''),{'feature':_0x4f72fc(0x24d)});if(this[_0x4f72fc(0x288)])for(const _0x277918 of this[_0x4f72fc(0x288)]){try{_0x277918({'p99Ms':_0x13b78b,'maxMs':_0x425f9f,'meanMs':_0x207d39,'reportMs':_0x1b6976});}catch{}}}[_0x4e6c6b(0x292)](){const _0x3be7d7=_0x4e6c6b;if(this['_timer'])clearInterval(this[_0x3be7d7(0x256)]);if(this['_h'])this['_h'][_0x3be7d7(0x2b6)]();this[_0x3be7d7(0x256)]=null,this['_h']=null,this[_0x3be7d7(0x1dd)]=![];}}const _0x2ad4cb=new _0x4020ab();if(_0x2ad4cb[_0x4e6c6b(0x2a2)])_0x2ad4cb[_0x4e6c6b(0x1cf)]();return okdbLoopMonitor={'LOOP':_0x2ad4cb},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x92f5fa=_0x1e36df;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x242647=require$$0$3,{EVENTS:_0x41afe4}=requireOkdbEnums(),{OKDBError:_0x19bd66}=requireOkdbError(),{recordGuardTrip:_0x31e8b0,guardSnapshotIterable:_0x1fbfea}=requireOkdbGuardedRange(),{LOOP:_0x4e0e25}=requireOkdbLoopMonitor();function _0x527a84(_0x574edb){return _0x574edb['map'](_0x5b03bf=>{const _0x476d55=_0x33fa,[_0x19cd37,_0x367466]=_0x5b03bf[_0x476d55(0x2a1)]||[];return{'action':_0x5b03bf[_0x476d55(0x245)],'type':_0x19cd37,'key':_0x367466};});}class _0x124744{[_0x92f5fa(0x195)];[_0x92f5fa(0x17d)]=[];['_doHooks']=[];[_0x92f5fa(0x2ba)]=[];constructor(_0x31aa8f,_0x20fdd7={'useReadTransaction':![]}){const _0x447fc4=_0x92f5fa;this[_0x447fc4(0x195)]=_0x31aa8f,this['options']=_0x20fdd7,this['id']=_0x242647['v4']();if(this[_0x447fc4(0x202)][_0x447fc4(0x299)])try{this[_0x447fc4(0x1c9)]=this['okdb']['db'][_0x447fc4(0x2b1)]()[_0x447fc4(0x1c7)];}catch{this[_0x447fc4(0x1c9)]=undefined;}this['readTransaction']=this[_0x447fc4(0x202)][_0x447fc4(0x299)]?this['okdb']['db'][_0x447fc4(0x299)]():null,this[_0x447fc4(0x2a0)]=![],this[_0x447fc4(0x183)]=![],this[_0x447fc4(0x246)]&&queueMicrotask(()=>{const _0x5096fa=_0x447fc4;this[_0x5096fa(0x246)]&&(this[_0x5096fa(0x192)](),this['_readViewExpired']=!![]);});}[_0x92f5fa(0x1a2)](_0x2b054c){const _0x370f46=_0x92f5fa;this['_doHooks'][_0x370f46(0x2be)](_0x2b054c);}[_0x92f5fa(0x29b)](_0x4a3921){const _0x3ce4e8=_0x92f5fa;this[_0x3ce4e8(0x2ba)]['push'](_0x4a3921);}[_0x92f5fa(0x192)](){const _0x12af27=_0x92f5fa;if(!this['readTransaction'])return;try{this[_0x12af27(0x246)][_0x12af27(0x22f)]();}catch(_0x45f6fe){}this[_0x12af27(0x246)]=null;}[_0x92f5fa(0x1f1)](){const _0x22b8cb=_0x92f5fa;if(this[_0x22b8cb(0x2a0)])throw new _0x19bd66(_0x22b8cb(0x16c),_0x22b8cb(0x204));if(this[_0x22b8cb(0x183)]){let _0x11b5b0=![];if(this[_0x22b8cb(0x202)]['useReadTransaction']===_0x22b8cb(0x23a)&&this[_0x22b8cb(0x1c9)]!==undefined)try{_0x11b5b0=this[_0x22b8cb(0x195)]['db'][_0x22b8cb(0x2b1)]()['lastTxnId']===this[_0x22b8cb(0x1c9)];}catch{}if(!_0x11b5b0){_0x31e8b0((this[_0x22b8cb(0x195)]?.['name']??'?')+':useReadTransaction');throw new _0x19bd66('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+_0x22b8cb(0x278)+_0x22b8cb(0x1b8)+_0x22b8cb(0x1bf),_0x22b8cb(0x184));}}}[_0x92f5fa(0x1fd)](_0x2a11e7,_0x3322c0){const _0x1b450e=_0x92f5fa;return this[_0x1b450e(0x1f1)](),this[_0x1b450e(0x195)][_0x1b450e(0x1fd)](_0x2a11e7,_0x3322c0,{'transaction':this['readTransaction']});}[_0x92f5fa(0x232)](_0x1944b1,_0xe082a7){const _0x1e5b64=_0x92f5fa;return this[_0x1e5b64(0x1f1)](),this[_0x1e5b64(0x195)][_0x1e5b64(0x232)](_0x1944b1,_0xe082a7,{'transaction':this[_0x1e5b64(0x246)]});}[_0x92f5fa(0x25b)](_0x33732b,_0x97e956){const _0x4fa9e9=_0x92f5fa;return this[_0x4fa9e9(0x1f1)](),this[_0x4fa9e9(0x195)][_0x4fa9e9(0x25b)](_0x33732b,_0x97e956,{'transaction':this[_0x4fa9e9(0x246)]});}['_range'](_0x401b9c){const _0x45e51c=_0x92f5fa;if(!this[_0x45e51c(0x202)][_0x45e51c(0x299)])return _0x401b9c;if(_0x401b9c&&typeof _0x401b9c[_0x45e51c(0x2b3)]==='function')return _0x401b9c;if(Array[_0x45e51c(0x2eb)](_0x401b9c))return _0x401b9c;const _0x277ee9=this,_0x29a8b0=_0x277ee9[_0x45e51c(0x202)][_0x45e51c(0x299)]===_0x45e51c(0x23a),_0x4c749a=()=>{const _0x49b0c2=_0x45e51c;if(!_0x277ee9['_readViewExpired'])return![];if(!_0x29a8b0)return!![];if(_0x277ee9[_0x49b0c2(0x1c9)]===undefined)return!![];try{return _0x277ee9[_0x49b0c2(0x195)]['db'][_0x49b0c2(0x2b1)]()[_0x49b0c2(0x1c7)]!==_0x277ee9[_0x49b0c2(0x1c9)];}catch{return!![];}};return _0x1fbfea(()=>{const _0x421e61=_0x45e51c;if(_0x277ee9[_0x421e61(0x2a0)])throw new _0x19bd66('Transaction\x20already\x20closed',_0x421e61(0x204));if(_0x4c749a()){_0x31e8b0((_0x277ee9['okdb']?.[_0x421e61(0x2f5)]??'?')+_0x421e61(0x1a9));throw new _0x19bd66(_0x421e61(0x2d2)+_0x421e61(0x1ae)+_0x421e61(0x25e),_0x421e61(0x184));}return _0x401b9c;},{'label':(_0x277ee9[_0x45e51c(0x195)]?.['name']??'?')+_0x45e51c(0x1a9),..._0x29a8b0?{'baseline':_0x277ee9['_txnIdAtSnapshot'],'getTxnId':()=>_0x277ee9[_0x45e51c(0x195)]['db'][_0x45e51c(0x2b1)]()[_0x45e51c(0x1c7)],'resume':(_0x170fce,_0x51708c)=>_0x401b9c[_0x45e51c(0x188)](_0x51708c)}:{}});}[_0x92f5fa(0x16e)](_0x2df9ca,_0x1a7bfb={}){const _0x2b6776=_0x92f5fa;return this[_0x2b6776(0x1f1)](),this[_0x2b6776(0x2e1)](this[_0x2b6776(0x195)][_0x2b6776(0x16e)](_0x2df9ca,{'transaction':this[_0x2b6776(0x246)],..._0x1a7bfb}));}[_0x92f5fa(0x18c)](_0x3d394b,_0x16ce26={}){const _0x2aee5e=_0x92f5fa;return this['_assertOpen'](),this[_0x2aee5e(0x2e1)](this[_0x2aee5e(0x195)]['getValues'](_0x3d394b,{'transaction':this[_0x2aee5e(0x246)],..._0x16ce26}));}[_0x92f5fa(0x296)](_0xc58146,_0x381d59={}){const _0x4825b0=_0x92f5fa;return this[_0x4825b0(0x1f1)](),this[_0x4825b0(0x2e1)](this[_0x4825b0(0x195)]['getKeys'](_0xc58146,{'transaction':this[_0x4825b0(0x246)],..._0x381d59}));}[_0x92f5fa(0x1e9)](_0x4108e6,_0x261a05,_0x294613={}){const _0x2de6f5=_0x92f5fa;return this['_assertOpen'](),this[_0x2de6f5(0x2e1)](this[_0x2de6f5(0x195)][_0x2de6f5(0x1e9)](_0x4108e6,_0x261a05,{'transaction':this[_0x2de6f5(0x246)],..._0x294613}));}[_0x92f5fa(0x1ad)](_0x6ef36b,_0x201ffc,_0x2a8ca0={}){const _0x55f894=_0x92f5fa;return this[_0x55f894(0x1f1)](),this['_range'](this[_0x55f894(0x195)][_0x55f894(0x1ad)](_0x6ef36b,_0x201ffc,{'transaction':this['readTransaction'],..._0x2a8ca0}));}[_0x92f5fa(0x1a6)](_0x4e715f=null){const _0x213d2d=_0x92f5fa;return this[_0x213d2d(0x1f1)](),this[_0x213d2d(0x195)][_0x213d2d(0x1a6)](_0x4e715f,{'transaction':this[_0x213d2d(0x246)]});}[_0x92f5fa(0x2dc)](_0x1d5e2d){const _0x48af8c=_0x92f5fa;return this['_assertOpen'](),this[_0x48af8c(0x195)]['getCount'](_0x1d5e2d,{'transaction':this['readTransaction']});}['put'](_0x1d5ca6,_0x33eafe,_0x543f21,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x92f5fa(0x18a)](),origin:origin=null,ttl:ttl=null}={}){const _0x3c968e=_0x92f5fa;this[_0x3c968e(0x17d)][_0x3c968e(0x2be)]({'action':_0x3c968e(0x238),'args':[_0x1d5ca6,_0x33eafe,_0x543f21,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['update'](_0x3e6bad,_0x3a6481,_0x12236a,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x92f5fa(0x18a)](),origin:origin=null,ttl:ttl=null}={}){const _0x431550=_0x92f5fa;this[_0x431550(0x17d)]['push']({'action':_0x431550(0x248),'args':[_0x3e6bad,_0x3a6481,_0x12236a,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x92f5fa(0x2a5)](_0x18db13,_0x3aa479,_0x3adede,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x3cd5bf=_0x92f5fa;this[_0x3cd5bf(0x17d)][_0x3cd5bf(0x2be)]({'action':_0x3cd5bf(0x2a5),'args':[_0x18db13,_0x3aa479,_0x3adede,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x92f5fa(0x27f)](_0x4274ae,_0x77d5e9,_0x54bbe5,{version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x3e7f8f=_0x92f5fa;this[_0x3e7f8f(0x17d)][_0x3e7f8f(0x2be)]({'action':_0x3e7f8f(0x27f),'args':[_0x4274ae,_0x77d5e9,_0x54bbe5,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['remove'](_0x5a817d,_0x33f3b9,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x92f5fa(0x18a)](),origin:origin=null}={}){const _0xeebeb2=_0x92f5fa;this[_0xeebeb2(0x17d)][_0xeebeb2(0x2be)]({'action':_0xeebeb2(0x19d),'args':[_0x5a817d,_0x33f3b9,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x92f5fa(0x16b)](_0x3dfa32,_0x4d77ae,_0x2ec75d){const _0x299a21=_0x92f5fa;this[_0x299a21(0x17d)][_0x299a21(0x2be)]({'action':_0x299a21(0x16b),'args':[_0x3dfa32,_0x4d77ae,_0x2ec75d]});}['clearTTL'](_0xbe0ee9,_0x38a662){const _0x10cd73=_0x92f5fa;this['actions'][_0x10cd73(0x2be)]({'action':_0x10cd73(0x1f2),'args':[_0xbe0ee9,_0x38a662]});}[_0x92f5fa(0x2ee)](){const _0x561299=_0x92f5fa;if(this[_0x561299(0x2a0)])return;for(const _0x325c4c of this[_0x561299(0x2ba)]){try{_0x325c4c();}catch{}}this[_0x561299(0x195)][_0x561299(0x23e)][_0x561299(0x286)](_0x41afe4[_0x561299(0x1a1)],{'id':this['id']}),this[_0x561299(0x17d)]=[],this[_0x561299(0x192)](),this[_0x561299(0x2a0)]=!![];}async[_0x92f5fa(0x2e0)](){const _0x41147e=_0x92f5fa;if(this[_0x41147e(0x2a0)])throw new Error('Transaction\x20already\x20closed');const _0x4d1e6f={'id':this['id'],'timestamp':Date[_0x41147e(0x18a)](),'actions':this[_0x41147e(0x17d)]};this['okdb'][_0x41147e(0x23e)][_0x41147e(0x286)](_0x41afe4[_0x41147e(0x2c2)],_0x4d1e6f);try{const _0x1f7038=_0x4e0e25[_0x41147e(0x2a2)]?_0x4e0e25[_0x41147e(0x18a)]():0x0;await this['okdb'][_0x41147e(0x2d3)]['transaction'](()=>{const _0x44bc3e=_0x41147e;for(const _0x4c1c42 of this['actions']){const _0x105746=this[_0x44bc3e(0x195)]['_'+_0x4c1c42[_0x44bc3e(0x245)]];if(typeof _0x105746!=='function')throw new Error(_0x44bc3e(0x2a7)+_0x4c1c42['action']);_0x105746[_0x44bc3e(0x270)](this[_0x44bc3e(0x195)],this,..._0x4c1c42[_0x44bc3e(0x2a1)]);}}),_0x4e0e25[_0x41147e(0x2a2)]&&_0x4e0e25['note'](_0x41147e(0x2c5),_0x4e0e25['now']()-_0x1f7038,(this[_0x41147e(0x195)][_0x41147e(0x2f5)]??'?')+_0x41147e(0x1d7)+this[_0x41147e(0x17d)][_0x41147e(0x2f8)]);}catch(_0x3729aa){for(const _0x52665f of this[_0x41147e(0x2ba)]){try{_0x52665f();}catch{}}this[_0x41147e(0x192)](),this[_0x41147e(0x2a0)]=!![];if(_0x3729aa instanceof _0x19bd66)throw _0x3729aa;const _0x36e4bd={'cause':_0x3729aa,'env':this[_0x41147e(0x195)]?.['name'],'envPath':this[_0x41147e(0x195)]?.[_0x41147e(0x266)],'pid':process[_0x41147e(0x1de)],'txnId':this['id'],'actionCount':this[_0x41147e(0x17d)][_0x41147e(0x2f8)],'actions':_0x527a84(this[_0x41147e(0x17d)]),'nativeCode':_0x3729aa?.[_0x41147e(0x1e6)],'nativeName':_0x3729aa?.['name']};try{this[_0x41147e(0x195)]?.[_0x41147e(0x1d6)]?.[_0x41147e(0x206)]?.('transaction\x20commit\x20failed',{'env':_0x36e4bd[_0x41147e(0x1e2)],'envPath':_0x36e4bd[_0x41147e(0x1bc)],'pid':_0x36e4bd[_0x41147e(0x1de)],'txnId':_0x36e4bd[_0x41147e(0x16d)],'actionCount':_0x36e4bd['actionCount'],'actions':_0x36e4bd[_0x41147e(0x17d)],'nativeCode':_0x36e4bd['nativeCode'],'error':_0x3729aa?.[_0x41147e(0x17a)],'stack':_0x3729aa?.[_0x41147e(0x2aa)]});}catch{}throw new _0x19bd66(_0x3729aa?.['message']||_0x41147e(0x180),'TXN_ERROR',_0x36e4bd);}this['okdb'][_0x41147e(0x23e)][_0x41147e(0x286)](_0x41afe4[_0x41147e(0x2a4)],_0x4d1e6f);for(const _0x317a49 of this[_0x41147e(0x285)]){try{await _0x317a49();}catch{}}this['actions']=[],this[_0x41147e(0x192)](),this[_0x41147e(0x2a0)]=!![];}static[_0x92f5fa(0x267)](_0x1fdc4d){const _0x344cc9=_0x92f5fa;return Object[_0x344cc9(0x2e6)]({'id':_0x1fdc4d['id'],'put':_0x1fdc4d[_0x344cc9(0x238)][_0x344cc9(0x171)](_0x1fdc4d),'update':_0x1fdc4d[_0x344cc9(0x248)][_0x344cc9(0x171)](_0x1fdc4d),'patch':_0x1fdc4d['patch'][_0x344cc9(0x171)](_0x1fdc4d),'create':_0x1fdc4d['create'][_0x344cc9(0x171)](_0x1fdc4d),'remove':_0x1fdc4d[_0x344cc9(0x19d)]['bind'](_0x1fdc4d),'setTTL':_0x1fdc4d[_0x344cc9(0x16b)]['bind'](_0x1fdc4d),'clearTTL':_0x1fdc4d[_0x344cc9(0x1f2)][_0x344cc9(0x171)](_0x1fdc4d),'commit':_0x1fdc4d['commit']['bind'](_0x1fdc4d),'rollback':_0x1fdc4d['rollback'][_0x344cc9(0x171)](_0x1fdc4d),'get':_0x1fdc4d['get']['bind'](_0x1fdc4d),'getEntry':_0x1fdc4d[_0x344cc9(0x232)][_0x344cc9(0x171)](_0x1fdc4d),'getMany':_0x1fdc4d[_0x344cc9(0x25b)][_0x344cc9(0x171)](_0x1fdc4d),'getRange':_0x1fdc4d[_0x344cc9(0x16e)]['bind'](_0x1fdc4d),'getValues':_0x1fdc4d[_0x344cc9(0x18c)][_0x344cc9(0x171)](_0x1fdc4d),'getKeys':_0x1fdc4d['getKeys'][_0x344cc9(0x171)](_0x1fdc4d),'byIndex':_0x1fdc4d[_0x344cc9(0x1e9)][_0x344cc9(0x171)](_0x1fdc4d),'query':_0x1fdc4d['query'][_0x344cc9(0x171)](_0x1fdc4d),'getClock':_0x1fdc4d[_0x344cc9(0x1a6)][_0x344cc9(0x171)](_0x1fdc4d),'getCount':_0x1fdc4d[_0x344cc9(0x2dc)][_0x344cc9(0x171)](_0x1fdc4d),'read':_0x1fdc4d,'raw':_0x1fdc4d});}static['applyOps'](_0x6f446a,_0x267af1=[]){const _0x3754ba=_0x92f5fa;if(!Array['isArray'](_0x267af1))throw new _0x19bd66(_0x3754ba(0x225),_0x3754ba(0x2da));for(const _0x5343ce of _0x267af1){if(Array['isArray'](_0x5343ce)){const [_0xf1307b,..._0x497f15]=_0x5343ce;if(typeof _0x6f446a[_0xf1307b]!==_0x3754ba(0x25f))throw new _0x19bd66(_0x3754ba(0x2a7)+_0xf1307b,_0x3754ba(0x25a),{'action':_0xf1307b});_0x6f446a[_0xf1307b](..._0x497f15);continue;}if(!_0x5343ce||typeof _0x5343ce!==_0x3754ba(0x262))throw new _0x19bd66(_0x3754ba(0x1f3),_0x3754ba(0x19f));const {action:_0x12a18b}=_0x5343ce;if(typeof _0x12a18b!==_0x3754ba(0x243)||typeof _0x6f446a[_0x12a18b]!=='function')throw new _0x19bd66(_0x3754ba(0x2a7)+_0x12a18b,'TXN_INVALID_ACTION',{'action':_0x12a18b});switch(_0x12a18b){case'put':case _0x3754ba(0x248):case _0x3754ba(0x27f):_0x6f446a[_0x12a18b](_0x5343ce[_0x3754ba(0x20c)],_0x5343ce[_0x3754ba(0x263)],_0x5343ce[_0x3754ba(0x251)],{..._0x5343ce[_0x3754ba(0x202)],'ttl':_0x5343ce[_0x3754ba(0x177)]??_0x5343ce['options']?.[_0x3754ba(0x177)]??null});break;case _0x3754ba(0x2a5):_0x6f446a['patch'](_0x5343ce[_0x3754ba(0x20c)],_0x5343ce['key'],_0x5343ce[_0x3754ba(0x2a5)],{..._0x5343ce['options'],'ttl':_0x5343ce[_0x3754ba(0x177)]??_0x5343ce[_0x3754ba(0x202)]?.['ttl']??null});break;case'remove':_0x6f446a['remove'](_0x5343ce[_0x3754ba(0x20c)],_0x5343ce['key'],_0x5343ce[_0x3754ba(0x202)]||{});break;case _0x3754ba(0x16b):_0x6f446a[_0x3754ba(0x16b)](_0x5343ce[_0x3754ba(0x20c)],_0x5343ce[_0x3754ba(0x263)],_0x5343ce[_0x3754ba(0x177)]);break;case _0x3754ba(0x1f2):_0x6f446a[_0x3754ba(0x1f2)](_0x5343ce['type'],_0x5343ce[_0x3754ba(0x263)]);break;default:throw new _0x19bd66(_0x3754ba(0x223)+_0x12a18b,_0x3754ba(0x25a),{'action':_0x12a18b});}}}static async[_0x92f5fa(0x2cc)](_0x20bc66,_0x4b3d96,_0x5e4847={}){const _0x59ef11=_0x92f5fa,_0x1cc26e=new _0x124744(_0x20bc66,_0x5e4847),_0x168d7c=_0x124744[_0x59ef11(0x267)](_0x1cc26e);try{typeof _0x4b3d96===_0x59ef11(0x25f)?await _0x4b3d96(_0x168d7c):_0x124744[_0x59ef11(0x182)](_0x1cc26e,_0x4b3d96||[]);const _0x4a0fed=_0x1cc26e['actions']['length'];return await _0x1cc26e['commit'](),{'id':_0x1cc26e['id'],'actions':_0x4a0fed};}catch(_0x2425b0){try{_0x1cc26e[_0x59ef11(0x2ee)]();}catch(_0x2edc04){}throw _0x2425b0;}}}return okdbTransaction=_0x124744,okdbTransaction;}var okdbFunctionsFacades,hasRequiredOkdbFunctionsFacades;function _0x33fa(_0x1053b6,_0x1c5b00){_0x1053b6=_0x1053b6-0x163;const _0x4479fb=_0x4479();let _0x33fa06=_0x4479fb[_0x1053b6];return _0x33fa06;}function requireOkdbFunctionsFacades(){if(hasRequiredOkdbFunctionsFacades)return okdbFunctionsFacades;hasRequiredOkdbFunctionsFacades=0x1;const _0x1c114a=requireOkdbTransaction();function _0x1e282f(_0x430155){const _0x207ee7=_0x33fa;return{'transaction':typeof _0x430155['transaction']==='function'?_0x430155[_0x207ee7(0x22b)][_0x207ee7(0x171)](_0x430155):_0x570f23=>new _0x1c114a(_0x430155,_0x570f23),'txn':typeof _0x430155['txn']===_0x207ee7(0x25f)?_0x430155['txn'][_0x207ee7(0x171)](_0x430155):(_0x5dc108,_0x10ebc3)=>_0x1c114a[_0x207ee7(0x2cc)](_0x430155,_0x5dc108,_0x10ebc3)};}function _0x407006(_0x35fe32){const _0x1214a9=_0x33fa;return{'name':_0x35fe32['name'],..._0x1e282f(_0x35fe32),'put':_0x35fe32['put'][_0x1214a9(0x171)](_0x35fe32),'update':_0x35fe32['update'][_0x1214a9(0x171)](_0x35fe32),'patch':_0x35fe32[_0x1214a9(0x2a5)][_0x1214a9(0x171)](_0x35fe32),'create':_0x35fe32[_0x1214a9(0x27f)][_0x1214a9(0x171)](_0x35fe32),'remove':_0x35fe32['remove'][_0x1214a9(0x171)](_0x35fe32),'get':_0x35fe32[_0x1214a9(0x1fd)][_0x1214a9(0x171)](_0x35fe32),'getMany':_0x35fe32[_0x1214a9(0x25b)][_0x1214a9(0x171)](_0x35fe32),'getEntry':_0x35fe32[_0x1214a9(0x232)][_0x1214a9(0x171)](_0x35fe32),'getRange':_0x35fe32[_0x1214a9(0x16e)]['bind'](_0x35fe32),'getValues':_0x35fe32[_0x1214a9(0x18c)][_0x1214a9(0x171)](_0x35fe32),'getKeys':_0x35fe32[_0x1214a9(0x296)][_0x1214a9(0x171)](_0x35fe32),'getCount':_0x35fe32['getCount'][_0x1214a9(0x171)](_0x35fe32),'getByPrefix':_0x35fe32[_0x1214a9(0x2f6)][_0x1214a9(0x171)](_0x35fe32),'getIndex':_0x35fe32[_0x1214a9(0x1ee)]['bind'](_0x35fe32),'byIndex':_0x35fe32[_0x1214a9(0x1e9)][_0x1214a9(0x171)](_0x35fe32),'query':_0x35fe32['query'][_0x1214a9(0x171)](_0x35fe32),'geoQuery':_0x35fe32[_0x1214a9(0x2ec)][_0x1214a9(0x171)](_0x35fe32),'ftsQuery':_0x35fe32[_0x1214a9(0x1c0)][_0x1214a9(0x171)](_0x35fe32),'setTTL':_0x35fe32[_0x1214a9(0x16b)][_0x1214a9(0x171)](_0x35fe32),'getTTL':_0x35fe32[_0x1214a9(0x170)][_0x1214a9(0x171)](_0x35fe32),'clearTTL':_0x35fe32[_0x1214a9(0x1f2)][_0x1214a9(0x171)](_0x35fe32),'sweepExpiredTTL':_0x35fe32[_0x1214a9(0x1b0)][_0x1214a9(0x171)](_0x35fe32),'listTTL':_0x35fe32[_0x1214a9(0x1bb)][_0x1214a9(0x171)](_0x35fe32),'ttlStats':_0x35fe32[_0x1214a9(0x205)][_0x1214a9(0x171)](_0x35fe32),'setDefaultTTL':_0x35fe32[_0x1214a9(0x219)][_0x1214a9(0x171)](_0x35fe32),'getDefaultTTL':_0x35fe32['getDefaultTTL']['bind'](_0x35fe32),'clearDefaultTTL':_0x35fe32[_0x1214a9(0x17b)][_0x1214a9(0x171)](_0x35fe32),'registerType':_0x35fe32[_0x1214a9(0x166)]['bind'](_0x35fe32),'ensureType':_0x35fe32[_0x1214a9(0x186)][_0x1214a9(0x171)](_0x35fe32),'hasType':_0x35fe32[_0x1214a9(0x294)]['bind'](_0x35fe32),'dropType':_0x35fe32[_0x1214a9(0x1d5)]['bind'](_0x35fe32),'registerIndex':_0x35fe32['registerIndex'][_0x1214a9(0x171)](_0x35fe32),'hasIndex':_0x35fe32[_0x1214a9(0x258)][_0x1214a9(0x171)](_0x35fe32),'dropIndex':_0x35fe32[_0x1214a9(0x200)][_0x1214a9(0x171)](_0x35fe32),'resetIndex':_0x35fe32[_0x1214a9(0x2d4)][_0x1214a9(0x171)](_0x35fe32),'indexReady':_0x35fe32['indexReady'][_0x1214a9(0x171)](_0x35fe32),'getIndexStatus':_0x35fe32[_0x1214a9(0x297)][_0x1214a9(0x171)](_0x35fe32),'getClock':_0x35fe32[_0x1214a9(0x1a6)][_0x1214a9(0x171)](_0x35fe32),'getChanges':_0x35fe32[_0x1214a9(0x2bc)][_0x1214a9(0x171)](_0x35fe32),'count':_0x35fe32['count'][_0x1214a9(0x171)](_0x35fe32),'range':_0x35fe32[_0x1214a9(0x201)][_0x1214a9(0x171)](_0x35fe32),'now':_0x35fe32[_0x1214a9(0x18a)][_0x1214a9(0x171)](_0x35fe32)};}function _0x3a0ff0(_0x569455){const _0x19fe74=_0x33fa;if(!_0x569455)return null;const _0x57c482={};for(const _0x5e5a99 of[_0x19fe74(0x212),_0x19fe74(0x20f),_0x19fe74(0x178),_0x19fe74(0x2ae),_0x19fe74(0x273),_0x19fe74(0x293),'getBucket',_0x19fe74(0x26a)]){if(typeof _0x569455[_0x5e5a99]===_0x19fe74(0x25f))_0x57c482[_0x5e5a99]=_0x569455[_0x5e5a99][_0x19fe74(0x171)](_0x569455);}return Object['keys'](_0x57c482)[_0x19fe74(0x2f8)]?_0x57c482:null;}function _0x4f7ed5(_0x19aa3f){const _0x3781d2=_0x33fa;if(!_0x19aa3f)return null;const _0x457730={};for(const _0xfb37d4 of[_0x3781d2(0x26d),'stream','remove',_0x3781d2(0x1fd),'list',_0x3781d2(0x21d)]){if(typeof _0x19aa3f[_0xfb37d4]===_0x3781d2(0x25f))_0x457730[_0xfb37d4]=_0x19aa3f[_0xfb37d4][_0x3781d2(0x171)](_0x19aa3f);}return Object[_0x3781d2(0x175)](_0x457730)[_0x3781d2(0x2f8)]?_0x457730:null;}function _0x16178a(_0x17f593){const _0x1eb060=_0x33fa;return{'env':_0x17f593[_0x1eb060(0x1e2)][_0x1eb060(0x171)](_0x17f593),'createEnvironment':_0x17f593[_0x1eb060(0x17c)]['bind'](_0x17f593),'removeEnvironment':_0x17f593[_0x1eb060(0x2e2)][_0x1eb060(0x171)](_0x17f593),'info':_0x17f593[_0x1eb060(0x28e)],..._0x1e282f(_0x17f593),'put':_0x17f593[_0x1eb060(0x238)][_0x1eb060(0x171)](_0x17f593),'update':_0x17f593['update'][_0x1eb060(0x171)](_0x17f593),'patch':_0x17f593['patch']['bind'](_0x17f593),'create':_0x17f593['create']['bind'](_0x17f593),'remove':_0x17f593[_0x1eb060(0x19d)][_0x1eb060(0x171)](_0x17f593),'get':_0x17f593[_0x1eb060(0x1fd)]['bind'](_0x17f593),'getMany':_0x17f593[_0x1eb060(0x25b)][_0x1eb060(0x171)](_0x17f593),'getEntry':_0x17f593[_0x1eb060(0x232)]['bind'](_0x17f593),'getRange':_0x17f593['getRange'][_0x1eb060(0x171)](_0x17f593),'getValues':_0x17f593['getValues'][_0x1eb060(0x171)](_0x17f593),'getKeys':_0x17f593['getKeys'][_0x1eb060(0x171)](_0x17f593),'getCount':_0x17f593[_0x1eb060(0x2dc)][_0x1eb060(0x171)](_0x17f593),'getByPrefix':_0x17f593['getByPrefix'][_0x1eb060(0x171)](_0x17f593),'getIndex':_0x17f593[_0x1eb060(0x1ee)]['bind'](_0x17f593),'byIndex':_0x17f593[_0x1eb060(0x1e9)][_0x1eb060(0x171)](_0x17f593),'query':_0x17f593[_0x1eb060(0x1ad)][_0x1eb060(0x171)](_0x17f593),'setTTL':_0x17f593[_0x1eb060(0x16b)]['bind'](_0x17f593),'getTTL':_0x17f593[_0x1eb060(0x170)][_0x1eb060(0x171)](_0x17f593),'clearTTL':_0x17f593[_0x1eb060(0x1f2)][_0x1eb060(0x171)](_0x17f593),'sweepExpiredTTL':_0x17f593['sweepExpiredTTL'][_0x1eb060(0x171)](_0x17f593),'listTTL':_0x17f593[_0x1eb060(0x1bb)]['bind'](_0x17f593),'ttlStats':_0x17f593[_0x1eb060(0x205)][_0x1eb060(0x171)](_0x17f593),'setDefaultTTL':_0x17f593[_0x1eb060(0x219)][_0x1eb060(0x171)](_0x17f593),'getDefaultTTL':_0x17f593['getDefaultTTL'][_0x1eb060(0x171)](_0x17f593),'clearDefaultTTL':_0x17f593[_0x1eb060(0x17b)]['bind'](_0x17f593),'ensureType':_0x17f593[_0x1eb060(0x186)][_0x1eb060(0x171)](_0x17f593),'registerType':_0x17f593[_0x1eb060(0x166)]['bind'](_0x17f593),'hasType':_0x17f593['hasType']['bind'](_0x17f593),'dropType':_0x17f593[_0x1eb060(0x1d5)][_0x1eb060(0x171)](_0x17f593),'registerIndex':_0x17f593[_0x1eb060(0x260)][_0x1eb060(0x171)](_0x17f593),'hasIndex':_0x17f593[_0x1eb060(0x258)]['bind'](_0x17f593),'dropIndex':_0x17f593[_0x1eb060(0x200)]['bind'](_0x17f593),'resetIndex':_0x17f593[_0x1eb060(0x2d4)][_0x1eb060(0x171)](_0x17f593),'indexReady':_0x17f593['indexReady'][_0x1eb060(0x171)](_0x17f593),'getIndexStatus':_0x17f593[_0x1eb060(0x297)][_0x1eb060(0x171)](_0x17f593),'getClock':_0x17f593[_0x1eb060(0x1a6)][_0x1eb060(0x171)](_0x17f593),'getChanges':_0x17f593[_0x1eb060(0x2bc)]['bind'](_0x17f593),'queue':_0x17f593[_0x1eb060(0x1f6)],'files':_0x17f593[_0x1eb060(0x268)]};}return okdbFunctionsFacades={'createEnvFacade':_0x407006,'createQueueFacade':_0x3a0ff0,'createFilesFacade':_0x4f7ed5,'createGlobalFacade':_0x16178a},okdbFunctionsFacades;}var okdbFunctionsDryrun,hasRequiredOkdbFunctionsDryrun;function requireOkdbFunctionsDryrun(){const _0x5af79c=_0x1e36df;if(hasRequiredOkdbFunctionsDryrun)return okdbFunctionsDryrun;hasRequiredOkdbFunctionsDryrun=0x1;const _0x1591ea=new Set([_0x5af79c(0x238),_0x5af79c(0x2a5),_0x5af79c(0x27f),_0x5af79c(0x19d),_0x5af79c(0x248),'setTTL',_0x5af79c(0x1f2),'sweepExpiredTTL',_0x5af79c(0x219),_0x5af79c(0x17b),_0x5af79c(0x1d5),'dropIndex','resetIndex']),_0x1b1aff=new Set([_0x5af79c(0x212),_0x5af79c(0x2ae),_0x5af79c(0x273),_0x5af79c(0x293)]),_0x2903d0=new Set(['upload','remove']);function _0x41b053(_0x55efb0,_0xd3652a){const _0x554d65=_0x5af79c;if(_0x55efb0===_0x554d65(0x1e2)||_0x55efb0==='global')return _0x1591ea[_0x554d65(0x1b5)](_0xd3652a);if(_0x55efb0===_0x554d65(0x1f6))return _0x1b1aff[_0x554d65(0x1b5)](_0xd3652a);if(_0x55efb0==='files')return _0x2903d0['has'](_0xd3652a);return![];}function _0x14a50e(_0x1c6ef2,_0x1d6c19,_0x448ab7,_0x4ae018){if(!_0x1c6ef2)return _0x1c6ef2;return new Proxy(_0x1c6ef2,{'get'(_0x556fdc,_0x432f46,_0x36b0fc){const _0x2b0c06=_0x33fa,_0x49d1dc=Reflect['get'](_0x556fdc,_0x432f46,_0x36b0fc);if(typeof _0x49d1dc!==_0x2b0c06(0x25f))return _0x49d1dc;if(!_0x41b053(_0x1d6c19,_0x432f46))return _0x49d1dc['bind'](_0x556fdc);return function(..._0x507a63){return _0x4ae018['push']({'scope':_0x1d6c19,'method':_0x432f46,'envName':_0x448ab7,'args':_0x507a63}),null;};}});}function _0x216b53(_0x2b0deb,_0x60630b,_0xf5ff6,_0x5b5f4f){const _0x1a1268={};for(const _0x2db340 of _0xf5ff6){_0x1a1268[_0x2db340]=(..._0x26dd0e)=>{const _0x3d5734=_0x33fa;return _0x41b053(_0x2b0deb,_0x2db340)&&_0x5b5f4f[_0x3d5734(0x2be)]({'scope':_0x2b0deb,'method':_0x2db340,'envName':_0x60630b,'args':_0x26dd0e}),null;};}return _0x1a1268;}return okdbFunctionsDryrun={'isWriteMethod':_0x41b053,'wrapForDryRun':_0x14a50e,'syntheticDryRunFacade':_0x216b53,'ENV_WRITE_METHODS':_0x1591ea,'QUEUE_WRITE_METHODS':_0x1b1aff,'FILES_WRITE_METHODS':_0x2903d0},okdbFunctionsDryrun;}var okdbFunctionsContext,hasRequiredOkdbFunctionsContext;function requireOkdbFunctionsContext(){const _0x433501=_0x1e36df;if(hasRequiredOkdbFunctionsContext)return okdbFunctionsContext;hasRequiredOkdbFunctionsContext=0x1;const {createEnvFacade:_0x2fe9d4,createQueueFacade:_0x12ca11,createFilesFacade:_0x6068c5,createGlobalFacade:_0x4fa5b5}=requireOkdbFunctionsFacades(),{wrapForDryRun:_0x45c594,syntheticDryRunFacade:_0x4720be}=requireOkdbFunctionsDryrun(),_0x36d034=[_0x433501(0x212),_0x433501(0x20f),_0x433501(0x178),'updateJob','removeJob',_0x433501(0x293),_0x433501(0x290),_0x433501(0x26a)],_0x36f36f=[_0x433501(0x26d),_0x433501(0x213),_0x433501(0x19d),_0x433501(0x1fd),_0x433501(0x178),_0x433501(0x21d)];function _0x275c22(_0x216a3f,_0x46bbf3){const _0x2a67a0=_0x433501,_0x103213=(_0x52407f,_0x3aa672,_0x238c6c)=>_0x46bbf3({'type':_0x2a67a0(0x1d6),'requestId':_0x216a3f[_0x2a67a0(0x1f9)],'runId':_0x216a3f[_0x2a67a0(0x20d)],'entry':{'level':_0x52407f,'msg':_0x3aa672,'context':_0x238c6c,'ts':Date[_0x2a67a0(0x18a)]()}}),_0x5d5b08=(_0x21e3ac,_0x4a3596)=>_0x103213(_0x2a67a0(0x28e),_0x21e3ac,_0x4a3596);return _0x5d5b08[_0x2a67a0(0x28e)]=(_0x24cde6,_0x1c6268)=>_0x103213('info',_0x24cde6,_0x1c6268),_0x5d5b08[_0x2a67a0(0x185)]=(_0x5b9240,_0x465245)=>_0x103213(_0x2a67a0(0x185),_0x5b9240,_0x465245),_0x5d5b08[_0x2a67a0(0x206)]=(_0x394120,_0x2799ec)=>_0x103213(_0x2a67a0(0x206),_0x394120,_0x2799ec),_0x5d5b08[_0x2a67a0(0x28b)]=(_0x51c018,_0x1a49d2)=>_0x103213(_0x2a67a0(0x28b),_0x51c018,_0x1a49d2),_0x5d5b08;}function _0xdf106f(_0x4c1584,_0x49bd09,_0x31e359){const _0x46ce98=_0x433501;if(!_0x4c1584)return null;return{'id':_0x4c1584['id']??null,'type':_0x4c1584[_0x46ce98(0x20c)]??null,'tries':_0x4c1584[_0x46ce98(0x280)]??null,'created':_0x4c1584[_0x46ce98(0x222)]??null,'tags':_0x4c1584['tags']??null,'priority':_0x4c1584[_0x46ce98(0x237)]??null,'bucket':_0x4c1584[_0x46ce98(0x2cd)]??null,'cron':_0x4c1584[_0x46ce98(0x207)]??null,'heartbeat'(){const _0x37f9df=_0x46ce98;_0x31e359({'type':_0x37f9df(0x24f),'requestId':_0x49bd09[_0x37f9df(0x1f9)],'runId':_0x49bd09['runId'],'jobId':_0x4c1584['id'],'claimId':_0x4c1584[_0x37f9df(0x174)]});},'markProgress'(_0x5914b6){const _0x52a073=_0x46ce98;_0x31e359({'type':_0x52a073(0x265),'requestId':_0x49bd09['requestId'],'runId':_0x49bd09[_0x52a073(0x20d)],'jobId':_0x4c1584['id'],'claimId':_0x4c1584[_0x52a073(0x174)],'message':_0x5914b6});}};}function _0x993013(_0x406104){const _0x538827=_0x433501;if(!_0x406104)return null;return{'mode':_0x406104[_0x538827(0x1fa)]??null,'sourceType':_0x406104['sourceType']??null,'sourceEnv':_0x406104['sourceEnv']??null,'processor':_0x406104[_0x538827(0x221)]??null,'engineKey':_0x406104[_0x538827(0x226)]??null,'cursorKey':_0x406104[_0x538827(0x1ab)]??null};}function _0x21e9e4(_0xbe8a12){const _0x2d55d5=_0x433501;if(!_0xbe8a12)return null;return{'mode':_0xbe8a12[_0x2d55d5(0x1fa)]??null,'sourceType':_0xbe8a12[_0x2d55d5(0x291)]??null,'targetType':_0xbe8a12['targetType']??null,'sourceEnv':_0xbe8a12[_0x2d55d5(0x2b2)]??null,'targetEnv':_0xbe8a12[_0x2d55d5(0x227)]??null,'engineKey':_0xbe8a12[_0x2d55d5(0x226)]??null,'cursorKey':_0xbe8a12[_0x2d55d5(0x1ab)]??null};}function _0x32a413(_0x56d016,_0x1d44a5,_0x92c76a,_0x50fc15=null,_0x3041c9=null){const _0x1aacaf=_0x433501,_0x5806d1={'runId':_0x1d44a5[_0x1aacaf(0x20d)],'scope':'env','env':_0x1d44a5[_0x1aacaf(0x1f0)]??null,'functionName':_0x1d44a5['functionName'],'trigger':_0x1d44a5[_0x1aacaf(0x28e)]?.[_0x1aacaf(0x27b)]??_0x1aacaf(0x179),'requestedAt':_0x1d44a5['info']?.[_0x1aacaf(0x2ef)]??Date[_0x1aacaf(0x18a)]()},_0x121499=_0x275c22(_0x1d44a5,_0x92c76a),_0x16169d=AbortSignal[_0x1aacaf(0x2e3)](Math['max'](0x1,_0x1d44a5[_0x1aacaf(0x21c)]?.['timeoutMs']??0x3e8)),_0x345325=_0x3041c9?AbortSignal['any']([_0x16169d,_0x3041c9]):_0x16169d,_0x5b7473=_0x56d016[_0x1aacaf(0x1e2)](_0x1d44a5[_0x1aacaf(0x1f0)]),_0x18760a=_0x50fc15?_0x45c594(_0x5b7473,'env',_0x1d44a5[_0x1aacaf(0x1f0)],_0x50fc15):_0x5b7473,_0x29d66f=_0x50fc15?_0x5b7473[_0x1aacaf(0x1f6)]?_0x45c594(_0x5b7473['queue'],_0x1aacaf(0x1f6),_0x1d44a5[_0x1aacaf(0x1f0)],_0x50fc15):_0x4720be(_0x1aacaf(0x1f6),_0x1d44a5[_0x1aacaf(0x1f0)],_0x36d034,_0x50fc15):_0x5b7473[_0x1aacaf(0x1f6)],_0x5f1b21=_0x50fc15?_0x5b7473['files']?_0x45c594(_0x5b7473[_0x1aacaf(0x268)],_0x1aacaf(0x268),_0x1d44a5[_0x1aacaf(0x1f0)],_0x50fc15):_0x4720be('files',_0x1d44a5[_0x1aacaf(0x1f0)],_0x36f36f,_0x50fc15):_0x5b7473['files'],_0x190c92=_0x2fe9d4(_0x18760a),_0x30f09f=_0x12ca11(_0x29d66f),_0x2779bc=_0x6068c5(_0x5f1b21);if(_0x30f09f)_0x190c92[_0x1aacaf(0x1f6)]=_0x30f09f;if(_0x2779bc)_0x190c92[_0x1aacaf(0x268)]=_0x2779bc;const _0x51c3f8={'payload':_0x1d44a5['payload']??null,'info':_0x5806d1,'signal':_0x345325,'log':_0x121499,'env':_0x190c92},_0x266f4d=_0xdf106f(_0x1d44a5['jobContext'],_0x1d44a5,_0x92c76a);if(_0x266f4d)_0x51c3f8[_0x1aacaf(0x190)]=_0x266f4d;const _0xf668db=_0x993013(_0x1d44a5[_0x1aacaf(0x21f)]);if(_0xf668db)_0x51c3f8[_0x1aacaf(0x221)]=_0xf668db;const _0x4771de=_0x21e9e4(_0x1d44a5[_0x1aacaf(0x25d)]);if(_0x4771de)_0x51c3f8[_0x1aacaf(0x1a8)]=_0x4771de;if(_0x1d44a5[_0x1aacaf(0x2b8)]){const _0x4aec35=_0x50fc15?_0x45c594(_0x56d016,_0x1aacaf(0x1ce),null,_0x50fc15):_0x56d016;_0x51c3f8[_0x1aacaf(0x195)]=_0x4fa5b5(_0x4aec35);}return _0x51c3f8;}return okdbFunctionsContext={'createExecutionContext':_0x32a413,'createScriptLogger':_0x275c22},okdbFunctionsContext;}var hasRequiredOkdbFunctionsSandboxWorker;function requireOkdbFunctionsSandboxWorker(){const _0x32094c=_0x1e36df;if(hasRequiredOkdbFunctionsSandboxWorker)return okdbFunctionsSandboxWorker$1;hasRequiredOkdbFunctionsSandboxWorker=0x1;const {parentPort:_0xa79edb,workerData:_0x1431c0}=require$$0$4;requireOkdbFatalReport()['enableFatalReport'](_0x32094c(0x2df));const _0x5cccbf=require$$2,{compileFunctionExpression:_0x59b8d4}=requireOkdbFunctionsSandbox(),{serializeError:_0x1e68d0}=requireOkdbFunctionsIpc(),{createExecutionContext:_0x5b77b2}=requireOkdbFunctionsContext(),_0x55b766=require$$6;let _0x10f38a=null,_0x982f45=![];const _0x5ede91=new Map(),_0x10f3d9=new Map();function _0x502502(_0x3c1095){const _0x58d163=_0x32094c;try{_0xa79edb[_0x58d163(0x1cb)](_0x3c1095);}catch{}}function _0x528a91(_0x3464d4){const _0x1a8950=_0x32094c,_0x1960dd=(_0x3464d4[_0x1a8950(0x1f0)]||_0x1a8950(0x2ce))+':'+_0x3464d4[_0x1a8950(0x2c4)]+':'+_0x3464d4[_0x1a8950(0x218)]+':'+_0x3464d4['hash'];let _0x1ea8d2=_0x5ede91[_0x1a8950(0x1fd)](_0x1960dd);return!_0x1ea8d2&&(_0x1ea8d2=_0x59b8d4(_0x3464d4[_0x1a8950(0x1d9)],{'allowFetch':_0x3464d4[_0x1a8950(0x21c)]?.[_0x1a8950(0x2de)]!==![],'allowedFetchDomains':_0x3464d4[_0x1a8950(0x21c)]?.[_0x1a8950(0x1cc)],'filename':_0x3464d4[_0x1a8950(0x2c4)]+_0x1a8950(0x208)}),_0x5ede91[_0x1a8950(0x255)](_0x1960dd,_0x1ea8d2)),_0x1ea8d2;}async function _0x4ce1dc(_0x22bebb){const _0x3e64e5=_0x32094c,_0x4abf1c=Date[_0x3e64e5(0x18a)](),_0x412511=new AbortController();_0x10f3d9[_0x3e64e5(0x255)](_0x22bebb[_0x3e64e5(0x1f9)],_0x412511);try{const _0xe25f1d=_0x528a91(_0x22bebb);if(_0x22bebb['envName'])await _0x10f38a[_0x3e64e5(0x1d4)](_0x22bebb['envName']);const _0x5854b0=_0x22bebb[_0x3e64e5(0x29d)]?[]:null,_0x6b8b25=_0x5b77b2(_0x10f38a,_0x22bebb,_0x502502,_0x5854b0,_0x412511[_0x3e64e5(0x1af)]),_0x569b1a=await _0xe25f1d(_0x6b8b25),_0x5df2c9={'type':'result','requestId':_0x22bebb[_0x3e64e5(0x1f9)],'runId':_0x22bebb[_0x3e64e5(0x20d)],'result':_0x569b1a,'meta':{'runnerId':_0x3e64e5(0x2d5)+process[_0x3e64e5(0x1de)],'startedAt':_0x4abf1c,'finishedAt':Date[_0x3e64e5(0x18a)](),'durationMs':Date['now']()-_0x4abf1c}};if(_0x5854b0)_0x5df2c9['dryRunActions']=_0x5854b0;_0x502502(_0x5df2c9);}catch(_0x350c24){_0x502502({'type':'error','requestId':_0x22bebb[_0x3e64e5(0x1f9)],'runId':_0x22bebb[_0x3e64e5(0x20d)],'error':_0x1e68d0(_0x350c24),'meta':{'runnerId':_0x3e64e5(0x2d5)+process[_0x3e64e5(0x1de)],'startedAt':_0x4abf1c,'finishedAt':Date['now'](),'durationMs':Date[_0x3e64e5(0x18a)]()-_0x4abf1c}});}finally{_0x10f3d9['delete'](_0x22bebb['requestId']);}}async function _0x4874f2(){const _0x47b300=_0x32094c;if(_0x982f45)return;_0x982f45=!![];try{await _0x10f38a?.['close']?.();}catch{}process[_0x47b300(0x1bd)](0x0);}async function _0x1499f7(){const _0x4994f5=_0x32094c,{rootPath:_0x27e335}=_0x1431c0??{};if(!_0x27e335)throw new Error(_0x4994f5(0x253));_0x10f38a=new _0x55b766(_0x27e335,{'engines':![],'processors':![],'compaction':![],'http':![],'auth':{'open':!![]},'processes':![]}),await _0x10f38a[_0x4994f5(0x197)]();const _0x43ffbb=setInterval(()=>{const _0x4f02d5=_0x4994f5;if(_0x982f45)return;for(const [,_0x5dc94a]of _0x10f38a['_envs']){try{_0x5dc94a[_0x4f02d5(0x21b)]?.();}catch{}}},0xc8);if(typeof _0x43ffbb[_0x4994f5(0x25c)]===_0x4994f5(0x25f))_0x43ffbb[_0x4994f5(0x25c)]();_0xa79edb['on'](_0x4994f5(0x17a),_0x59a55f=>{const _0x3f2cb3=_0x4994f5;if(!_0x59a55f||typeof _0x59a55f!==_0x3f2cb3(0x262))return;if(_0x59a55f[_0x3f2cb3(0x20c)]==='stop')return void _0x4874f2();if(_0x59a55f[_0x3f2cb3(0x20c)]==='cancel'){_0x10f3d9[_0x3f2cb3(0x1fd)](_0x59a55f['requestId'])?.[_0x3f2cb3(0x254)](new Error('cancelled\x20by\x20caller'));return;}_0x59a55f[_0x3f2cb3(0x20c)]===_0x3f2cb3(0x2cc)&&void _0x4ce1dc(_0x59a55f['job']);});const _0x5e6f19=Math[_0x4994f5(0x284)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0xc31433=setInterval(()=>{const _0x4dc428=_0x4994f5;try{_0x502502({'type':_0x4dc428(0x239),'heapUsed':_0x5cccbf[_0x4dc428(0x20e)]()[_0x4dc428(0x229)]});}catch{}},_0x5e6f19);if(typeof _0xc31433[_0x4994f5(0x25c)]==='function')_0xc31433['unref']();_0x502502({'type':_0x4994f5(0x2c0)});}return _0x1499f7()[_0x32094c(0x27e)](_0x4ccacb=>{const _0x4562f0=_0x32094c;_0x502502({'type':_0x4562f0(0x22c),'error':_0x1e68d0(_0x4ccacb)}),process[_0x4562f0(0x1bd)](0x1);}),okdbFunctionsSandboxWorker$1;}var okdbFunctionsSandboxWorkerExports=requireOkdbFunctionsSandboxWorker(),okdbFunctionsSandboxWorker=getDefaultExportFromCjs(okdbFunctionsSandboxWorkerExports);module[_0x1e36df(0x1ff)]=okdbFunctionsSandboxWorker;