@kedem/okdb 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/algorithm-worker-thread.js +1 -1
- package/bin/okdb.js +1 -1
- package/docs/embeddings.md +3 -3
- package/docs/querying.md +20 -0
- package/docs/views.md +32 -32
- package/okdb-functions-sandbox-worker.js +1 -1
- package/okdb-http-worker-child.js +1 -1
- package/okdb-views-bootstrap-worker.js +1 -1
- package/okdb.js +1 -1
- package/package.json +1 -1
- package/public/sections/engines/index.ok.html +1 -1
- package/types/environment.d.ts +4 -2
- package/types/features/views.d.ts +38 -4
- package/types/index.d.ts +4 -2
- package/types/options.d.ts +25 -3
package/docs/embeddings.md
CHANGED
|
@@ -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
|
-
// {
|
|
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 {
|
|
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: {
|
|
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
|
|
86
|
-
| ---------- | ----------------------- |
|
|
87
|
-
| `$count` | `{ $count: true }` | `{ value: N }`
|
|
88
|
-
| `$sum` | `{ $sum: 'field' }` | `{ value: N }`
|
|
89
|
-
| `$avg` | `{ $avg: 'field' }` | `{ value: N }`
|
|
90
|
-
| `$min` | `{ $min: 'field' }` | `{ value: X }`
|
|
91
|
-
| `$max` | `{ $max: 'field' }` | `{ value: X }`
|
|
92
|
-
| `$countBy` | `{ $countBy: 'field' }` | `{
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
count:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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.
|
|
179
|
-
|
|
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
|
|
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'
|
|
232
|
-
// 'p2'
|
|
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
|
|
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
|
|
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]: {
|
|
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 _0x5ad382=_0x500b;(function(_0xb97608,_0x561d40){const _0x3e3898=_0x500b,_0xc886d0=_0xb97608();while(!![]){try{const _0x2b90c9=parseInt(_0x3e3898(0x1b9))/0x1*(-parseInt(_0x3e3898(0x106))/0x2)+-parseInt(_0x3e3898(0x1bd))/0x3+-parseInt(_0x3e3898(0xe8))/0x4*(parseInt(_0x3e3898(0x122))/0x5)+-parseInt(_0x3e3898(0x1da))/0x6*(parseInt(_0x3e3898(0x183))/0x7)+parseInt(_0x3e3898(0x127))/0x8+-parseInt(_0x3e3898(0x1f9))/0x9*(-parseInt(_0x3e3898(0x152))/0xa)+parseInt(_0x3e3898(0x12e))/0xb*(parseInt(_0x3e3898(0x1ef))/0xc);if(_0x2b90c9===_0x561d40)break;else _0xc886d0['push'](_0xc886d0['shift']());}catch(_0x508512){_0xc886d0['push'](_0xc886d0['shift']());}}}(_0x7357,0x661b2));var require$$0$4=require(_0x5ad382(0x210)),require$$2=require('v8'),require$$0=require(_0x5ad382(0x110)),require$$0$3=require(_0x5ad382(0xf1)),require$$0$1=require('lmdb'),require$$0$2=require('node:perf_hooks'),require$$6=require(_0x5ad382(0x115));function getDefaultExportFromCjs(_0x552484){const _0x16019b=_0x5ad382;return _0x552484&&_0x552484['__esModule']&&Object[_0x16019b(0x165)][_0x16019b(0x1fc)][_0x16019b(0x108)](_0x552484,_0x16019b(0x17e))?_0x552484[_0x16019b(0x17e)]:_0x552484;}var okdbFunctionsSandboxWorker$1={},okdbFatalReport,hasRequiredOkdbFatalReport;function requireOkdbFatalReport(){if(hasRequiredOkdbFatalReport)return okdbFatalReport;hasRequiredOkdbFatalReport=0x1;function _0x4a7f2f(_0x1bccfa){const _0x1ab58f=_0x500b;if(process.env.OKDB_FATAL_REPORT!=='1')return;try{if(!process[_0x1ab58f(0x16f)])return;process[_0x1ab58f(0x16f)][_0x1ab58f(0x12f)]=!![];try{if(_0x1ab58f(0x104)in process[_0x1ab58f(0x16f)])process['report'][_0x1ab58f(0x104)]=process.env.OKDB_FATAL_REPORT_ENV!=='1';}catch{}if(process['platform']!==_0x1ab58f(0x22a))try{process[_0x1ab58f(0x16f)]['reportOnSignal']=!![];if(typeof process[_0x1ab58f(0x16f)][_0x1ab58f(0xf3)]===_0x1ab58f(0x250))process[_0x1ab58f(0x16f)]['signal']='SIGSEGV';}catch{}if(process.env.OKDB_REPORT_DIR)try{require('fs')[_0x1ab58f(0x160)](process.env.OKDB_REPORT_DIR,{'recursive':!![]}),process[_0x1ab58f(0x16f)]['directory']=process.env.OKDB_REPORT_DIR;}catch{}try{process[_0x1ab58f(0x16f)][_0x1ab58f(0x1d5)]='';}catch{}if(_0x1bccfa)process.env.OKDB_REPORT_TAG=String(_0x1bccfa);}catch{}}return okdbFatalReport={'enableFatalReport':_0x4a7f2f},okdbFatalReport;}var okdbFunctionsSandbox,hasRequiredOkdbFunctionsSandbox;function requireOkdbFunctionsSandbox(){if(hasRequiredOkdbFunctionsSandbox)return okdbFunctionsSandbox;hasRequiredOkdbFunctionsSandbox=0x1;const _0x258e08=require$$0;function _0x4c3e68(_0x1e762a){const _0x410a8c=_0x500b,_0x52f3d0=_0x1e762a==='*',_0x206f60=_0x52f3d0?null:new Set(Array[_0x410a8c(0x1b3)](_0x1e762a)?_0x1e762a:[]);return function _0x69afca(_0x21ad74,_0x4c7e8c){const _0x599967=_0x410a8c;if(!_0x52f3d0){let _0x9bfece;try{const _0x3c9290=new URL(typeof _0x21ad74===_0x599967(0x250)?_0x21ad74:_0x21ad74?.[_0x599967(0x1a6)]??String(_0x21ad74));_0x9bfece=_0x3c9290['hostname'];}catch{const _0x62841=new Error(_0x599967(0x217));return _0x62841[_0x599967(0xd4)]=_0x599967(0x17b),Promise[_0x599967(0x243)](_0x62841);}if(!_0x206f60[_0x599967(0xff)](_0x9bfece)){const _0x23d70e=new Error(_0x206f60[_0x599967(0x1a7)]===0x0?_0x599967(0x149):_0x599967(0x161)+_0x9bfece+_0x599967(0x204));return _0x23d70e[_0x599967(0xd4)]='FETCH_NOT_ALLOWED',Promise[_0x599967(0x243)](_0x23d70e);}}return fetch(_0x21ad74,_0x4c7e8c);};}function _0x38ba5b(_0x38a86a={}){const _0x317767=_0x500b,_0x5e9280=_0x38a86a[_0x317767(0x18e)]!==![],_0x4418bd=_0x38a86a['allowedFetchDomains']??[],_0x27145f={'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[_0x317767(0xc4)]};return _0x5e9280&&typeof fetch===_0x317767(0x1eb)&&(_0x27145f['fetch']=_0x4c3e68(_0x4418bd)),_0x27145f[_0x317767(0x222)]=_0x27145f,_0x27145f;}function _0x407a6f(_0x4eb97d,_0x4676b7={}){const _0x29199c=_0x500b,_0x3e4ba5=_0x38ba5b(_0x4676b7),_0x23ee80=_0x258e08[_0x29199c(0x155)](_0x3e4ba5,{'name':_0x29199c(0x112),'codeGeneration':{'strings':![],'wasm':![]}});let _0x5edac3;try{_0x5edac3=new _0x258e08[(_0x29199c(0x114))]('('+_0x4eb97d+')',{'filename':_0x4676b7[_0x29199c(0x1d5)]??_0x29199c(0x14f)});}catch(_0x5dbf90){const _0x19fd37=new Error(_0x5dbf90?.[_0x29199c(0x1c5)]||_0x29199c(0x1be));_0x19fd37['code']=_0x29199c(0x1e3),_0x19fd37[_0x29199c(0x1b7)]=_0x5dbf90;throw _0x19fd37;}let _0x9ae0bf;try{_0x9ae0bf=_0x5edac3[_0x29199c(0x1de)](_0x23ee80,{'timeout':_0x4676b7['compileTimeoutMs']??0x64});}catch(_0x3cc173){const _0x5e0d86=new Error(_0x3cc173?.[_0x29199c(0x1c5)]||_0x29199c(0x17c));_0x5e0d86[_0x29199c(0xd4)]='FUNCTION_SCRIPT_COMPILE_FAILED',_0x5e0d86[_0x29199c(0x1b7)]=_0x3cc173;throw _0x5e0d86;}if(typeof _0x9ae0bf!==_0x29199c(0x1eb)){const _0x2a245d=new Error(_0x29199c(0x119));_0x2a245d[_0x29199c(0xd4)]=_0x29199c(0x1b5);throw _0x2a245d;}return _0x9ae0bf;}return okdbFunctionsSandbox={'createSandboxGlobals':_0x38ba5b,'compileFunctionExpression':_0x407a6f,'_buildRestrictedFetch':_0x4c3e68},okdbFunctionsSandbox;}var okdbFunctionsIpc,hasRequiredOkdbFunctionsIpc;function _0x7357(){const _0x231921=['global','call','stringify','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','ALREADY_EXISTS','sweepExpiredTTL','Invalid\x20index\x20key\x20type\x20for\x20\x27','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','_windowCbs','node:vm','created','okdb-function-sandbox','hasType','Script','./okdb','DONE','getIndex','queue','Function\x20script\x20must\x20evaluate\x20to\x20a\x20callable\x20function','Index\x20\x27','Unknown\x20transaction\x20action:\x20','Unknown\x20OKDB\x20transaction\x20error','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','bus:poke','clear','done','byIndex','460WFidHQ','\x27\x20is\x20already\x20registered','job_heartbeat','schema:set','ms\x20max=','2535024ogQvFe','functionName','Unique\x20constraint\x20violated\x20on\x20','ttl:expired','getTTL','tags','listBuckets','259193nOlmIh','reportOnFatalError','OKDBInvalidPrimaryKeyError','return','trigger','OKDBSchemaCollectionError','dropFts','\x27\x20already\x20registered','mean','sourceType','getStats','TXN_END','applyOps','getIndexStatus','_doHooks','OKDBInvalidValueError','ftsQuery','SCHEMA_VALIDATION_FAILED','requestedAt','OKDBIndexAlreadyRegisteredError','processor','any','OKDBUniqueConstraintError','filter','warn','fts:reset','details','fetch\x20is\x20not\x20allowed\x20in\x20this\x20function\x20sandbox\x20(no\x20allowedFetchDomains\x20configured)','cron','dropType',',\x20got\x20','commit','\x20documents\x20fail\x20validation','okdb-function.js','_closeReadTransaction','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','5406970HpnkFY','engineKey','sourceEnv','createContext','unref','system:stopped','OKDBAlreadyExistsError','used_heap_size','add','percentile','Array.from)\x20before\x20any\x20await.','hasIndex','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','envName','mkdirSync','fetch\x20blocked:\x20hostname\x20\x22','ttl','TXN_CLOSED','iterator','prototype','txn-commit','Schema\x20validation\x20failed\x20for\x20','patch','stack','_started','index:drop','run','OKDBInvalidIndexKeyError','hash','report','.okdb-function.js','sandbox','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','concat','enableFatalReport','constructor','true','_report','get',']\x20already\x20maps\x20to\x20\x27','log','FETCH_NOT_ALLOWED','Function\x20script\x20failed\x20to\x20initialize','_admissionStarted','default','stats','dropping','_txnIdAtSnapshot','Cannot\x20set\x20enforce\x20schema\x20on\x20','3216661CYuPIz','setDefaultTTL','rollback','\x20already\x20exists','getMany','_startAdmission','keys','ms/','_readViewExpired','useReadTransaction','timeout','allowFetch','script','system:poke','system:ready','tolerant','maxExtra','references','license:removed','_buckets','type:drop','readTransaction','bus:proc','TYPE_ALREADY_REGISTERED','ms\x20p99=','clearDefaultTTL','license:activated','OKDBIndexNotRegisteredError','ttlStats','txn:start','byLabel','_timer','Unsupported\x20transaction\x20action:\x20','\x22\x20on\x20\x22','create','url','size','key','name','TXN_ROLLBACK','stop','then','_drainHandler','from','sync:apply',':useReadTransaction','getBucket','mode','isArray','range','FUNCTION_SCRIPT_INVALID_SHAPE','enable','cause','bind','1zNWFKD','\x27\x20doesn\x27t\x20exist','system:clock_change','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','87141tRJeNA','Function\x20script\x20failed\x20to\x20compile','creating','length','\x27\x20on\x20type\x20\x27','removeJob','Invalid\x20primary\x20key\x20type:\x20','maxMs','message','env','ttl:set','_undoHooks','getValues','setTTL','\x22\x20is\x20used\x20by:\x20','events','\x20does\x20not\x20exist','fts:drop','INDEX_HAS_CONSUMERS','SKIP','_admissionTimer','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','cursorKey','item:remove','filename','NOT_FOUND','setTtl','version','errors','6PJTavx','result','offWindow','lastTxnId','runInContext','dryRunActions','reset','bus:drain','_closed','FUNCTION_SCRIPT_COMPILE_FAILED','OKDBSchemaValidationError','slice','postMessage','unsafe','claimId','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','update','function','enqueue','stopping','type','636tgDzrs','waiting','total','requestId','note','INDEX_NOT_REGISTERED','indexReady','\x20which\x20does\x20not\x20exist','transaction\x20commit\x20failed','getByPrefix','9UOcFaW','targetType','freeze','hasOwnProperty','debug','job_progress','_writer','ms\x20mean=','started','entries','getEntry','\x22\x20is\x20not\x20in\x20the\x20allowedFetchDomains\x20list','flatMap','registerIndex','\x20│\x20','timeoutMs','delete','bus:env_release','shift','toJSON','txn\x20ops\x20must\x20be\x20an\x20array','_assertOpen','resetFts','worker_threads','license:added','captureStackTrace','runId','stream','txnId','ensureType','fetch\x20blocked:\x20invalid\x20URL','addBucket','enabled','ready','options',':\x20expected\x20','object','unique:violation','\x20references\x20','last','updateJob','globalThis','txn:rollback','max','resetting','getKeys','join','Foreign\x20key\x20violation:\x20','put','win32','now','dryRun','open','remove','sandbox-','set','TXN_INVALID_OPS','pid','action','index:ready','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','ref:violation','getClock','removeEnvironment','index:reset','disable','value','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','mapError','targetKey','dropIndex','clearTTL','env:removed','createWriteFacade','reject','geoQuery','FOREIGN_KEY_VIOLATION','license:invalid','OKDBForeignKeyError','_envs','createEnvironment','emit','transaction','fieldPath','sdk','exit','setLogger','string','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','view:progress','getRange','txn','files','stopped','setSchema','list','runtime','path','getByPath','asArray','cancel','getDefaultTTL','onWindow','crypto','Transaction\x20already\x20closed','READER_HELD_ACROSS_AWAIT','_range','INVALID_INDEX_KEY','txn:end','envPath','schema:drop','getHeapStatistics','Cannot\x20delete\x20','INVALID_PRIMARY_KEY','next','stderr','ttl:clear','TXN_INVALID_ACTION','getChanges','code','type:registered','map','write','getCount','count','info','abort','args','resetIndex','tries','label','SCHEMA_COLLECTION_INVALID','INVALID_VALUE','bus:type_drop','TXN_START','listTTL','push','Index\x20\x22','registerType','24124qVtqox','onUndo','index:progress','openEnv','UNIQUE_CONSTRAINT','clearTtl','INDEX_ALREADY_REGISTERED','toFixed','upload','uuid',':txnRange','signal','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','materializerContext','actions','start','reduce','actionCount','query','halted','okdb','Type\x20\x27','getJob','has','system:proc','system:env_release','allowedFetchDomains','_log','excludeEnv','dropSchema','1289532weRLHT'];_0x7357=function(){return _0x231921;};return _0x7357();}function requireOkdbFunctionsIpc(){if(hasRequiredOkdbFunctionsIpc)return okdbFunctionsIpc;hasRequiredOkdbFunctionsIpc=0x1;function _0x4dd213(_0xc9a4){const _0x44d1e9=_0x500b;if(!_0xc9a4)return null;return{'message':_0xc9a4['message']||String(_0xc9a4),'stack':_0xc9a4['stack']||null,'code':_0xc9a4[_0x44d1e9(0xd4)]||null,'details':_0xc9a4['details']||null};}function _0x307fc5(_0x36785b){const _0x58c542=_0x500b;if(!_0x36785b)return new Error('Unknown\x20custom\x20function\x20error');const _0xe4240b=new Error(_0x36785b[_0x58c542(0x1c5)]||String(_0x36785b));if(_0x36785b[_0x58c542(0x169)])_0xe4240b[_0x58c542(0x169)]=_0x36785b[_0x58c542(0x169)];if(_0x36785b[_0x58c542(0xd4)])_0xe4240b['code']=_0x36785b[_0x58c542(0xd4)];if(_0x36785b['details'])_0xe4240b[_0x58c542(0x148)]=_0x36785b['details'];return _0xe4240b;}return okdbFunctionsIpc={'serializeError':_0x4dd213,'deserializeError':_0x307fc5},okdbFunctionsIpc;}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x3ed339=_0x5ad382;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x3994bb={'PUT':'put','REMOVE':_0x3ed339(0x22e),'INDEX_DROP':_0x3ed339(0x23f),'INDEX_REGISTER':_0x3ed339(0x206),'INDEX_RESET':_0x3ed339(0xdd),'TYPE_REGISTER':_0x3ed339(0xe7),'TYPE_DROP':_0x3ed339(0x14b),'FTS_REGISTER':'registerFts','FTS_DROP':_0x3ed339(0x134),'FTS_RESET':_0x3ed339(0x20f),'SCHEMA_SET':_0x3ed339(0x257),'SCHEMA_DROP':_0x3ed339(0x105),'TTL_SET':_0x3ed339(0x1d7),'TTL_CLEAR':_0x3ed339(0xed)},_0x5de4ee={'SYSTEM_READY':_0x3ed339(0x191),'SYSTEM_STOPPED':_0x3ed339(0x157),'SYSTEM_CLOCK_CHANGE':_0x3ed339(0x1bb),'SYSTEM_POKE':_0x3ed339(0x190),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x3ed339(0x100),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x3ed339(0x1d4),'INDEX_RESET':_0x3ed339(0x239),'INDEX_READY':_0x3ed339(0x234),'INDEX_PROGRESS':_0x3ed339(0xea),'VIEW_PROGRESS':_0x3ed339(0x252),'INDEX_DROP':_0x3ed339(0x16b),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':'fts:registered','FTS_DROP':_0x3ed339(0x1ce),'FTS_RESET':_0x3ed339(0x147),'SCHEMA_SET':_0x3ed339(0x125),'SCHEMA_DROP':_0x3ed339(0xcb),'UNIQUE_VIOLATION':_0x3ed339(0x21e),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x3ed339(0x236),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x3ed339(0x1af),'TXN_START':_0x3ed339(0x1a0),'TXN_END':_0x3ed339(0xc9),'TXN_ROLLBACK':_0x3ed339(0x223),'TYPE_REGISTERED':_0x3ed339(0xd5),'TYPE_DROP':_0x3ed339(0x197),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x3ed339(0x241),'SYSTEM_ENV_RELEASE':_0x3ed339(0x101),'TTL_EXPIRED':_0x3ed339(0x12a),'TTL_SET':_0x3ed339(0x1c7),'TTL_CLEAR':_0x3ed339(0xd1),'LICENSE_INVALID':_0x3ed339(0x246),'LICENSE_ADDED':_0x3ed339(0x211),'LICENSE_ACTIVATED':_0x3ed339(0x19d),'LICENSE_REMOVED':_0x3ed339(0x195)},_0x271d2f={'CREATING':_0x3ed339(0x1bf),'RESETTING':_0x3ed339(0x225),'READY':_0x3ed339(0x21a),'DROPPING':_0x3ed339(0x180),'WAITING':_0x3ed339(0x1f0)},_0x43ee81={'CREATED':_0x3ed339(0x111),'STARTING':'starting','STARTED':_0x3ed339(0x201),'STOPPING':_0x3ed339(0x1ed),'STOPPED':_0x3ed339(0x256)},_0x4628f9={'CREATING':_0x3ed339(0x1bf),'READY':_0x3ed339(0x21a),'HALTED':_0x3ed339(0xfb),'STOPPED':_0x3ed339(0x256),'RESETTING':_0x3ed339(0x225)},_0x317b2c=Object[_0x3ed339(0x1fb)]({'POKE':_0x3ed339(0x11e),'DRAIN':_0x3ed339(0x1e1),'TYPE_DROP':_0x3ed339(0xe2),'PROC':_0x3ed339(0x199),'ENV_RELEASE':_0x3ed339(0x20a)});return okdbEnums={'BUS_EVENTS':_0x317b2c,'CHANGE_ACTIONS':_0x3994bb,'EVENTS':_0x5de4ee,'INDEX_STATE':_0x271d2f,'OKDB_STATE':_0x43ee81,'VIEW_STATE':_0x4628f9},okdbEnums;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x44051d extends Error{constructor(_0x5bd55c,_0x5c884b,_0x1f4004={}){const _0x5d46ef=_0x500b;super(_0x5bd55c),this[_0x5d46ef(0x1a9)]='OKDBError',this['code']=_0x5c884b,this[_0x5d46ef(0x148)]=_0x1f4004,_0x1f4004[_0x5d46ef(0x1b7)]&&(this[_0x5d46ef(0x1b7)]=_0x1f4004[_0x5d46ef(0x1b7)]),Error[_0x5d46ef(0x212)](this,this[_0x5d46ef(0x175)]);}}class _0x1ef80f extends _0x44051d{constructor(_0x40d869,_0x32d6f6,_0x14b71b,_0x2419c5){const _0x3f692c=_0x500b;super('Version\x20mismatch\x20for\x20'+_0x40d869+'@'+_0x32d6f6+_0x3f692c(0x21c)+_0x14b71b+_0x3f692c(0x14c)+_0x2419c5,'VERSION_MISMATCH',{'type':_0x40d869,'key':_0x32d6f6,'expectedVersion':_0x14b71b,'actualVersion':_0x2419c5}),this['name']='OKDBVersionMismatchError';}}class _0x1a871b extends _0x44051d{constructor(_0x50617a,_0x299c27){const _0x51473f=_0x500b;super(_0x50617a+'@'+_0x299c27+_0x51473f(0x1cd),_0x51473f(0x1d6),{'type':_0x50617a,'key':_0x299c27}),this['name']='OKDBNotFoundError';}}class _0x1c2cc6 extends _0x44051d{constructor(_0x4716c8,_0x29d01d){const _0x769c4=_0x500b;super(_0x4716c8+'@'+_0x29d01d+_0x769c4(0x186),_0x769c4(0x10b),{'type':_0x4716c8,'key':_0x29d01d}),this[_0x769c4(0x1a9)]=_0x769c4(0x158);}}class _0x541196 extends _0x44051d{constructor(_0x368084,_0x360ed6){const _0x5f226e=_0x500b,_0xed9c7a=typeof _0x360ed6;super(_0x5f226e(0x10d)+_0x368084+'\x27:\x20'+_0xed9c7a+_0x5f226e(0x172)+_0x360ed6,_0x5f226e(0xc8),{'index':_0x368084,'key':_0x360ed6,'keyType':_0xed9c7a}),this[_0x5f226e(0x1a9)]=_0x5f226e(0x16d);}}class _0x127ec4 extends _0x44051d{constructor(_0x14b27a){const _0x3ec6ef=_0x500b,_0x1669d8=typeof _0x14b27a;super(_0x3ec6ef(0x1c3)+_0x1669d8+_0x3ec6ef(0x1e9)+_0x14b27a,_0x3ec6ef(0xce),{'key':_0x14b27a,'keyType':_0x1669d8}),this[_0x3ec6ef(0x1a9)]=_0x3ec6ef(0x130);}}class _0x566462 extends _0x44051d{constructor(_0x32f88f){const _0x4966e0=_0x500b;super(_0x4966e0(0xfd)+_0x32f88f+_0x4966e0(0x1ba),'TYPE_NOT_REGISTERED',{'type':_0x32f88f}),this['name']='OKDBTypeNotRegisteredError';}}class _0x475cc5 extends _0x44051d{constructor(_0x512bb3){const _0x3fde04=_0x500b;super(_0x3fde04(0xfd)+_0x512bb3+_0x3fde04(0x135),_0x3fde04(0x19a),{'type':_0x512bb3}),this[_0x3fde04(0x1a9)]='OKDBTypeAlreadyRegisteredError';}}class _0x379254 extends _0x44051d{constructor(_0x58ba15,_0x4bf046){const _0x2045c4=_0x500b;super(_0x2045c4(0x11a)+_0x4bf046+'\x27\x20on\x20type\x20\x27'+_0x58ba15+_0x2045c4(0x1ba),_0x2045c4(0x1f4),{'type':_0x58ba15,'index':_0x4bf046}),this[_0x2045c4(0x1a9)]=_0x2045c4(0x19e);}}class _0x1d6a78 extends _0x44051d{constructor(_0x116698,_0x140a44){const _0x2f29ec=_0x500b;super('Index\x20\x27'+_0x140a44+_0x2f29ec(0x1c1)+_0x116698+_0x2f29ec(0x123),_0x2f29ec(0xee),{'type':_0x116698,'index':_0x140a44}),this['name']=_0x2f29ec(0x141);}}class _0x471669 extends _0x44051d{constructor(_0x4ff580,_0x1f5628={}){const _0x45f0b2=_0x500b;super(_0x4ff580,_0x45f0b2(0xe1),_0x1f5628),this[_0x45f0b2(0x1a9)]=_0x45f0b2(0x13d);}}class _0x42d670 extends _0x44051d{constructor(_0xf5313e,_0xc2f75e,_0x5ea65b,_0x413471,_0x460530){const _0x4e7851=_0x500b;super(_0x4e7851(0x129)+_0xf5313e+'@'+_0xc2f75e+':\x20key\x20['+_0x5ea65b+_0x4e7851(0x179)+_0x413471+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x460530+'\x27',_0x4e7851(0xec),{'type':_0xf5313e,'index':_0xc2f75e,'indexKey':_0x5ea65b,'existingKey':_0x413471,'conflictingKey':_0x460530}),this[_0x4e7851(0x1a9)]=_0x4e7851(0x144);}}class _0x224475 extends _0x44051d{constructor(_0x54e4de,_0x39f4a0,_0x268b11){const _0x184f6e=_0x500b;super(_0x184f6e(0x167)+_0x54e4de+'@'+_0x39f4a0,_0x184f6e(0x13f),{'type':_0x54e4de,'key':_0x39f4a0,'errors':_0x268b11}),this['name']=_0x184f6e(0x1e4),this[_0x184f6e(0x1ee)]=_0x54e4de,this[_0x184f6e(0x1a8)]=_0x39f4a0,this[_0x184f6e(0x1d9)]=_0x268b11;}}class _0x3cf4f2 extends _0x44051d{constructor(_0x16772d,_0x5b4620){const _0x2aa3af=_0x500b;super(_0x2aa3af(0x182)+_0x16772d+':\x20'+_0x5b4620['length']+_0x2aa3af(0x14e),_0x2aa3af(0xe0),{'type':_0x16772d,'failures':_0x5b4620}),this[_0x2aa3af(0x1a9)]=_0x2aa3af(0x133),this[_0x2aa3af(0x1ee)]=_0x16772d,this['failures']=_0x5b4620;}}class _0x2d9ef7 extends _0x44051d{constructor(_0x4ca1b6,_0xcab35e,_0x36c825,_0x2c57c6,_0x20b629){const _0x32c123=_0x500b;super(_0x32c123(0x228)+_0x4ca1b6+'@'+_0xcab35e+'.'+_0x36c825+_0x32c123(0x21f)+_0x2c57c6+'@'+_0x20b629+_0x32c123(0x1f6),_0x32c123(0x245),{'sourceType':_0x4ca1b6,'sourceKey':_0xcab35e,'fieldPath':_0x36c825,'targetType':_0x2c57c6,'targetKey':_0x20b629}),this[_0x32c123(0x1a9)]=_0x32c123(0x247),this['sourceType']=_0x4ca1b6,this['sourceKey']=_0xcab35e,this[_0x32c123(0x24c)]=_0x36c825,this['targetType']=_0x2c57c6,this['targetKey']=_0x20b629;}}class _0x258674 extends _0x44051d{constructor(_0x590645,_0x192b86,_0x4bac72){const _0x2ef437=_0x500b;super(_0x2ef437(0xcd)+_0x590645+'@'+_0x192b86+':\x20'+_0x4bac72[_0x2ef437(0x1c0)]+_0x2ef437(0x10e),'FOREIGN_KEY_DELETE_RESTRICTED',{'targetType':_0x590645,'targetKey':_0x192b86,'references':_0x4bac72}),this['name']='OKDBForeignKeyDeleteError',this['targetType']=_0x590645,this[_0x2ef437(0x23e)]=_0x192b86,this[_0x2ef437(0x194)]=_0x4bac72;}}class _0x5c7d83 extends _0x44051d{constructor(_0x4689d9,_0x137345,_0x124d3c){const _0x14da9a=_0x500b;super(_0x14da9a(0xe6)+_0x137345+_0x14da9a(0x1a4)+_0x4689d9+_0x14da9a(0x1cb)+_0x124d3c[_0x14da9a(0xd6)](_0xb329ed=>_0xb329ed['kind']+':'+_0xb329ed['name'])[_0x14da9a(0x227)](',\x20'),_0x14da9a(0x1cf),{'type':_0x4689d9,'index':_0x137345,'usedBy':_0x124d3c}),this[_0x14da9a(0x1a9)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x44051d,'OKDBVersionMismatchError':_0x1ef80f,'OKDBNotFoundError':_0x1a871b,'OKDBAlreadyExistsError':_0x1c2cc6,'OKDBInvalidIndexKeyError':_0x541196,'OKDBInvalidPrimaryKeyError':_0x127ec4,'OKDBTypeNotRegisteredError':_0x566462,'OKDBTypeAlreadyRegisteredError':_0x475cc5,'OKDBIndexNotRegisteredError':_0x379254,'OKDBIndexAlreadyRegisteredError':_0x1d6a78,'OKDBInvalidValueError':_0x471669,'OKDBUniqueConstraintError':_0x42d670,'OKDBSchemaValidationError':_0x224475,'OKDBSchemaCollectionError':_0x3cf4f2,'OKDBForeignKeyError':_0x2d9ef7,'OKDBForeignKeyDeleteError':_0x258674,'OKDBIndexHasConsumersError':_0x5c7d83},okdbError;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x552d25=_0x5ad382;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x54768e=require$$0$1,{OKDBError:_0x1cf11f}=requireOkdbError(),_0x264f4e={'value':null,'done':!![]};class _0x44461e{constructor(_0x3a9118){this['_makeIterator']=_0x3a9118;}get[_0x552d25(0x116)](){return _0x264f4e;}[Symbol[_0x552d25(0x164)]](){return this['_makeIterator']();}[_0x552d25(0xd6)](_0x5241d5){const _0x2e3c28=this;return new _0x44461e(()=>{const _0x59a10b=_0x500b,_0x431835=_0x2e3c28[Symbol[_0x59a10b(0x164)]]();return{'next'(){const _0x598986=_0x59a10b;for(;;){const _0x4b7cc1=_0x431835[_0x598986(0xcf)]();if(_0x4b7cc1[_0x598986(0x120)])return{'done':!![],'value':undefined};const _0x311fbb=_0x5241d5(_0x4b7cc1[_0x598986(0x23b)]);if(_0x311fbb===_0x54768e[_0x598986(0x1d0)])continue;if(_0x311fbb===_0x264f4e)return _0x431835[_0x598986(0x131)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x311fbb};}},'return'(){const _0x32ca43=_0x59a10b;return _0x431835[_0x32ca43(0x131)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x59a10b(0x164)]](){return this;}};});}[_0x552d25(0x145)](_0x2e223a){const _0x4d0220=_0x552d25;return this[_0x4d0220(0xd6)](_0x4a4d70=>_0x2e223a(_0x4a4d70)?_0x4a4d70:_0x54768e[_0x4d0220(0x1d0)]);}['forEach'](_0x3bc635){for(const _0x467d07 of this)_0x3bc635(_0x467d07);}[_0x552d25(0x1e5)](_0x4c0364=0x0,_0x491b41=Infinity){const _0x122869=this;return new _0x44461e(()=>{const _0x32476f=_0x500b,_0x22937f=_0x122869[Symbol[_0x32476f(0x164)]]();let _0x950ba7=0x0;return{'next'(){const _0x4e444f=_0x32476f;for(;;){const _0x4d5fd0=_0x22937f[_0x4e444f(0xcf)]();if(_0x4d5fd0[_0x4e444f(0x120)])return{'done':!![],'value':undefined};const _0x154e26=_0x950ba7++;if(_0x154e26<_0x4c0364)continue;if(_0x154e26>=_0x491b41)return _0x22937f[_0x4e444f(0x131)]?.(),{'done':!![],'value':undefined};return _0x4d5fd0;}},'return'(){const _0x3eaec9=_0x32476f;return _0x22937f[_0x3eaec9(0x131)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['at'](_0x48a3f7){let _0xf5e9b5=0x0;for(const _0x5db1ad of this)if(_0xf5e9b5++===_0x48a3f7)return _0x5db1ad;return undefined;}[_0x552d25(0x205)](_0x3cfb7e){const _0x14d398=this;return new _0x44461e(()=>{const _0x1bb893=_0x500b,_0x55edf3=_0x14d398[Symbol[_0x1bb893(0x164)]]();let _0x88b987=[];return{'next'(){const _0x33aaab=_0x1bb893;for(;;){if(_0x88b987['length'])return{'done':![],'value':_0x88b987[_0x33aaab(0x20b)]()};const _0x113f32=_0x55edf3[_0x33aaab(0xcf)]();if(_0x113f32[_0x33aaab(0x120)])return{'done':!![],'value':undefined};const _0x419e70=_0x3cfb7e(_0x113f32[_0x33aaab(0x23b)]);if(Array[_0x33aaab(0x1b3)](_0x419e70))_0x88b987=_0x88b987[_0x33aaab(0x173)](_0x419e70);else{if(_0x419e70!=null&&(_0x419e70 instanceof _0x44461e||typeof _0x419e70[Symbol[_0x33aaab(0x164)]]===_0x33aaab(0x1eb)&&'asArray'in _0x419e70))_0x88b987=_0x88b987[_0x33aaab(0x173)](Array[_0x33aaab(0x1ae)](_0x419e70));else{if(_0x419e70!==_0x54768e[_0x33aaab(0x1d0)])return{'done':![],'value':_0x419e70};}}}},'return'(){const _0x38958f=_0x1bb893;return _0x55edf3[_0x38958f(0x131)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x1bb893(0x164)]](){return this;}};});}[_0x552d25(0x173)](_0x475141){const _0x3d80b0=this;return new _0x44461e(()=>{const _0x354c7a=_0x500b;let _0x55caf5=_0x3d80b0[Symbol['iterator']](),_0x5df22c=![];return{'next'(){const _0x3db431=_0x500b;for(;;){const _0x3fd769=_0x55caf5[_0x3db431(0xcf)]();if(!_0x3fd769[_0x3db431(0x120)])return _0x3fd769;if(_0x5df22c)return{'done':!![],'value':undefined};_0x5df22c=!![],_0x55caf5=_0x475141[Symbol[_0x3db431(0x164)]]();}},'return'(){const _0x44733b=_0x500b;return _0x55caf5[_0x44733b(0x131)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x354c7a(0x164)]](){return this;}};});}[_0x552d25(0x23d)](_0x16ce7f){const _0x2366ea=this;return new _0x44461e(()=>{const _0x2d0bbe=_0x500b,_0x24b9e0=_0x2366ea[Symbol[_0x2d0bbe(0x164)]]();return{'next'(){const _0x39a060=_0x2d0bbe;for(;;){try{return _0x24b9e0[_0x39a060(0xcf)]();}catch(_0x3c52e6){const _0x384434=_0x16ce7f(_0x3c52e6);if(_0x384434===_0x54768e[_0x39a060(0x1d0)]||_0x384434===undefined)continue;return{'done':![],'value':_0x384434};}}},'return'(){const _0x3ba052=_0x2d0bbe;return _0x24b9e0[_0x3ba052(0x131)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x552d25(0x20c)](){const _0x46c630=_0x552d25;return Array[_0x46c630(0x1ae)](this);}get[_0x552d25(0xc0)](){const _0x39090d=_0x552d25;return Array[_0x39090d(0x1ae)](this);}}const _0x791904={'total':0x0,'byLabel':{},'last':null};function _0x256c01(_0x11d0b7){const _0x48f0c2=_0x552d25;_0x791904['total']++;if(_0x11d0b7)_0x791904['byLabel'][_0x11d0b7]=(_0x791904[_0x48f0c2(0x1a1)][_0x11d0b7]??0x0)+0x1;_0x791904[_0x48f0c2(0x220)]={'label':_0x11d0b7??null,'at':Date['now']()};}function _0x531c29(){const _0x51f795=_0x552d25;return{'total':_0x791904[_0x51f795(0x1f1)],'byLabel':{..._0x791904[_0x51f795(0x1a1)]},'last':_0x791904[_0x51f795(0x220)]};}function _0x44112e(_0x3d237a,_0x11ac72={}){const {getTxnId:_0x111be3,resume:_0x4e44e5,label:_0x42fd39,baseline:_0x592555}=_0x11ac72;return new _0x44461e(()=>{const _0x8d78f5=_0x500b;let _0x228b50=null,_0x1424eb=![],_0x1d3a04=![],_0x2ad99d=![],_0x46ac6b,_0x8b653c=0x0,_0x872372;return{'next'(){const _0x198f24=_0x500b;if(_0x2ad99d)return{'done':!![],'value':undefined};if(_0x1d3a04){let _0x51439c=![];if(_0x4e44e5&&_0x111be3)try{_0x51439c=_0x111be3()===_0x872372;}catch{}if(!_0x51439c){_0x2ad99d=!![],_0x256c01(_0x42fd39);throw new _0x1cf11f(_0x4e44e5?_0x198f24(0x11d)+_0x198f24(0x235)+'before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.':_0x198f24(0xf4)+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x198f24(0x15c),_0x198f24(0xc6));}_0x228b50=_0x4e44e5(_0x46ac6b,_0x8b653c)[Symbol[_0x198f24(0x164)]](),_0x1d3a04=![];}if(!_0x228b50){if(_0x592555!==undefined)_0x872372=_0x592555;else try{_0x872372=_0x111be3?_0x111be3():undefined;}catch{_0x872372=undefined;}try{_0x228b50=_0x3d237a()[Symbol[_0x198f24(0x164)]]();}catch(_0x140a89){_0x2ad99d=!![];throw _0x140a89;}}!_0x1424eb&&(_0x1424eb=!![],queueMicrotask(()=>{_0x1424eb=![];if(_0x2ad99d||_0x1d3a04)return;try{_0x228b50?.['return']?.();}catch{}_0x228b50=null,_0x1d3a04=!![];}));const _0x29a69d=_0x228b50[_0x198f24(0xcf)]();if(_0x29a69d[_0x198f24(0x120)])return _0x2ad99d=!![],{'done':!![],'value':undefined};return _0x46ac6b=_0x29a69d[_0x198f24(0x23b)],_0x8b653c++,_0x29a69d;},'return'(){const _0x1d9d3b=_0x500b;_0x2ad99d=!![];try{_0x228b50?.[_0x1d9d3b(0x131)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x8d78f5(0x164)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x44112e,'OKDBGuardedRange':_0x44461e,'recordGuardTrip':_0x256c01,'getGuardTripStats':_0x531c29},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x389427=_0x5ad382;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0xeaeda0,performance:_0x502b40}=require$$0$2,_0x2c2729=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x389427(0x176),_0x175918=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x20ba02=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2f04cd=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x269433{constructor(){const _0x5c5a9b=_0x389427;this[_0x5c5a9b(0x219)]=_0x2c2729,this[_0x5c5a9b(0x196)]=new Map(),this['_h']=null,this[_0x5c5a9b(0x1a2)]=null,this['_started']=![],this[_0x5c5a9b(0x103)]=(_0x34de17,_0x10b5d7)=>process[_0x5c5a9b(0xd0)][_0x5c5a9b(0xd7)](_0x34de17+(_0x10b5d7?'\x20'+JSON[_0x5c5a9b(0x109)](_0x10b5d7):'')+'\x0a');}[_0x389427(0x22b)](){const _0x2da3ab=_0x389427;return _0x502b40[_0x2da3ab(0x22b)]();}[_0x389427(0x24f)](_0x361835){const _0x2a2bb7=_0x389427;if(typeof _0x361835==='function')this[_0x2a2bb7(0x103)]=_0x361835;}['note'](_0x2f1b7f,_0x27aaa6,_0xfd9bf){const _0x1941ce=_0x389427;if(!this[_0x1941ce(0x219)])return;let _0x1cf959=this[_0x1941ce(0x196)][_0x1941ce(0x178)](_0x2f1b7f);!_0x1cf959&&(_0x1cf959={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x1941ce(0x196)][_0x1941ce(0x230)](_0x2f1b7f,_0x1cf959)),_0x1cf959['ms']+=_0x27aaa6,_0x1cf959[_0x1941ce(0xd9)]+=0x1,_0x27aaa6>_0x1cf959[_0x1941ce(0x1c4)]&&(_0x1cf959[_0x1941ce(0x1c4)]=_0x27aaa6,_0x1cf959[_0x1941ce(0x193)]=_0xfd9bf||'');}[_0x389427(0xf7)](_0x4d7e0d){const _0xb77844=_0x389427;if(!this['enabled']||this[_0xb77844(0x16a)])return;this['_started']=!![];if(_0x4d7e0d)this[_0xb77844(0x103)]=_0x4d7e0d;this['_h']=_0xeaeda0({'resolution':0xa}),this['_h'][_0xb77844(0x1b6)](),this[_0xb77844(0x1a2)]=setInterval(()=>this[_0xb77844(0x177)](),_0x175918);if(this[_0xb77844(0x1a2)][_0xb77844(0x156)])this['_timer'][_0xb77844(0x156)]();}[_0x389427(0xc3)](_0x4e7772){const _0x52acd8=_0x389427;if(!this[_0x52acd8(0x10f)])this[_0x52acd8(0x10f)]=new Set();this[_0x52acd8(0x10f)][_0x52acd8(0x15a)](_0x4e7772);if(!this['_started'])this[_0x52acd8(0x188)]();}[_0x389427(0x1dc)](_0x46dc63){const _0x2b3b9a=_0x389427;this['_windowCbs']?.[_0x2b3b9a(0x209)](_0x46dc63);}[_0x389427(0x188)](){const _0x10b177=_0x389427;if(this[_0x10b177(0x17d)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0xeaeda0({'resolution':0xa}),this['_h']['enable']());const _0x25144=_0x175918;this[_0x10b177(0x1d1)]=setInterval(()=>{const _0x44a0b8=_0x10b177,_0x13abfd=this['_h'];if(!_0x13abfd)return;const _0x906d9b=_0x13abfd[_0x44a0b8(0x15b)](0x63)/0xf4240,_0x18a2b9=_0x13abfd[_0x44a0b8(0x224)]/0xf4240,_0x263edf=_0x13abfd[_0x44a0b8(0x136)]/0xf4240;_0x13abfd['reset']();if(this[_0x44a0b8(0x10f)])for(const _0x5be2bf of this[_0x44a0b8(0x10f)]){try{_0x5be2bf({'p99Ms':_0x906d9b,'maxMs':_0x18a2b9,'meanMs':_0x263edf,'reportMs':_0x25144});}catch{}}},_0x25144);if(this[_0x10b177(0x1d1)][_0x10b177(0x156)])this[_0x10b177(0x1d1)][_0x10b177(0x156)]();}[_0x389427(0x177)](){const _0x119a92=_0x389427,_0x47b643=this['_h'],_0x3670b4=_0x47b643[_0x119a92(0x224)]/0xf4240,_0x42458d=_0x47b643['percentile'](0x63)/0xf4240,_0x1a5c95=_0x47b643[_0x119a92(0x136)]/0xf4240;_0x47b643[_0x119a92(0x1e0)]();const _0x16609c=[...this['_buckets'][_0x119a92(0x202)]()]['map'](([_0x32bc99,_0x59a96a])=>({'label':_0x32bc99,..._0x59a96a}))['sort']((_0x58058b,_0x433cbe)=>_0x433cbe['ms']-_0x58058b['ms'])['slice'](0x0,0x8);this[_0x119a92(0x196)][_0x119a92(0x11f)]();const _0x29360f=_0x16609c[_0x119a92(0xf8)]((_0x1400f2,_0x147ab8)=>_0x1400f2+_0x147ab8['ms'],0x0),_0x3680aa=_0x16609c[_0x119a92(0xd6)](_0x4e3316=>_0x4e3316[_0x119a92(0xdf)]+'='+_0x4e3316['ms'][_0x119a92(0xef)](0x0)+_0x119a92(0x18a)+_0x4e3316[_0x119a92(0xd9)]+(_0x4e3316['maxMs']>0x5?'(worst\x20'+_0x4e3316[_0x119a92(0x1c4)][_0x119a92(0xef)](0x0)+'ms'+(_0x4e3316[_0x119a92(0x193)]?'\x20'+_0x4e3316[_0x119a92(0x193)]:'')+')':''));(_0x20ba02||_0x3670b4>=_0x2f04cd)&&this[_0x119a92(0x103)]('loop-lag\x20'+_0x175918+_0x119a92(0x126)+_0x3670b4[_0x119a92(0xef)](0x0)+_0x119a92(0x19b)+_0x42458d[_0x119a92(0xef)](0x0)+_0x119a92(0x200)+_0x1a5c95[_0x119a92(0xef)](0x0)+'ms\x20busy='+_0x29360f[_0x119a92(0xef)](0x0)+'ms'+(_0x3680aa['length']?_0x119a92(0x207)+_0x3680aa[_0x119a92(0x227)]('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x119a92(0x10f)])for(const _0x38f747 of this[_0x119a92(0x10f)]){try{_0x38f747({'p99Ms':_0x42458d,'maxMs':_0x3670b4,'meanMs':_0x1a5c95,'reportMs':_0x175918});}catch{}}}[_0x389427(0x1ab)](){const _0x2da5ff=_0x389427;if(this[_0x2da5ff(0x1a2)])clearInterval(this[_0x2da5ff(0x1a2)]);if(this['_h'])this['_h'][_0x2da5ff(0x23a)]();this[_0x2da5ff(0x1a2)]=null,this['_h']=null,this[_0x2da5ff(0x16a)]=![];}}const _0x126fa4=new _0x269433();if(_0x126fa4[_0x389427(0x219)])_0x126fa4[_0x389427(0xf7)]();return okdbLoopMonitor={'LOOP':_0x126fa4},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x5cea5d=_0x5ad382;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x3808bb=require$$0$3,{EVENTS:_0x33ae3a}=requireOkdbEnums(),{OKDBError:_0x9db040}=requireOkdbError(),{recordGuardTrip:_0x503228,guardSnapshotIterable:_0x2edcc3}=requireOkdbGuardedRange(),{LOOP:_0x485dc6}=requireOkdbLoopMonitor();function _0x22a592(_0xa59e44){const _0x47135a=_0x500b;return _0xa59e44[_0x47135a(0xd6)](_0x37f709=>{const _0x46839b=_0x47135a,[_0x48566c,_0x26d775]=_0x37f709[_0x46839b(0xdc)]||[];return{'action':_0x37f709[_0x46839b(0x233)],'type':_0x48566c,'key':_0x26d775};});}class _0x32adb6{[_0x5cea5d(0xfc)];[_0x5cea5d(0xf6)]=[];[_0x5cea5d(0x13c)]=[];[_0x5cea5d(0x1c8)]=[];constructor(_0x286412,_0x3c65c0={'useReadTransaction':![]}){const _0x56b603=_0x5cea5d;this[_0x56b603(0xfc)]=_0x286412,this[_0x56b603(0x21b)]=_0x3c65c0,this['id']=_0x3808bb['v4']();if(this[_0x56b603(0x21b)][_0x56b603(0x18c)])try{this['_txnIdAtSnapshot']=this[_0x56b603(0xfc)]['db']['getStats']()[_0x56b603(0x1dd)];}catch{this['_txnIdAtSnapshot']=undefined;}this['readTransaction']=this['options'][_0x56b603(0x18c)]?this['okdb']['db'][_0x56b603(0x18c)]():null,this[_0x56b603(0x1e2)]=![],this['_readViewExpired']=![],this['readTransaction']&&queueMicrotask(()=>{const _0x2ea8e2=_0x56b603;this[_0x2ea8e2(0x198)]&&(this[_0x2ea8e2(0x150)](),this[_0x2ea8e2(0x18b)]=!![]);});}['onDo'](_0x52eba5){const _0x315e74=_0x5cea5d;this[_0x315e74(0x13c)][_0x315e74(0xe5)](_0x52eba5);}[_0x5cea5d(0xe9)](_0x32db08){const _0x172d36=_0x5cea5d;this[_0x172d36(0x1c8)]['push'](_0x32db08);}['_closeReadTransaction'](){const _0x22c684=_0x5cea5d;if(!this[_0x22c684(0x198)])return;try{this[_0x22c684(0x198)][_0x22c684(0x120)]();}catch(_0x5d387a){}this['readTransaction']=null;}[_0x5cea5d(0x20e)](){const _0xe337d8=_0x5cea5d;if(this[_0xe337d8(0x1e2)])throw new _0x9db040('Transaction\x20already\x20closed','TXN_CLOSED');if(this['_readViewExpired']){let _0x194495=![];if(this['options'][_0xe337d8(0x18c)]===_0xe337d8(0x192)&&this['_txnIdAtSnapshot']!==undefined)try{_0x194495=this[_0xe337d8(0xfc)]['db'][_0xe337d8(0x138)]()[_0xe337d8(0x1dd)]===this[_0xe337d8(0x181)];}catch{}if(!_0x194495){_0x503228((this[_0xe337d8(0xfc)]?.[_0xe337d8(0x1a9)]??'?')+_0xe337d8(0x1b0));throw new _0x9db040(_0xe337d8(0x151)+_0xe337d8(0x1d2)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0xe337d8(0x10a),_0xe337d8(0xc6));}}}[_0x5cea5d(0x178)](_0x4fc6d0,_0x5dedbf){const _0x226c8e=_0x5cea5d;return this[_0x226c8e(0x20e)](),this[_0x226c8e(0xfc)][_0x226c8e(0x178)](_0x4fc6d0,_0x5dedbf,{'transaction':this['readTransaction']});}[_0x5cea5d(0x203)](_0x514455,_0x3d0932){const _0x3369aa=_0x5cea5d;return this[_0x3369aa(0x20e)](),this[_0x3369aa(0xfc)][_0x3369aa(0x203)](_0x514455,_0x3d0932,{'transaction':this[_0x3369aa(0x198)]});}[_0x5cea5d(0x187)](_0x44b2a9,_0x3ac3e1){const _0x4a7476=_0x5cea5d;return this['_assertOpen'](),this[_0x4a7476(0xfc)][_0x4a7476(0x187)](_0x44b2a9,_0x3ac3e1,{'transaction':this[_0x4a7476(0x198)]});}[_0x5cea5d(0xc7)](_0x472708){const _0x214238=_0x5cea5d;if(!this[_0x214238(0x21b)]['useReadTransaction'])return _0x472708;if(_0x472708&&typeof _0x472708[_0x214238(0x1ac)]===_0x214238(0x1eb))return _0x472708;if(Array[_0x214238(0x1b3)](_0x472708))return _0x472708;const _0x3b4475=this,_0x101031=_0x3b4475[_0x214238(0x21b)][_0x214238(0x18c)]===_0x214238(0x192),_0x36d6ae=()=>{const _0x1126c7=_0x214238;if(!_0x3b4475[_0x1126c7(0x18b)])return![];if(!_0x101031)return!![];if(_0x3b4475[_0x1126c7(0x181)]===undefined)return!![];try{return _0x3b4475[_0x1126c7(0xfc)]['db'][_0x1126c7(0x138)]()['lastTxnId']!==_0x3b4475[_0x1126c7(0x181)];}catch{return!![];}};return _0x2edcc3(()=>{const _0x5a78a0=_0x214238;if(_0x3b4475['_closed'])throw new _0x9db040('Transaction\x20already\x20closed',_0x5a78a0(0x163));if(_0x36d6ae()){_0x503228((_0x3b4475[_0x5a78a0(0xfc)]?.['name']??'?')+_0x5a78a0(0xf2));throw new _0x9db040(_0x5a78a0(0x15e)+_0x5a78a0(0x23c)+_0x5a78a0(0x251),_0x5a78a0(0xc6));}return _0x472708;},{'label':(_0x3b4475['okdb']?.[_0x214238(0x1a9)]??'?')+_0x214238(0xf2),..._0x101031?{'baseline':_0x3b4475[_0x214238(0x181)],'getTxnId':()=>_0x3b4475[_0x214238(0xfc)]['db'][_0x214238(0x138)]()[_0x214238(0x1dd)],'resume':(_0x3a4e7b,_0xcda855)=>_0x472708[_0x214238(0x1e5)](_0xcda855)}:{}});}[_0x5cea5d(0x253)](_0x5aa1e8,_0x35b3de={}){const _0x1e60a3=_0x5cea5d;return this[_0x1e60a3(0x20e)](),this[_0x1e60a3(0xc7)](this[_0x1e60a3(0xfc)]['getRange'](_0x5aa1e8,{'transaction':this[_0x1e60a3(0x198)],..._0x35b3de}));}[_0x5cea5d(0x1c9)](_0x39fbe7,_0x2246d4={}){const _0x130d1d=_0x5cea5d;return this['_assertOpen'](),this[_0x130d1d(0xc7)](this['okdb']['getValues'](_0x39fbe7,{'transaction':this[_0x130d1d(0x198)],..._0x2246d4}));}[_0x5cea5d(0x226)](_0x3a1734,_0x275959={}){const _0x44aaf1=_0x5cea5d;return this['_assertOpen'](),this[_0x44aaf1(0xc7)](this[_0x44aaf1(0xfc)][_0x44aaf1(0x226)](_0x3a1734,{'transaction':this[_0x44aaf1(0x198)],..._0x275959}));}[_0x5cea5d(0x121)](_0x4fbc73,_0x13ad4e,_0x3196ec={}){const _0x243f2d=_0x5cea5d;return this['_assertOpen'](),this['_range'](this[_0x243f2d(0xfc)]['byIndex'](_0x4fbc73,_0x13ad4e,{'transaction':this[_0x243f2d(0x198)],..._0x3196ec}));}[_0x5cea5d(0xfa)](_0x24b54a,_0x2837d5,_0x594cf8={}){const _0x4ab30f=_0x5cea5d;return this[_0x4ab30f(0x20e)](),this[_0x4ab30f(0xc7)](this[_0x4ab30f(0xfc)]['query'](_0x24b54a,_0x2837d5,{'transaction':this[_0x4ab30f(0x198)],..._0x594cf8}));}[_0x5cea5d(0x237)](_0x33a6d5=null){const _0x580b24=_0x5cea5d;return this[_0x580b24(0x20e)](),this['okdb'][_0x580b24(0x237)](_0x33a6d5,{'transaction':this[_0x580b24(0x198)]});}['getCount'](_0x56829a){const _0x331442=_0x5cea5d;return this[_0x331442(0x20e)](),this['okdb']['getCount'](_0x56829a,{'transaction':this[_0x331442(0x198)]});}['put'](_0x4a5217,_0x1e1df4,_0xc1a50a,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x41b395=_0x5cea5d;this[_0x41b395(0xf6)]['push']({'action':_0x41b395(0x229),'args':[_0x4a5217,_0x1e1df4,_0xc1a50a,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x5cea5d(0x1ea)](_0x4ce2df,_0x53e356,_0x5b740a,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x5cea5d(0x22b)](),origin:origin=null,ttl:ttl=null}={}){const _0x65efdb=_0x5cea5d;this['actions'][_0x65efdb(0xe5)]({'action':_0x65efdb(0x1ea),'args':[_0x4ce2df,_0x53e356,_0x5b740a,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x188766,_0x3969f2,_0x50e3bd,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x5cea5d(0x22b)](),origin:origin=null,ttl:ttl=null}={}){const _0x4ae995=_0x5cea5d;this[_0x4ae995(0xf6)]['push']({'action':'patch','args':[_0x188766,_0x3969f2,_0x50e3bd,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x5cea5d(0x1a5)](_0x434802,_0x21b7f9,_0x56ba86,{version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x2d7d67=_0x5cea5d;this['actions'][_0x2d7d67(0xe5)]({'action':_0x2d7d67(0x1a5),'args':[_0x434802,_0x21b7f9,_0x56ba86,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x5cea5d(0x22e)](_0x29c2b3,_0xb6bcb8,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x5cea5d(0x22b)](),origin:origin=null}={}){const _0x43b0aa=_0x5cea5d;this['actions'][_0x43b0aa(0xe5)]({'action':_0x43b0aa(0x22e),'args':[_0x29c2b3,_0xb6bcb8,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x5cea5d(0x1ca)](_0x83625d,_0x3bfabe,_0x59d523){const _0x472c2c=_0x5cea5d;this[_0x472c2c(0xf6)][_0x472c2c(0xe5)]({'action':_0x472c2c(0x1ca),'args':[_0x83625d,_0x3bfabe,_0x59d523]});}['clearTTL'](_0xf2058f,_0x3f6395){const _0x51ac63=_0x5cea5d;this[_0x51ac63(0xf6)][_0x51ac63(0xe5)]({'action':'clearTTL','args':[_0xf2058f,_0x3f6395]});}[_0x5cea5d(0x185)](){const _0x273674=_0x5cea5d;if(this['_closed'])return;for(const _0x33d928 of this[_0x273674(0x1c8)]){try{_0x33d928();}catch{}}this['okdb']['events'][_0x273674(0x24a)](_0x33ae3a[_0x273674(0x1aa)],{'id':this['id']}),this[_0x273674(0xf6)]=[],this['_closeReadTransaction'](),this[_0x273674(0x1e2)]=!![];}async[_0x5cea5d(0x14d)](){const _0x4d9c03=_0x5cea5d;if(this['_closed'])throw new Error(_0x4d9c03(0xc5));const _0x590795={'id':this['id'],'timestamp':Date[_0x4d9c03(0x22b)](),'actions':this[_0x4d9c03(0xf6)]};this[_0x4d9c03(0xfc)][_0x4d9c03(0x1cc)][_0x4d9c03(0x24a)](_0x33ae3a[_0x4d9c03(0xe3)],_0x590795);try{const _0xfc3706=_0x485dc6[_0x4d9c03(0x219)]?_0x485dc6[_0x4d9c03(0x22b)]():0x0;await this[_0x4d9c03(0xfc)][_0x4d9c03(0x1ff)]['transaction'](()=>{const _0x47ae6d=_0x4d9c03;for(const _0xd33550 of this['actions']){const _0x30121b=this[_0x47ae6d(0xfc)]['_'+_0xd33550['action']];if(typeof _0x30121b!==_0x47ae6d(0x1eb))throw new Error('Unknown\x20transaction\x20action:\x20'+_0xd33550[_0x47ae6d(0x233)]);_0x30121b[_0x47ae6d(0x108)](this[_0x47ae6d(0xfc)],this,..._0xd33550[_0x47ae6d(0xdc)]);}}),_0x485dc6[_0x4d9c03(0x219)]&&_0x485dc6[_0x4d9c03(0x1f3)](_0x4d9c03(0x166),_0x485dc6[_0x4d9c03(0x22b)]()-_0xfc3706,(this[_0x4d9c03(0xfc)][_0x4d9c03(0x1a9)]??'?')+'\x20actions='+this[_0x4d9c03(0xf6)][_0x4d9c03(0x1c0)]);}catch(_0xa6b446){for(const _0x22cb72 of this[_0x4d9c03(0x1c8)]){try{_0x22cb72();}catch{}}this[_0x4d9c03(0x150)](),this[_0x4d9c03(0x1e2)]=!![];if(_0xa6b446 instanceof _0x9db040)throw _0xa6b446;const _0x40280b={'cause':_0xa6b446,'env':this[_0x4d9c03(0xfc)]?.[_0x4d9c03(0x1a9)],'envPath':this[_0x4d9c03(0xfc)]?.[_0x4d9c03(0xbe)],'pid':process['pid'],'txnId':this['id'],'actionCount':this[_0x4d9c03(0xf6)]['length'],'actions':_0x22a592(this['actions']),'nativeCode':_0xa6b446?.[_0x4d9c03(0xd4)],'nativeName':_0xa6b446?.['name']};try{this['okdb']?.[_0x4d9c03(0x17a)]?.['error']?.(_0x4d9c03(0x1f7),{'env':_0x40280b['env'],'envPath':_0x40280b[_0x4d9c03(0xca)],'pid':_0x40280b[_0x4d9c03(0x232)],'txnId':_0x40280b[_0x4d9c03(0x215)],'actionCount':_0x40280b[_0x4d9c03(0xf9)],'actions':_0x40280b[_0x4d9c03(0xf6)],'nativeCode':_0x40280b['nativeCode'],'error':_0xa6b446?.['message'],'stack':_0xa6b446?.['stack']});}catch{}throw new _0x9db040(_0xa6b446?.[_0x4d9c03(0x1c5)]||_0x4d9c03(0x11c),'TXN_ERROR',_0x40280b);}this[_0x4d9c03(0xfc)][_0x4d9c03(0x1cc)][_0x4d9c03(0x24a)](_0x33ae3a[_0x4d9c03(0x139)],_0x590795);for(const _0x39df3c of this[_0x4d9c03(0x13c)]){try{await _0x39df3c();}catch{}}this['actions']=[],this['_closeReadTransaction'](),this[_0x4d9c03(0x1e2)]=!![];}static[_0x5cea5d(0x242)](_0x7d4e64){const _0x1ba2ec=_0x5cea5d;return Object['freeze']({'id':_0x7d4e64['id'],'put':_0x7d4e64[_0x1ba2ec(0x229)][_0x1ba2ec(0x1b8)](_0x7d4e64),'update':_0x7d4e64['update'][_0x1ba2ec(0x1b8)](_0x7d4e64),'patch':_0x7d4e64[_0x1ba2ec(0x168)][_0x1ba2ec(0x1b8)](_0x7d4e64),'create':_0x7d4e64[_0x1ba2ec(0x1a5)][_0x1ba2ec(0x1b8)](_0x7d4e64),'remove':_0x7d4e64[_0x1ba2ec(0x22e)][_0x1ba2ec(0x1b8)](_0x7d4e64),'setTTL':_0x7d4e64[_0x1ba2ec(0x1ca)][_0x1ba2ec(0x1b8)](_0x7d4e64),'clearTTL':_0x7d4e64['clearTTL'][_0x1ba2ec(0x1b8)](_0x7d4e64),'commit':_0x7d4e64[_0x1ba2ec(0x14d)][_0x1ba2ec(0x1b8)](_0x7d4e64),'rollback':_0x7d4e64['rollback'][_0x1ba2ec(0x1b8)](_0x7d4e64),'get':_0x7d4e64[_0x1ba2ec(0x178)][_0x1ba2ec(0x1b8)](_0x7d4e64),'getEntry':_0x7d4e64[_0x1ba2ec(0x203)][_0x1ba2ec(0x1b8)](_0x7d4e64),'getMany':_0x7d4e64['getMany'][_0x1ba2ec(0x1b8)](_0x7d4e64),'getRange':_0x7d4e64[_0x1ba2ec(0x253)]['bind'](_0x7d4e64),'getValues':_0x7d4e64[_0x1ba2ec(0x1c9)]['bind'](_0x7d4e64),'getKeys':_0x7d4e64[_0x1ba2ec(0x226)][_0x1ba2ec(0x1b8)](_0x7d4e64),'byIndex':_0x7d4e64[_0x1ba2ec(0x121)]['bind'](_0x7d4e64),'query':_0x7d4e64[_0x1ba2ec(0xfa)][_0x1ba2ec(0x1b8)](_0x7d4e64),'getClock':_0x7d4e64[_0x1ba2ec(0x237)][_0x1ba2ec(0x1b8)](_0x7d4e64),'getCount':_0x7d4e64[_0x1ba2ec(0xd8)][_0x1ba2ec(0x1b8)](_0x7d4e64),'read':_0x7d4e64,'raw':_0x7d4e64});}static['applyOps'](_0x185629,_0x49a023=[]){const _0x99fd79=_0x5cea5d;if(!Array[_0x99fd79(0x1b3)](_0x49a023))throw new _0x9db040(_0x99fd79(0x20d),_0x99fd79(0x231));for(const _0x26fd3f of _0x49a023){if(Array[_0x99fd79(0x1b3)](_0x26fd3f)){const [_0x209967,..._0x5e71fe]=_0x26fd3f;if(typeof _0x185629[_0x209967]!==_0x99fd79(0x1eb))throw new _0x9db040(_0x99fd79(0x11b)+_0x209967,_0x99fd79(0xd2),{'action':_0x209967});_0x185629[_0x209967](..._0x5e71fe);continue;}if(!_0x26fd3f||typeof _0x26fd3f!==_0x99fd79(0x21d))throw new _0x9db040(_0x99fd79(0x1bc),'TXN_INVALID_OP');const {action:_0x48250d}=_0x26fd3f;if(typeof _0x48250d!==_0x99fd79(0x250)||typeof _0x185629[_0x48250d]!==_0x99fd79(0x1eb))throw new _0x9db040(_0x99fd79(0x11b)+_0x48250d,_0x99fd79(0xd2),{'action':_0x48250d});switch(_0x48250d){case _0x99fd79(0x229):case _0x99fd79(0x1ea):case _0x99fd79(0x1a5):_0x185629[_0x48250d](_0x26fd3f[_0x99fd79(0x1ee)],_0x26fd3f['key'],_0x26fd3f['value'],{..._0x26fd3f[_0x99fd79(0x21b)],'ttl':_0x26fd3f['ttl']??_0x26fd3f[_0x99fd79(0x21b)]?.[_0x99fd79(0x162)]??null});break;case _0x99fd79(0x168):_0x185629[_0x99fd79(0x168)](_0x26fd3f['type'],_0x26fd3f['key'],_0x26fd3f[_0x99fd79(0x168)],{..._0x26fd3f[_0x99fd79(0x21b)],'ttl':_0x26fd3f[_0x99fd79(0x162)]??_0x26fd3f['options']?.[_0x99fd79(0x162)]??null});break;case _0x99fd79(0x22e):_0x185629[_0x99fd79(0x22e)](_0x26fd3f[_0x99fd79(0x1ee)],_0x26fd3f['key'],_0x26fd3f[_0x99fd79(0x21b)]||{});break;case _0x99fd79(0x1ca):_0x185629[_0x99fd79(0x1ca)](_0x26fd3f[_0x99fd79(0x1ee)],_0x26fd3f[_0x99fd79(0x1a8)],_0x26fd3f[_0x99fd79(0x162)]);break;case'clearTTL':_0x185629[_0x99fd79(0x240)](_0x26fd3f[_0x99fd79(0x1ee)],_0x26fd3f[_0x99fd79(0x1a8)]);break;default:throw new _0x9db040(_0x99fd79(0x1a3)+_0x48250d,'TXN_INVALID_ACTION',{'action':_0x48250d});}}}static async[_0x5cea5d(0x16c)](_0x44b5fe,_0xe3758f,_0x4aeed9={}){const _0x1fd784=_0x5cea5d,_0x3a0aab=new _0x32adb6(_0x44b5fe,_0x4aeed9),_0x2aec57=_0x32adb6[_0x1fd784(0x242)](_0x3a0aab);try{typeof _0xe3758f==='function'?await _0xe3758f(_0x2aec57):_0x32adb6[_0x1fd784(0x13a)](_0x3a0aab,_0xe3758f||[]);const _0x16ebe6=_0x3a0aab[_0x1fd784(0xf6)][_0x1fd784(0x1c0)];return await _0x3a0aab[_0x1fd784(0x14d)](),{'id':_0x3a0aab['id'],'actions':_0x16ebe6};}catch(_0x211c2a){try{_0x3a0aab[_0x1fd784(0x185)]();}catch(_0x57df44){}throw _0x211c2a;}}}return okdbTransaction=_0x32adb6,okdbTransaction;}var okdbFunctionsFacades,hasRequiredOkdbFunctionsFacades;function requireOkdbFunctionsFacades(){if(hasRequiredOkdbFunctionsFacades)return okdbFunctionsFacades;hasRequiredOkdbFunctionsFacades=0x1;const _0x3825a3=requireOkdbTransaction();function _0x19a06a(_0x2002c6){const _0x4e1d3c=_0x500b;return{'transaction':typeof _0x2002c6[_0x4e1d3c(0x24b)]==='function'?_0x2002c6[_0x4e1d3c(0x24b)][_0x4e1d3c(0x1b8)](_0x2002c6):_0x3c31a9=>new _0x3825a3(_0x2002c6,_0x3c31a9),'txn':typeof _0x2002c6[_0x4e1d3c(0x254)]===_0x4e1d3c(0x1eb)?_0x2002c6[_0x4e1d3c(0x254)][_0x4e1d3c(0x1b8)](_0x2002c6):(_0x39f7d8,_0xacd3c)=>_0x3825a3[_0x4e1d3c(0x16c)](_0x2002c6,_0x39f7d8,_0xacd3c)};}function _0x26fc1a(_0x5a1da7){const _0x499571=_0x500b;return{'name':_0x5a1da7[_0x499571(0x1a9)],..._0x19a06a(_0x5a1da7),'put':_0x5a1da7['put'][_0x499571(0x1b8)](_0x5a1da7),'update':_0x5a1da7['update']['bind'](_0x5a1da7),'patch':_0x5a1da7[_0x499571(0x168)][_0x499571(0x1b8)](_0x5a1da7),'create':_0x5a1da7[_0x499571(0x1a5)]['bind'](_0x5a1da7),'remove':_0x5a1da7[_0x499571(0x22e)][_0x499571(0x1b8)](_0x5a1da7),'get':_0x5a1da7[_0x499571(0x178)][_0x499571(0x1b8)](_0x5a1da7),'getMany':_0x5a1da7['getMany']['bind'](_0x5a1da7),'getEntry':_0x5a1da7['getEntry'][_0x499571(0x1b8)](_0x5a1da7),'getRange':_0x5a1da7[_0x499571(0x253)][_0x499571(0x1b8)](_0x5a1da7),'getValues':_0x5a1da7[_0x499571(0x1c9)][_0x499571(0x1b8)](_0x5a1da7),'getKeys':_0x5a1da7[_0x499571(0x226)][_0x499571(0x1b8)](_0x5a1da7),'getCount':_0x5a1da7['getCount'][_0x499571(0x1b8)](_0x5a1da7),'getByPrefix':_0x5a1da7[_0x499571(0x1f8)][_0x499571(0x1b8)](_0x5a1da7),'getIndex':_0x5a1da7[_0x499571(0x117)]['bind'](_0x5a1da7),'byIndex':_0x5a1da7['byIndex']['bind'](_0x5a1da7),'query':_0x5a1da7[_0x499571(0xfa)][_0x499571(0x1b8)](_0x5a1da7),'geoQuery':_0x5a1da7[_0x499571(0x244)][_0x499571(0x1b8)](_0x5a1da7),'ftsQuery':_0x5a1da7[_0x499571(0x13e)][_0x499571(0x1b8)](_0x5a1da7),'setTTL':_0x5a1da7[_0x499571(0x1ca)]['bind'](_0x5a1da7),'getTTL':_0x5a1da7[_0x499571(0x12b)][_0x499571(0x1b8)](_0x5a1da7),'clearTTL':_0x5a1da7[_0x499571(0x240)][_0x499571(0x1b8)](_0x5a1da7),'sweepExpiredTTL':_0x5a1da7['sweepExpiredTTL']['bind'](_0x5a1da7),'listTTL':_0x5a1da7[_0x499571(0xe4)][_0x499571(0x1b8)](_0x5a1da7),'ttlStats':_0x5a1da7[_0x499571(0x19f)][_0x499571(0x1b8)](_0x5a1da7),'setDefaultTTL':_0x5a1da7[_0x499571(0x184)][_0x499571(0x1b8)](_0x5a1da7),'getDefaultTTL':_0x5a1da7[_0x499571(0xc2)][_0x499571(0x1b8)](_0x5a1da7),'clearDefaultTTL':_0x5a1da7[_0x499571(0x19c)]['bind'](_0x5a1da7),'registerType':_0x5a1da7[_0x499571(0xe7)][_0x499571(0x1b8)](_0x5a1da7),'ensureType':_0x5a1da7[_0x499571(0x216)][_0x499571(0x1b8)](_0x5a1da7),'hasType':_0x5a1da7[_0x499571(0x113)]['bind'](_0x5a1da7),'dropType':_0x5a1da7[_0x499571(0x14b)][_0x499571(0x1b8)](_0x5a1da7),'registerIndex':_0x5a1da7[_0x499571(0x206)][_0x499571(0x1b8)](_0x5a1da7),'hasIndex':_0x5a1da7[_0x499571(0x15d)][_0x499571(0x1b8)](_0x5a1da7),'dropIndex':_0x5a1da7[_0x499571(0x23f)][_0x499571(0x1b8)](_0x5a1da7),'resetIndex':_0x5a1da7['resetIndex'][_0x499571(0x1b8)](_0x5a1da7),'indexReady':_0x5a1da7[_0x499571(0x1f5)][_0x499571(0x1b8)](_0x5a1da7),'getIndexStatus':_0x5a1da7[_0x499571(0x13b)][_0x499571(0x1b8)](_0x5a1da7),'getClock':_0x5a1da7[_0x499571(0x237)][_0x499571(0x1b8)](_0x5a1da7),'getChanges':_0x5a1da7['getChanges'][_0x499571(0x1b8)](_0x5a1da7),'count':_0x5a1da7[_0x499571(0xd9)]['bind'](_0x5a1da7),'range':_0x5a1da7[_0x499571(0x1b4)][_0x499571(0x1b8)](_0x5a1da7),'now':_0x5a1da7[_0x499571(0x22b)][_0x499571(0x1b8)](_0x5a1da7)};}function _0x1aa964(_0x2e705b){const _0x129ad2=_0x500b;if(!_0x2e705b)return null;const _0x9374d2={};for(const _0x13c22f of[_0x129ad2(0x1ec),'getJob',_0x129ad2(0xbc),_0x129ad2(0x221),'removeJob',_0x129ad2(0x218),'getBucket',_0x129ad2(0x12d)]){if(typeof _0x2e705b[_0x13c22f]===_0x129ad2(0x1eb))_0x9374d2[_0x13c22f]=_0x2e705b[_0x13c22f][_0x129ad2(0x1b8)](_0x2e705b);}return Object[_0x129ad2(0x189)](_0x9374d2)[_0x129ad2(0x1c0)]?_0x9374d2:null;}function _0x3c408c(_0x1823d9){const _0x2c15d5=_0x500b;if(!_0x1823d9)return null;const _0x21e6d9={};for(const _0x23c2a9 of[_0x2c15d5(0xf0),_0x2c15d5(0x214),_0x2c15d5(0x22e),'get',_0x2c15d5(0xbc),_0x2c15d5(0xbf)]){if(typeof _0x1823d9[_0x23c2a9]==='function')_0x21e6d9[_0x23c2a9]=_0x1823d9[_0x23c2a9][_0x2c15d5(0x1b8)](_0x1823d9);}return Object[_0x2c15d5(0x189)](_0x21e6d9)[_0x2c15d5(0x1c0)]?_0x21e6d9:null;}function _0x14ee9a(_0x387c44){const _0x3a872c=_0x500b;return{'env':_0x387c44[_0x3a872c(0x1c6)][_0x3a872c(0x1b8)](_0x387c44),'createEnvironment':_0x387c44[_0x3a872c(0x249)][_0x3a872c(0x1b8)](_0x387c44),'removeEnvironment':_0x387c44[_0x3a872c(0x238)][_0x3a872c(0x1b8)](_0x387c44),'info':_0x387c44[_0x3a872c(0xda)],..._0x19a06a(_0x387c44),'put':_0x387c44[_0x3a872c(0x229)][_0x3a872c(0x1b8)](_0x387c44),'update':_0x387c44['update'][_0x3a872c(0x1b8)](_0x387c44),'patch':_0x387c44[_0x3a872c(0x168)]['bind'](_0x387c44),'create':_0x387c44['create']['bind'](_0x387c44),'remove':_0x387c44[_0x3a872c(0x22e)][_0x3a872c(0x1b8)](_0x387c44),'get':_0x387c44['get'][_0x3a872c(0x1b8)](_0x387c44),'getMany':_0x387c44[_0x3a872c(0x187)][_0x3a872c(0x1b8)](_0x387c44),'getEntry':_0x387c44['getEntry']['bind'](_0x387c44),'getRange':_0x387c44[_0x3a872c(0x253)]['bind'](_0x387c44),'getValues':_0x387c44[_0x3a872c(0x1c9)]['bind'](_0x387c44),'getKeys':_0x387c44['getKeys']['bind'](_0x387c44),'getCount':_0x387c44[_0x3a872c(0xd8)][_0x3a872c(0x1b8)](_0x387c44),'getByPrefix':_0x387c44['getByPrefix'][_0x3a872c(0x1b8)](_0x387c44),'getIndex':_0x387c44[_0x3a872c(0x117)][_0x3a872c(0x1b8)](_0x387c44),'byIndex':_0x387c44[_0x3a872c(0x121)]['bind'](_0x387c44),'query':_0x387c44[_0x3a872c(0xfa)][_0x3a872c(0x1b8)](_0x387c44),'setTTL':_0x387c44['setTTL'][_0x3a872c(0x1b8)](_0x387c44),'getTTL':_0x387c44[_0x3a872c(0x12b)][_0x3a872c(0x1b8)](_0x387c44),'clearTTL':_0x387c44[_0x3a872c(0x240)][_0x3a872c(0x1b8)](_0x387c44),'sweepExpiredTTL':_0x387c44['sweepExpiredTTL'][_0x3a872c(0x1b8)](_0x387c44),'listTTL':_0x387c44[_0x3a872c(0xe4)]['bind'](_0x387c44),'ttlStats':_0x387c44[_0x3a872c(0x19f)][_0x3a872c(0x1b8)](_0x387c44),'setDefaultTTL':_0x387c44[_0x3a872c(0x184)][_0x3a872c(0x1b8)](_0x387c44),'getDefaultTTL':_0x387c44['getDefaultTTL'][_0x3a872c(0x1b8)](_0x387c44),'clearDefaultTTL':_0x387c44['clearDefaultTTL']['bind'](_0x387c44),'ensureType':_0x387c44[_0x3a872c(0x216)]['bind'](_0x387c44),'registerType':_0x387c44[_0x3a872c(0xe7)][_0x3a872c(0x1b8)](_0x387c44),'hasType':_0x387c44[_0x3a872c(0x113)][_0x3a872c(0x1b8)](_0x387c44),'dropType':_0x387c44[_0x3a872c(0x14b)][_0x3a872c(0x1b8)](_0x387c44),'registerIndex':_0x387c44[_0x3a872c(0x206)][_0x3a872c(0x1b8)](_0x387c44),'hasIndex':_0x387c44[_0x3a872c(0x15d)][_0x3a872c(0x1b8)](_0x387c44),'dropIndex':_0x387c44['dropIndex'][_0x3a872c(0x1b8)](_0x387c44),'resetIndex':_0x387c44[_0x3a872c(0xdd)][_0x3a872c(0x1b8)](_0x387c44),'indexReady':_0x387c44[_0x3a872c(0x1f5)][_0x3a872c(0x1b8)](_0x387c44),'getIndexStatus':_0x387c44[_0x3a872c(0x13b)]['bind'](_0x387c44),'getClock':_0x387c44['getClock'][_0x3a872c(0x1b8)](_0x387c44),'getChanges':_0x387c44[_0x3a872c(0xd3)][_0x3a872c(0x1b8)](_0x387c44),'queue':_0x387c44[_0x3a872c(0x118)],'files':_0x387c44['files']};}return okdbFunctionsFacades={'createEnvFacade':_0x26fc1a,'createQueueFacade':_0x1aa964,'createFilesFacade':_0x3c408c,'createGlobalFacade':_0x14ee9a},okdbFunctionsFacades;}var okdbFunctionsDryrun,hasRequiredOkdbFunctionsDryrun;function requireOkdbFunctionsDryrun(){const _0x1ec999=_0x5ad382;if(hasRequiredOkdbFunctionsDryrun)return okdbFunctionsDryrun;hasRequiredOkdbFunctionsDryrun=0x1;const _0x30fabd=new Set([_0x1ec999(0x229),_0x1ec999(0x168),'create',_0x1ec999(0x22e),_0x1ec999(0x1ea),_0x1ec999(0x1ca),'clearTTL',_0x1ec999(0x10c),'setDefaultTTL',_0x1ec999(0x19c),_0x1ec999(0x14b),_0x1ec999(0x23f),_0x1ec999(0xdd)]),_0x49ac2e=new Set(['enqueue',_0x1ec999(0x221),_0x1ec999(0x1c2),_0x1ec999(0x218)]),_0x4c820b=new Set([_0x1ec999(0xf0),'remove']);function _0x301d5b(_0x53b067,_0x5978af){const _0x4f0422=_0x1ec999;if(_0x53b067===_0x4f0422(0x1c6)||_0x53b067==='global')return _0x30fabd[_0x4f0422(0xff)](_0x5978af);if(_0x53b067===_0x4f0422(0x118))return _0x49ac2e[_0x4f0422(0xff)](_0x5978af);if(_0x53b067===_0x4f0422(0x255))return _0x4c820b[_0x4f0422(0xff)](_0x5978af);return![];}function _0xd66f7(_0x27c445,_0x290f06,_0x15f61e,_0x2b924b){if(!_0x27c445)return _0x27c445;return new Proxy(_0x27c445,{'get'(_0x243253,_0x47c824,_0x58c5bd){const _0x1d4c64=_0x500b,_0x43d2b0=Reflect[_0x1d4c64(0x178)](_0x243253,_0x47c824,_0x58c5bd);if(typeof _0x43d2b0!==_0x1d4c64(0x1eb))return _0x43d2b0;if(!_0x301d5b(_0x290f06,_0x47c824))return _0x43d2b0[_0x1d4c64(0x1b8)](_0x243253);return function(..._0x22ee3c){return _0x2b924b['push']({'scope':_0x290f06,'method':_0x47c824,'envName':_0x15f61e,'args':_0x22ee3c}),null;};}});}function _0x135c07(_0x38e2d2,_0x21fb61,_0x655f15,_0x2a5fb4){const _0x36b9d3={};for(const _0x10f17e of _0x655f15){_0x36b9d3[_0x10f17e]=(..._0x420c34)=>{return _0x301d5b(_0x38e2d2,_0x10f17e)&&_0x2a5fb4['push']({'scope':_0x38e2d2,'method':_0x10f17e,'envName':_0x21fb61,'args':_0x420c34}),null;};}return _0x36b9d3;}return okdbFunctionsDryrun={'isWriteMethod':_0x301d5b,'wrapForDryRun':_0xd66f7,'syntheticDryRunFacade':_0x135c07,'ENV_WRITE_METHODS':_0x30fabd,'QUEUE_WRITE_METHODS':_0x49ac2e,'FILES_WRITE_METHODS':_0x4c820b},okdbFunctionsDryrun;}var okdbFunctionsContext,hasRequiredOkdbFunctionsContext;function _0x500b(_0x6aea46,_0x3700d6){_0x6aea46=_0x6aea46-0xbc;const _0x7357ed=_0x7357();let _0x500bd2=_0x7357ed[_0x6aea46];return _0x500bd2;}function requireOkdbFunctionsContext(){const _0xf18ecf=_0x5ad382;if(hasRequiredOkdbFunctionsContext)return okdbFunctionsContext;hasRequiredOkdbFunctionsContext=0x1;const {createEnvFacade:_0x24beb,createQueueFacade:_0x2a3130,createFilesFacade:_0x1fcf6a,createGlobalFacade:_0x513295}=requireOkdbFunctionsFacades(),{wrapForDryRun:_0x4297f0,syntheticDryRunFacade:_0x423bd9}=requireOkdbFunctionsDryrun(),_0x3fe283=['enqueue',_0xf18ecf(0xfe),'list',_0xf18ecf(0x221),_0xf18ecf(0x1c2),'addBucket',_0xf18ecf(0x1b1),_0xf18ecf(0x12d)],_0x1805e1=[_0xf18ecf(0xf0),'stream','remove','get',_0xf18ecf(0xbc),'getByPath'];function _0x86ffcc(_0x3e00dd,_0x36a968){const _0x1466b1=_0xf18ecf,_0x34b232=(_0xecf414,_0x52358a,_0x3bdb20)=>_0x36a968({'type':_0x1466b1(0x17a),'requestId':_0x3e00dd['requestId'],'runId':_0x3e00dd[_0x1466b1(0x213)],'entry':{'level':_0xecf414,'msg':_0x52358a,'context':_0x3bdb20,'ts':Date['now']()}}),_0xb42079=(_0x2bbd5e,_0x5e195a)=>_0x34b232('info',_0x2bbd5e,_0x5e195a);return _0xb42079[_0x1466b1(0xda)]=(_0x468a5c,_0x1475cc)=>_0x34b232(_0x1466b1(0xda),_0x468a5c,_0x1475cc),_0xb42079[_0x1466b1(0x146)]=(_0x5474d2,_0x3024d8)=>_0x34b232(_0x1466b1(0x146),_0x5474d2,_0x3024d8),_0xb42079['error']=(_0x3a2ca4,_0xdda806)=>_0x34b232('error',_0x3a2ca4,_0xdda806),_0xb42079[_0x1466b1(0x1fd)]=(_0x4db91f,_0x41eeab)=>_0x34b232(_0x1466b1(0x1fd),_0x4db91f,_0x41eeab),_0xb42079;}function _0x5f1cf3(_0x1e6eac,_0x35e0bf,_0x3e62ce){const _0x50bd73=_0xf18ecf;if(!_0x1e6eac)return null;return{'id':_0x1e6eac['id']??null,'type':_0x1e6eac[_0x50bd73(0x1ee)]??null,'tries':_0x1e6eac[_0x50bd73(0xde)]??null,'created':_0x1e6eac[_0x50bd73(0x111)]??null,'tags':_0x1e6eac[_0x50bd73(0x12c)]??null,'priority':_0x1e6eac['priority']??null,'bucket':_0x1e6eac['bucket']??null,'cron':_0x1e6eac[_0x50bd73(0x14a)]??null,'heartbeat'(){const _0x4235eb=_0x50bd73;_0x3e62ce({'type':_0x4235eb(0x124),'requestId':_0x35e0bf['requestId'],'runId':_0x35e0bf[_0x4235eb(0x213)],'jobId':_0x1e6eac['id'],'claimId':_0x1e6eac['claimId']});},'markProgress'(_0x204b2c){const _0x45df15=_0x50bd73;_0x3e62ce({'type':_0x45df15(0x1fe),'requestId':_0x35e0bf['requestId'],'runId':_0x35e0bf[_0x45df15(0x213)],'jobId':_0x1e6eac['id'],'claimId':_0x1e6eac[_0x45df15(0x1e8)],'message':_0x204b2c});}};}function _0x4e45f4(_0x2fad7b){const _0x4395db=_0xf18ecf;if(!_0x2fad7b)return null;return{'mode':_0x2fad7b['mode']??null,'sourceType':_0x2fad7b[_0x4395db(0x137)]??null,'sourceEnv':_0x2fad7b['sourceEnv']??null,'processor':_0x2fad7b[_0x4395db(0x142)]??null,'engineKey':_0x2fad7b[_0x4395db(0x153)]??null,'cursorKey':_0x2fad7b['cursorKey']??null};}function _0x285cae(_0x3cbb05){const _0x3bb437=_0xf18ecf;if(!_0x3cbb05)return null;return{'mode':_0x3cbb05[_0x3bb437(0x1b2)]??null,'sourceType':_0x3cbb05['sourceType']??null,'targetType':_0x3cbb05[_0x3bb437(0x1fa)]??null,'sourceEnv':_0x3cbb05[_0x3bb437(0x154)]??null,'targetEnv':_0x3cbb05['targetEnv']??null,'engineKey':_0x3cbb05['engineKey']??null,'cursorKey':_0x3cbb05[_0x3bb437(0x1d3)]??null};}function _0x559ddd(_0x2104e1,_0x379685,_0x1a5a09,_0x5c4eea=null,_0x41336d=null){const _0x45c906=_0xf18ecf,_0xe504a2={'runId':_0x379685[_0x45c906(0x213)],'scope':_0x45c906(0x1c6),'env':_0x379685['envName']??null,'functionName':_0x379685[_0x45c906(0x128)],'trigger':_0x379685[_0x45c906(0xda)]?.[_0x45c906(0x132)]??_0x45c906(0x24d),'requestedAt':_0x379685[_0x45c906(0xda)]?.[_0x45c906(0x140)]??Date[_0x45c906(0x22b)]()},_0x5137d1=_0x86ffcc(_0x379685,_0x1a5a09),_0x384de0=AbortSignal[_0x45c906(0x18d)](Math['max'](0x1,_0x379685['runtime']?.[_0x45c906(0x208)]??0x3e8)),_0x5a9dbf=_0x41336d?AbortSignal[_0x45c906(0x143)]([_0x384de0,_0x41336d]):_0x384de0,_0x5941be=_0x2104e1['env'](_0x379685[_0x45c906(0x15f)]),_0x595d33=_0x5c4eea?_0x4297f0(_0x5941be,_0x45c906(0x1c6),_0x379685[_0x45c906(0x15f)],_0x5c4eea):_0x5941be,_0x3d0623=_0x5c4eea?_0x5941be['queue']?_0x4297f0(_0x5941be['queue'],'queue',_0x379685['envName'],_0x5c4eea):_0x423bd9(_0x45c906(0x118),_0x379685['envName'],_0x3fe283,_0x5c4eea):_0x5941be[_0x45c906(0x118)],_0x4199e1=_0x5c4eea?_0x5941be[_0x45c906(0x255)]?_0x4297f0(_0x5941be[_0x45c906(0x255)],_0x45c906(0x255),_0x379685[_0x45c906(0x15f)],_0x5c4eea):_0x423bd9(_0x45c906(0x255),_0x379685[_0x45c906(0x15f)],_0x1805e1,_0x5c4eea):_0x5941be['files'],_0x40520f=_0x24beb(_0x595d33),_0x3cbde5=_0x2a3130(_0x3d0623),_0x3d97ca=_0x1fcf6a(_0x4199e1);if(_0x3cbde5)_0x40520f[_0x45c906(0x118)]=_0x3cbde5;if(_0x3d97ca)_0x40520f[_0x45c906(0x255)]=_0x3d97ca;const _0x32e335={'payload':_0x379685['payload']??null,'info':_0xe504a2,'signal':_0x5a9dbf,'log':_0x5137d1,'env':_0x40520f},_0x4ed72f=_0x5f1cf3(_0x379685['jobContext'],_0x379685,_0x1a5a09);if(_0x4ed72f)_0x32e335['job']=_0x4ed72f;const _0x93f7a7=_0x4e45f4(_0x379685['processorContext']);if(_0x93f7a7)_0x32e335[_0x45c906(0x142)]=_0x93f7a7;const _0x3c84a2=_0x285cae(_0x379685[_0x45c906(0xf5)]);if(_0x3c84a2)_0x32e335['materializer']=_0x3c84a2;if(_0x379685[_0x45c906(0x1e7)]){const _0x2ed1ed=_0x5c4eea?_0x4297f0(_0x2104e1,_0x45c906(0x107),null,_0x5c4eea):_0x2104e1;_0x32e335[_0x45c906(0xfc)]=_0x513295(_0x2ed1ed);}return _0x32e335;}return okdbFunctionsContext={'createExecutionContext':_0x559ddd,'createScriptLogger':_0x86ffcc},okdbFunctionsContext;}var hasRequiredOkdbFunctionsSandboxWorker;function requireOkdbFunctionsSandboxWorker(){const _0x1562bb=_0x5ad382;if(hasRequiredOkdbFunctionsSandboxWorker)return okdbFunctionsSandboxWorker$1;hasRequiredOkdbFunctionsSandboxWorker=0x1;const {parentPort:_0x322c25,workerData:_0x19b9b8}=require$$0$4;requireOkdbFatalReport()[_0x1562bb(0x174)](_0x1562bb(0x171));const _0x12fb60=require$$2,{compileFunctionExpression:_0x17bb29}=requireOkdbFunctionsSandbox(),{serializeError:_0x3c3384}=requireOkdbFunctionsIpc(),{createExecutionContext:_0x2f818c}=requireOkdbFunctionsContext(),_0x35e278=require$$6;let _0xaf9cc0=null,_0x41d5d3=![];const _0x23dc02=new Map(),_0x1b9558=new Map();function _0x11ee34(_0x207d87){const _0x4dcfdb=_0x1562bb;try{_0x322c25[_0x4dcfdb(0x1e6)](_0x207d87);}catch{}}function _0x1d949a(_0x3d8184){const _0x942c95=_0x1562bb,_0xa8501d=(_0x3d8184[_0x942c95(0x15f)]||'~system')+':'+_0x3d8184['functionName']+':'+_0x3d8184[_0x942c95(0x1d8)]+':'+_0x3d8184[_0x942c95(0x16e)];let _0x9cb490=_0x23dc02[_0x942c95(0x178)](_0xa8501d);return!_0x9cb490&&(_0x9cb490=_0x17bb29(_0x3d8184[_0x942c95(0x18f)],{'allowFetch':_0x3d8184[_0x942c95(0xbd)]?.[_0x942c95(0x18e)]!==![],'allowedFetchDomains':_0x3d8184[_0x942c95(0xbd)]?.[_0x942c95(0x102)],'filename':_0x3d8184[_0x942c95(0x128)]+_0x942c95(0x170)}),_0x23dc02[_0x942c95(0x230)](_0xa8501d,_0x9cb490)),_0x9cb490;}async function _0x5d0c4e(_0x170662){const _0x164997=_0x1562bb,_0x458c38=Date[_0x164997(0x22b)](),_0x1e4809=new AbortController();_0x1b9558[_0x164997(0x230)](_0x170662['requestId'],_0x1e4809);try{const _0x3ae552=_0x1d949a(_0x170662);if(_0x170662[_0x164997(0x15f)])await _0xaf9cc0[_0x164997(0xeb)](_0x170662[_0x164997(0x15f)]);const _0x1f2f8a=_0x170662[_0x164997(0x22c)]?[]:null,_0x357d41=_0x2f818c(_0xaf9cc0,_0x170662,_0x11ee34,_0x1f2f8a,_0x1e4809[_0x164997(0xf3)]),_0x154b81=await _0x3ae552(_0x357d41),_0x260b3c={'type':_0x164997(0x1db),'requestId':_0x170662['requestId'],'runId':_0x170662[_0x164997(0x213)],'result':_0x154b81,'meta':{'runnerId':_0x164997(0x22f)+process[_0x164997(0x232)],'startedAt':_0x458c38,'finishedAt':Date[_0x164997(0x22b)](),'durationMs':Date[_0x164997(0x22b)]()-_0x458c38}};if(_0x1f2f8a)_0x260b3c[_0x164997(0x1df)]=_0x1f2f8a;_0x11ee34(_0x260b3c);}catch(_0xb2d5fd){_0x11ee34({'type':'error','requestId':_0x170662[_0x164997(0x1f2)],'runId':_0x170662['runId'],'error':_0x3c3384(_0xb2d5fd),'meta':{'runnerId':_0x164997(0x22f)+process['pid'],'startedAt':_0x458c38,'finishedAt':Date['now'](),'durationMs':Date[_0x164997(0x22b)]()-_0x458c38}});}finally{_0x1b9558[_0x164997(0x209)](_0x170662[_0x164997(0x1f2)]);}}async function _0x1c7a28(){if(_0x41d5d3)return;_0x41d5d3=!![];try{await _0xaf9cc0?.['close']?.();}catch{}process['exit'](0x0);}async function _0x2a5052(){const _0x2f3fca=_0x1562bb,{rootPath:_0xd69fb9}=_0x19b9b8??{};if(!_0xd69fb9)throw new Error('sandbox\x20worker:\x20rootPath\x20missing\x20from\x20workerData');_0xaf9cc0=new _0x35e278(_0xd69fb9,{'engines':![],'processors':![],'compaction':![],'http':![],'auth':{'open':!![]},'processes':![]}),await _0xaf9cc0[_0x2f3fca(0x22d)]();const _0x2a717f=setInterval(()=>{const _0x2ba058=_0x2f3fca;if(_0x41d5d3)return;for(const [,_0x1f8641]of _0xaf9cc0[_0x2ba058(0x248)]){try{_0x1f8641[_0x2ba058(0x1ad)]?.();}catch{}}},0xc8);if(typeof _0x2a717f[_0x2f3fca(0x156)]==='function')_0x2a717f[_0x2f3fca(0x156)]();_0x322c25['on'](_0x2f3fca(0x1c5),_0x2d1ec8=>{const _0x11491b=_0x2f3fca;if(!_0x2d1ec8||typeof _0x2d1ec8!=='object')return;if(_0x2d1ec8[_0x11491b(0x1ee)]===_0x11491b(0x1ab))return void _0x1c7a28();if(_0x2d1ec8[_0x11491b(0x1ee)]===_0x11491b(0xc1)){_0x1b9558[_0x11491b(0x178)](_0x2d1ec8[_0x11491b(0x1f2)])?.[_0x11491b(0xdb)](new Error('cancelled\x20by\x20caller'));return;}_0x2d1ec8[_0x11491b(0x1ee)]===_0x11491b(0x16c)&&void _0x5d0c4e(_0x2d1ec8['job']);});const _0x5ca46b=Math[_0x2f3fca(0x224)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x1ba007=setInterval(()=>{const _0x2e7df2=_0x2f3fca;try{_0x11ee34({'type':_0x2e7df2(0x17f),'heapUsed':_0x12fb60[_0x2e7df2(0xcc)]()[_0x2e7df2(0x159)]});}catch{}},_0x5ca46b);if(typeof _0x1ba007[_0x2f3fca(0x156)]===_0x2f3fca(0x1eb))_0x1ba007[_0x2f3fca(0x156)]();_0x11ee34({'type':_0x2f3fca(0x21a)});}return _0x2a5052()['catch'](_0x34331b=>{const _0xe6973a=_0x1562bb;_0x11ee34({'type':'fatal','error':_0x3c3384(_0x34331b)}),process[_0xe6973a(0x24e)](0x1);}),okdbFunctionsSandboxWorker$1;}var okdbFunctionsSandboxWorkerExports=requireOkdbFunctionsSandboxWorker(),okdbFunctionsSandboxWorker=getDefaultExportFromCjs(okdbFunctionsSandboxWorkerExports);module['exports']=okdbFunctionsSandboxWorker;
|
|
1
|
+
'use strict';const _0x17c6d3=_0x1f6d;(function(_0x2a88c7,_0x241732){const _0x460817=_0x1f6d,_0x47d161=_0x2a88c7();while(!![]){try{const _0x469b2b=-parseInt(_0x460817(0x1d3))/0x1*(parseInt(_0x460817(0x1e5))/0x2)+parseInt(_0x460817(0x204))/0x3+-parseInt(_0x460817(0x2be))/0x4+-parseInt(_0x460817(0x268))/0x5*(parseInt(_0x460817(0x1c8))/0x6)+parseInt(_0x460817(0x230))/0x7*(-parseInt(_0x460817(0x27b))/0x8)+-parseInt(_0x460817(0x16d))/0x9+parseInt(_0x460817(0x2b3))/0xa;if(_0x469b2b===_0x241732)break;else _0x47d161['push'](_0x47d161['shift']());}catch(_0x5e2400){_0x47d161['push'](_0x47d161['shift']());}}}(_0x1cb3,0x81753));var require$$0$4=require(_0x17c6d3(0x212)),require$$2=require('v8'),require$$0=require(_0x17c6d3(0x15c)),require$$0$3=require(_0x17c6d3(0x235)),require$$0$1=require('lmdb'),require$$0$2=require(_0x17c6d3(0x2db)),require$$6=require(_0x17c6d3(0x1ee));function getDefaultExportFromCjs(_0x22a4ef){const _0x25a4a7=_0x17c6d3;return _0x22a4ef&&_0x22a4ef[_0x25a4a7(0x195)]&&Object[_0x25a4a7(0x173)][_0x25a4a7(0x2b1)][_0x25a4a7(0x19e)](_0x22a4ef,'default')?_0x22a4ef[_0x25a4a7(0x295)]:_0x22a4ef;}var okdbFunctionsSandboxWorker$1={},okdbFatalReport,hasRequiredOkdbFatalReport;function requireOkdbFatalReport(){if(hasRequiredOkdbFatalReport)return okdbFatalReport;hasRequiredOkdbFatalReport=0x1;function _0xeb7c68(_0x4db215){const _0x276e61=_0x1f6d;if(process.env.OKDB_FATAL_REPORT!=='1')return;try{if(!process[_0x276e61(0x1f5)])return;process[_0x276e61(0x1f5)]['reportOnFatalError']=!![];try{if(_0x276e61(0x2bd)in process[_0x276e61(0x1f5)])process[_0x276e61(0x1f5)][_0x276e61(0x2bd)]=process.env.OKDB_FATAL_REPORT_ENV!=='1';}catch{}if(process[_0x276e61(0x18e)]!==_0x276e61(0x1be))try{process[_0x276e61(0x1f5)]['reportOnSignal']=!![];if(typeof process['report']['signal']===_0x276e61(0x2a5))process[_0x276e61(0x1f5)][_0x276e61(0x2c5)]=_0x276e61(0x28f);}catch{}if(process.env.OKDB_REPORT_DIR)try{require('fs')[_0x276e61(0x20e)](process.env.OKDB_REPORT_DIR,{'recursive':!![]}),process['report'][_0x276e61(0x260)]=process.env.OKDB_REPORT_DIR;}catch{}try{process[_0x276e61(0x1f5)]['filename']='';}catch{}if(_0x4db215)process.env.OKDB_REPORT_TAG=String(_0x4db215);}catch{}}return okdbFatalReport={'enableFatalReport':_0xeb7c68},okdbFatalReport;}var okdbFunctionsSandbox,hasRequiredOkdbFunctionsSandbox;function requireOkdbFunctionsSandbox(){if(hasRequiredOkdbFunctionsSandbox)return okdbFunctionsSandbox;hasRequiredOkdbFunctionsSandbox=0x1;const _0x5045a5=require$$0;function _0x4094cc(_0x148ef7){const _0x5b9295=_0x1f6d,_0x532972=_0x148ef7==='*',_0x2c52e4=_0x532972?null:new Set(Array[_0x5b9295(0x266)](_0x148ef7)?_0x148ef7:[]);return function _0x11b153(_0x5e3770,_0x209bc3){const _0x284c39=_0x5b9295;if(!_0x532972){let _0x361ad2;try{const _0x215972=new URL(typeof _0x5e3770===_0x284c39(0x2a5)?_0x5e3770:_0x5e3770?.[_0x284c39(0x15a)]??String(_0x5e3770));_0x361ad2=_0x215972[_0x284c39(0x1a7)];}catch{const _0x276476=new Error('fetch\x20blocked:\x20invalid\x20URL');return _0x276476[_0x284c39(0x1dc)]=_0x284c39(0x208),Promise['reject'](_0x276476);}if(!_0x2c52e4[_0x284c39(0x17f)](_0x361ad2)){const _0x349096=new Error(_0x2c52e4['size']===0x0?_0x284c39(0x201):_0x284c39(0x1a0)+_0x361ad2+_0x284c39(0x1e7));return _0x349096[_0x284c39(0x1dc)]=_0x284c39(0x208),Promise[_0x284c39(0x17c)](_0x349096);}}return fetch(_0x5e3770,_0x209bc3);};}function _0xfa5f60(_0x16b6e3={}){const _0x502108=_0x1f6d,_0x9018c1=_0x16b6e3[_0x502108(0x197)]!==![],_0x25ac52=_0x16b6e3['allowedFetchDomains']??[],_0x390a27={'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[_0x502108(0x17a)]};return _0x9018c1&&typeof fetch==='function'&&(_0x390a27[_0x502108(0x284)]=_0x4094cc(_0x25ac52)),_0x390a27['globalThis']=_0x390a27,_0x390a27;}function _0x19b32a(_0x206165,_0x2c4e8f={}){const _0x412810=_0x1f6d,_0x2890fb=_0xfa5f60(_0x2c4e8f),_0xc8055e=_0x5045a5[_0x412810(0x238)](_0x2890fb,{'name':_0x412810(0x26c),'codeGeneration':{'strings':![],'wasm':![]}});let _0x3d5929;try{_0x3d5929=new _0x5045a5[(_0x412810(0x182))]('('+_0x206165+')',{'filename':_0x2c4e8f[_0x412810(0x25a)]??_0x412810(0x1a8)});}catch(_0x124cba){const _0x5d0444=new Error(_0x124cba?.['message']||_0x412810(0x21b));_0x5d0444['code']=_0x412810(0x29b),_0x5d0444[_0x412810(0x27e)]=_0x124cba;throw _0x5d0444;}let _0x3dd54f;try{_0x3dd54f=_0x3d5929[_0x412810(0x27d)](_0xc8055e,{'timeout':_0x2c4e8f[_0x412810(0x186)]??0x64});}catch(_0x471a7d){const _0x1c05a7=new Error(_0x471a7d?.[_0x412810(0x1a5)]||_0x412810(0x18b));_0x1c05a7[_0x412810(0x1dc)]=_0x412810(0x29b),_0x1c05a7[_0x412810(0x27e)]=_0x471a7d;throw _0x1c05a7;}if(typeof _0x3dd54f!==_0x412810(0x1af)){const _0x35c667=new Error('Function\x20script\x20must\x20evaluate\x20to\x20a\x20callable\x20function');_0x35c667['code']=_0x412810(0x1a2);throw _0x35c667;}return _0x3dd54f;}return okdbFunctionsSandbox={'createSandboxGlobals':_0xfa5f60,'compileFunctionExpression':_0x19b32a,'_buildRestrictedFetch':_0x4094cc},okdbFunctionsSandbox;}var okdbFunctionsIpc,hasRequiredOkdbFunctionsIpc;function _0x1cb3(){const _0x4b6fb4=['env:removed','hasIndex','createContext','unref','enqueue','total','ttlStats','_started','sourceEnv','DONE','OKDBForeignKeyError','OKDBIndexHasConsumersError','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','forEach','close','timeout','script','\x27,\x20cannot\x20map\x20to\x20\x27','ref:violation','result','sandbox\x20worker:\x20rootPath\x20missing\x20from\x20workerData','addBucket','disable','VERSION_MISMATCH','name','keys','events','trigger','Transaction\x20already\x20closed','\x20actions=','kind','queue','_admissionTimer','runId','_readViewExpired','\x20already\x20exists','filename','resetting','registerIndex',':useReadTransaction','getKeys','query','directory','OKDBSchemaCollectionError','asArray','INVALID_INDEX_KEY','envPath','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','isArray','error','95tTiBfL','commit','tags','info','okdb-function-sandbox','job_progress','bus:drain','openEnv','ttl:expired','registerType','remove','type:registered','iterator','global','map','index:progress','targetType','create','_timer','32GWHqId','system:drain','runInContext','cause','TXN_CLOSED','hasType','ftsQuery','getRange','targetKey','fetch','Cannot\x20set\x20enforce\x20schema\x20on\x20','max','ttl','Unsupported\x20transaction\x20action:\x20','OKDBSchemaValidationError','_closed','maxExtra','set','Unique\x20constraint\x20violated\x20on\x20','captureStackTrace','SIGSEGV','delete','Foreign\x20key\x20violation:\x20','txn\x20ops\x20must\x20be\x20an\x20array','unique:violation_resolved','starting','default','_range','label','license:removed','sandbox-','loop-lag','FUNCTION_SCRIPT_COMPILE_FAILED','Index\x20\x22','get','ms\x20max=','processorContext','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','true','OKDBInvalidValueError','getStats','requestedAt','string','ms\x20mean=','view:progress','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','FOREIGN_KEY_DELETE_RESTRICTED','join','started','args','runtime','processor','object','update','hasOwnProperty','TXN_ROLLBACK','24566720ZckQuk','getCount','sandbox','clearTTL','bucket','waiting','clearTtl','Cannot\x20delete\x20','index:drop','count','excludeEnv','1222032PSBftP','details','Version\x20mismatch\x20for\x20','registerFts','getValues','listBuckets','listTTL','signal','open','SCHEMA_VALIDATION_FAILED','done','system:bus_state_change','constructor','_report','dropIndex','dryRun','getEntry','_admissionStarted','options','slice','from','schema:set','run','createWriteFacade','sourceKey','cron','jobContext','emit','patch','node:perf_hooks',':txnRange','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','getIndex','dryRunActions','push','item:update','\x27\x20doesn\x27t\x20exist','mean','failures','next','type','url','updateJob','node:vm','stopping','last','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','TYPE_ALREADY_REGISTERED','license:activated','txn:end','fts:reset','removeJob','_assertOpen','bus:poke','postMessage','_log','actions','byIndex','schema:drop','concat','414855kaTKrX','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','allowedFetchDomains','rollback','cancelled\x20by\x20caller','materializer','prototype','READER_HELD_ACROSS_AWAIT','job_heartbeat','system:ready','INVALID_VALUE','mapError','stopped','crypto','\x20does\x20not\x20exist','reject','_undoHooks','references','has','geoQuery','\x27\x20on\x20type\x20\x27','Script','OKDBIndexAlreadyRegisteredError','system:poke','ready','compileTimeoutMs','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','requestId','getClock','reset','Function\x20script\x20failed\x20to\x20initialize','getByPrefix','priority','platform','TXN_INVALID_ACTION','byLabel','note','system:stopped','index:reset','put','__esModule','stringify','allowFetch','ttl:set','getHeapStatistics','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','unique:violation','getByPath','_startAdmission','call','key','fetch\x20blocked:\x20hostname\x20\x22','NOT_FOUND','FUNCTION_SCRIPT_INVALID_SHAPE','toFixed','fieldPath','message','lastTxnId','hostname','okdb-function.js','_txnIdAtSnapshot','materializerContext','resetFts','fts:registered','debug','freeze','function','fts:drop','transaction\x20commit\x20failed','halted','\x22\x20is\x20used\x20by:\x20','value','claimId','bus:type_drop','exports','_buckets','ensureType','return','dropType','getMany','payload','win32','_windowCbs','INDEX_ALREADY_REGISTERED','onUndo','length','sort','SCHEMA_COLLECTION_INVALID','dropSchema','UNIQUE_CONSTRAINT','ms\x20busy=','236838KpvBnR','functionName','sweepExpiredTTL','stack','setTTL','\x20which\x20does\x20not\x20exist','license:added','.okdb-function.js','upload','action','type:drop','555419smdhbp','okdb','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','applyOps','list','OKDBTypeNotRegisteredError','INVALID_PRIMARY_KEY','getChanges','exit','code','system:type_drop','sync:apply','index:registered','indexReady','_makeIterator','transaction','TXN_END','envName','2SzQsUa','Unknown\x20transaction\x20action:\x20','\x22\x20is\x20not\x20in\x20the\x20allowedFetchDomains\x20list','used_heap_size','reduce','tries','OKDBVersionMismatchError','\x22\x20on\x20\x22','setDefaultTTL','./okdb','stream','Array.from)\x20before\x20any\x20await.','txn:start','getDefaultTTL','enabled','system:clock_change','report','percentile','OKDBForeignKeyDeleteError','pid','txn','maxMs','SKIP','_doHooks','system:env_release','hash','getTTL','any','fetch\x20is\x20not\x20allowed\x20in\x20this\x20function\x20sandbox\x20(no\x20allowedFetchDomains\x20configured)','creating','OKDBAlreadyExistsError','1249728Hqqnka','_closeReadTransaction','shift','version','FETCH_NOT_ALLOWED','created','OKDBUniqueConstraintError','sourceType','\x27\x20is\x20already\x20registered','enable','mkdirSync','ALREADY_EXISTS','Unknown\x20OKDB\x20transaction\x20error','txnId','worker_threads','Invalid\x20primary\x20key\x20type:\x20','bind','now','dropping','TXN_INVALID_OP','timeoutMs','mode','item:create','Function\x20script\x20failed\x20to\x20compile','txn-commit','stats',':\x20expected\x20',':\x20key\x20[','OKDBNotFoundError','getIndexStatus','setLogger','OKDBError','unsafe','\x20documents\x20fail\x20validation','Type\x20\x27','files','useReadTransaction','TYPE_NOT_REGISTERED','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','readTransaction','dropFts','env','tolerant','warn','1200465zbTgrM','system:proc','clearDefaultTTL','TXN_ERROR','resetIndex','uuid'];_0x1cb3=function(){return _0x4b6fb4;};return _0x1cb3();}function requireOkdbFunctionsIpc(){if(hasRequiredOkdbFunctionsIpc)return okdbFunctionsIpc;hasRequiredOkdbFunctionsIpc=0x1;function _0x67e103(_0x15ecd0){const _0x31ed73=_0x1f6d;if(!_0x15ecd0)return null;return{'message':_0x15ecd0['message']||String(_0x15ecd0),'stack':_0x15ecd0[_0x31ed73(0x1cb)]||null,'code':_0x15ecd0[_0x31ed73(0x1dc)]||null,'details':_0x15ecd0[_0x31ed73(0x2bf)]||null};}function _0x4d6bfa(_0x41b8d0){const _0x353c6b=_0x1f6d;if(!_0x41b8d0)return new Error('Unknown\x20custom\x20function\x20error');const _0x51915a=new Error(_0x41b8d0[_0x353c6b(0x1a5)]||String(_0x41b8d0));if(_0x41b8d0[_0x353c6b(0x1cb)])_0x51915a[_0x353c6b(0x1cb)]=_0x41b8d0[_0x353c6b(0x1cb)];if(_0x41b8d0['code'])_0x51915a[_0x353c6b(0x1dc)]=_0x41b8d0['code'];if(_0x41b8d0['details'])_0x51915a[_0x353c6b(0x2bf)]=_0x41b8d0[_0x353c6b(0x2bf)];return _0x51915a;}return okdbFunctionsIpc={'serializeError':_0x67e103,'deserializeError':_0x4d6bfa},okdbFunctionsIpc;}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x2dc51b=_0x17c6d3;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x21997e={'PUT':'put','REMOVE':_0x2dc51b(0x272),'INDEX_DROP':_0x2dc51b(0x2cc),'INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x2dc51b(0x234),'TYPE_REGISTER':_0x2dc51b(0x271),'TYPE_DROP':_0x2dc51b(0x1bb),'FTS_REGISTER':_0x2dc51b(0x2c1),'FTS_DROP':_0x2dc51b(0x22c),'FTS_RESET':_0x2dc51b(0x1ab),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x2dc51b(0x1c5),'TTL_SET':'setTtl','TTL_CLEAR':_0x2dc51b(0x2b9)},_0x1873bf={'SYSTEM_READY':_0x2dc51b(0x176),'SYSTEM_STOPPED':_0x2dc51b(0x192),'SYSTEM_CLOCK_CHANGE':_0x2dc51b(0x1f4),'SYSTEM_POKE':_0x2dc51b(0x184),'SYSTEM_DRAIN':_0x2dc51b(0x27c),'SYSTEM_TYPE_DROP':_0x2dc51b(0x1dd),'SYSTEM_PROC':_0x2dc51b(0x231),'SYSTEM_BUS_STATE_CHANGE':_0x2dc51b(0x2c9),'ITEM_CREATE':_0x2dc51b(0x21a),'ITEM_UPDATE':_0x2dc51b(0x154),'ITEM_REMOVE':'item:remove','INDEX_RESET':_0x2dc51b(0x193),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x2dc51b(0x277),'VIEW_PROGRESS':_0x2dc51b(0x2a7),'INDEX_DROP':_0x2dc51b(0x2bb),'INDEX_REGISTERED':_0x2dc51b(0x1df),'FTS_REGISTERED':_0x2dc51b(0x1ac),'FTS_DROP':_0x2dc51b(0x1b0),'FTS_RESET':_0x2dc51b(0x163),'SCHEMA_SET':_0x2dc51b(0x2d3),'SCHEMA_DROP':_0x2dc51b(0x16b),'UNIQUE_VIOLATION':_0x2dc51b(0x19b),'UNIQUE_VIOLATION_RESOLVED':_0x2dc51b(0x293),'REF_VIOLATION':_0x2dc51b(0x248),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x2dc51b(0x1de),'TXN_START':_0x2dc51b(0x1f1),'TXN_END':_0x2dc51b(0x162),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x2dc51b(0x273),'TYPE_DROP':_0x2dc51b(0x1d2),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x2dc51b(0x236),'SYSTEM_ENV_RELEASE':_0x2dc51b(0x1fd),'TTL_EXPIRED':_0x2dc51b(0x270),'TTL_SET':_0x2dc51b(0x198),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x2dc51b(0x1ce),'LICENSE_ACTIVATED':_0x2dc51b(0x161),'LICENSE_REMOVED':_0x2dc51b(0x298)},_0x214a07={'CREATING':_0x2dc51b(0x202),'RESETTING':_0x2dc51b(0x25b),'READY':_0x2dc51b(0x185),'DROPPING':_0x2dc51b(0x216),'WAITING':_0x2dc51b(0x2b8)},_0xba0a9b={'CREATED':_0x2dc51b(0x209),'STARTING':_0x2dc51b(0x294),'STARTED':_0x2dc51b(0x2ab),'STOPPING':_0x2dc51b(0x15d),'STOPPED':'stopped'},_0x3f712f={'CREATING':_0x2dc51b(0x202),'READY':_0x2dc51b(0x185),'HALTED':_0x2dc51b(0x1b2),'STOPPED':_0x2dc51b(0x179),'RESETTING':_0x2dc51b(0x25b)},_0x7c07bb=Object['freeze']({'POKE':_0x2dc51b(0x166),'DRAIN':_0x2dc51b(0x26e),'TYPE_DROP':_0x2dc51b(0x1b6),'PROC':'bus:proc','ENV_RELEASE':'bus:env_release'});return okdbEnums={'BUS_EVENTS':_0x7c07bb,'CHANGE_ACTIONS':_0x21997e,'EVENTS':_0x1873bf,'INDEX_STATE':_0x214a07,'OKDB_STATE':_0xba0a9b,'VIEW_STATE':_0x3f712f},okdbEnums;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x2bc371 extends Error{constructor(_0x15d766,_0x1ed331,_0x57197b={}){const _0x258f87=_0x1f6d;super(_0x15d766),this[_0x258f87(0x24e)]=_0x258f87(0x223),this['code']=_0x1ed331,this['details']=_0x57197b,_0x57197b['cause']&&(this[_0x258f87(0x27e)]=_0x57197b[_0x258f87(0x27e)]),Error[_0x258f87(0x28e)](this,this[_0x258f87(0x2ca)]);}}class _0x529d04 extends _0x2bc371{constructor(_0x23934f,_0x43ba3e,_0x2f8a9b,_0x86a20e){const _0x3b7a82=_0x1f6d;super(_0x3b7a82(0x2c0)+_0x23934f+'@'+_0x43ba3e+_0x3b7a82(0x21e)+_0x2f8a9b+',\x20got\x20'+_0x86a20e,_0x3b7a82(0x24d),{'type':_0x23934f,'key':_0x43ba3e,'expectedVersion':_0x2f8a9b,'actualVersion':_0x86a20e}),this[_0x3b7a82(0x24e)]=_0x3b7a82(0x1eb);}}class _0x4aadb0 extends _0x2bc371{constructor(_0x53a264,_0x1cfe03){const _0x49a9ae=_0x1f6d;super(_0x53a264+'@'+_0x1cfe03+_0x49a9ae(0x17b),_0x49a9ae(0x1a1),{'type':_0x53a264,'key':_0x1cfe03}),this[_0x49a9ae(0x24e)]=_0x49a9ae(0x220);}}class _0x430b60 extends _0x2bc371{constructor(_0x4e8dbf,_0x4b5787){const _0x31d50b=_0x1f6d;super(_0x4e8dbf+'@'+_0x4b5787+_0x31d50b(0x259),_0x31d50b(0x20f),{'type':_0x4e8dbf,'key':_0x4b5787}),this['name']=_0x31d50b(0x203);}}class _0x311479 extends _0x2bc371{constructor(_0x3a8d19,_0x20c3e8){const _0x3fc4ea=_0x1f6d,_0x2efe62=typeof _0x20c3e8;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x3a8d19+'\x27:\x20'+_0x2efe62+_0x3fc4ea(0x2a0)+_0x20c3e8,_0x3fc4ea(0x263),{'index':_0x3a8d19,'key':_0x20c3e8,'keyType':_0x2efe62}),this['name']='OKDBInvalidIndexKeyError';}}class _0x5074c9 extends _0x2bc371{constructor(_0x35219f){const _0x436946=_0x1f6d,_0xa92e13=typeof _0x35219f;super(_0x436946(0x213)+_0xa92e13+_0x436946(0x242)+_0x35219f,_0x436946(0x1d9),{'key':_0x35219f,'keyType':_0xa92e13}),this[_0x436946(0x24e)]='OKDBInvalidPrimaryKeyError';}}class _0x2038aa extends _0x2bc371{constructor(_0x38f2f1){const _0x76de0e=_0x1f6d;super('Type\x20\x27'+_0x38f2f1+_0x76de0e(0x155),_0x76de0e(0x229),{'type':_0x38f2f1}),this[_0x76de0e(0x24e)]=_0x76de0e(0x1d8);}}class _0x5e507b extends _0x2bc371{constructor(_0x1287af){const _0x46cf46=_0x1f6d;super(_0x46cf46(0x226)+_0x1287af+'\x27\x20already\x20registered',_0x46cf46(0x160),{'type':_0x1287af}),this[_0x46cf46(0x24e)]='OKDBTypeAlreadyRegisteredError';}}class _0x5a0196 extends _0x2bc371{constructor(_0x428940,_0x13ba72){const _0x480f9b=_0x1f6d;super('Index\x20\x27'+_0x13ba72+_0x480f9b(0x181)+_0x428940+_0x480f9b(0x155),'INDEX_NOT_REGISTERED',{'type':_0x428940,'index':_0x13ba72}),this[_0x480f9b(0x24e)]='OKDBIndexNotRegisteredError';}}class _0x4b6d7b extends _0x2bc371{constructor(_0x10fa43,_0x55ab10){const _0x104d05=_0x1f6d;super('Index\x20\x27'+_0x55ab10+_0x104d05(0x181)+_0x10fa43+_0x104d05(0x20c),_0x104d05(0x1c0),{'type':_0x10fa43,'index':_0x55ab10}),this[_0x104d05(0x24e)]=_0x104d05(0x183);}}class _0x16bc73 extends _0x2bc371{constructor(_0xb32157,_0xdf0c21={}){const _0x701564=_0x1f6d;super(_0xb32157,_0x701564(0x177),_0xdf0c21),this['name']=_0x701564(0x2a2);}}class _0x24dbd8 extends _0x2bc371{constructor(_0x276ef9,_0x276365,_0x30faea,_0x3a780f,_0x4b1b3e){const _0x27b302=_0x1f6d;super(_0x27b302(0x28d)+_0x276ef9+'@'+_0x276365+_0x27b302(0x21f)+_0x30faea+']\x20already\x20maps\x20to\x20\x27'+_0x3a780f+_0x27b302(0x247)+_0x4b1b3e+'\x27',_0x27b302(0x1c6),{'type':_0x276ef9,'index':_0x276365,'indexKey':_0x30faea,'existingKey':_0x3a780f,'conflictingKey':_0x4b1b3e}),this[_0x27b302(0x24e)]=_0x27b302(0x20a);}}class _0x298c42 extends _0x2bc371{constructor(_0x526d40,_0x29742d,_0x38371f){const _0x42aad0=_0x1f6d;super('Schema\x20validation\x20failed\x20for\x20'+_0x526d40+'@'+_0x29742d,_0x42aad0(0x2c7),{'type':_0x526d40,'key':_0x29742d,'errors':_0x38371f}),this[_0x42aad0(0x24e)]=_0x42aad0(0x289),this['type']=_0x526d40,this['key']=_0x29742d,this['errors']=_0x38371f;}}class _0x5e0427 extends _0x2bc371{constructor(_0x1f6979,_0x4159a8){const _0x3c2af0=_0x1f6d;super(_0x3c2af0(0x285)+_0x1f6979+':\x20'+_0x4159a8[_0x3c2af0(0x1c2)]+_0x3c2af0(0x225),_0x3c2af0(0x1c4),{'type':_0x1f6979,'failures':_0x4159a8}),this[_0x3c2af0(0x24e)]=_0x3c2af0(0x261),this[_0x3c2af0(0x159)]=_0x1f6979,this[_0x3c2af0(0x157)]=_0x4159a8;}}class _0x5ab002 extends _0x2bc371{constructor(_0x1ec625,_0x10cd93,_0x2b23cf,_0x5a5f8d,_0x37c11e){const _0x27a5cc=_0x1f6d;super(_0x27a5cc(0x291)+_0x1ec625+'@'+_0x10cd93+'.'+_0x2b23cf+'\x20references\x20'+_0x5a5f8d+'@'+_0x37c11e+_0x27a5cc(0x1cd),'FOREIGN_KEY_VIOLATION',{'sourceType':_0x1ec625,'sourceKey':_0x10cd93,'fieldPath':_0x2b23cf,'targetType':_0x5a5f8d,'targetKey':_0x37c11e}),this[_0x27a5cc(0x24e)]=_0x27a5cc(0x240),this[_0x27a5cc(0x20b)]=_0x1ec625,this[_0x27a5cc(0x2d6)]=_0x10cd93,this[_0x27a5cc(0x1a4)]=_0x2b23cf,this[_0x27a5cc(0x278)]=_0x5a5f8d,this[_0x27a5cc(0x283)]=_0x37c11e;}}class _0x4d6868 extends _0x2bc371{constructor(_0x312650,_0x53e039,_0x31ce64){const _0x29e7c7=_0x1f6d;super(_0x29e7c7(0x2ba)+_0x312650+'@'+_0x53e039+':\x20'+_0x31ce64[_0x29e7c7(0x1c2)]+_0x29e7c7(0x2a8),_0x29e7c7(0x2a9),{'targetType':_0x312650,'targetKey':_0x53e039,'references':_0x31ce64}),this[_0x29e7c7(0x24e)]=_0x29e7c7(0x1f7),this[_0x29e7c7(0x278)]=_0x312650,this['targetKey']=_0x53e039,this[_0x29e7c7(0x17e)]=_0x31ce64;}}class _0x91733e extends _0x2bc371{constructor(_0x3f4023,_0x4a3b41,_0x6e757a){const _0x217989=_0x1f6d;super(_0x217989(0x29c)+_0x4a3b41+_0x217989(0x1ec)+_0x3f4023+_0x217989(0x1b3)+_0x6e757a[_0x217989(0x276)](_0x5604ab=>_0x5604ab[_0x217989(0x254)]+':'+_0x5604ab[_0x217989(0x24e)])['join'](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x3f4023,'index':_0x4a3b41,'usedBy':_0x6e757a}),this['name']=_0x217989(0x241);}}return okdbError={'OKDBError':_0x2bc371,'OKDBVersionMismatchError':_0x529d04,'OKDBNotFoundError':_0x4aadb0,'OKDBAlreadyExistsError':_0x430b60,'OKDBInvalidIndexKeyError':_0x311479,'OKDBInvalidPrimaryKeyError':_0x5074c9,'OKDBTypeNotRegisteredError':_0x2038aa,'OKDBTypeAlreadyRegisteredError':_0x5e507b,'OKDBIndexNotRegisteredError':_0x5a0196,'OKDBIndexAlreadyRegisteredError':_0x4b6d7b,'OKDBInvalidValueError':_0x16bc73,'OKDBUniqueConstraintError':_0x24dbd8,'OKDBSchemaValidationError':_0x298c42,'OKDBSchemaCollectionError':_0x5e0427,'OKDBForeignKeyError':_0x5ab002,'OKDBForeignKeyDeleteError':_0x4d6868,'OKDBIndexHasConsumersError':_0x91733e},okdbError;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x53dda5=_0x17c6d3;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x2f6ea8=require$$0$1,{OKDBError:_0x427f36}=requireOkdbError(),_0x1136ae={'value':null,'done':!![]};class _0x5d1851{constructor(_0x3d96be){const _0x2de17b=_0x1f6d;this[_0x2de17b(0x1e1)]=_0x3d96be;}get[_0x53dda5(0x23f)](){return _0x1136ae;}[Symbol[_0x53dda5(0x274)]](){return this['_makeIterator']();}[_0x53dda5(0x276)](_0x91cab){const _0x62bc7d=this;return new _0x5d1851(()=>{const _0x3c530d=_0x1f6d,_0x1db63c=_0x62bc7d[Symbol[_0x3c530d(0x274)]]();return{'next'(){const _0x3e5095=_0x3c530d;for(;;){const _0x1d97ca=_0x1db63c[_0x3e5095(0x158)]();if(_0x1d97ca['done'])return{'done':!![],'value':undefined};const _0x442621=_0x91cab(_0x1d97ca['value']);if(_0x442621===_0x2f6ea8[_0x3e5095(0x1fb)])continue;if(_0x442621===_0x1136ae)return _0x1db63c[_0x3e5095(0x1ba)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x442621};}},'return'(){const _0x1bfd6b=_0x3c530d;return _0x1db63c[_0x1bfd6b(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3c530d(0x274)]](){return this;}};});}['filter'](_0x186533){const _0x3f1937=_0x53dda5;return this[_0x3f1937(0x276)](_0x4ebe4f=>_0x186533(_0x4ebe4f)?_0x4ebe4f:_0x2f6ea8['SKIP']);}[_0x53dda5(0x243)](_0x40192d){for(const _0xa4778e of this)_0x40192d(_0xa4778e);}[_0x53dda5(0x2d1)](_0x4f085b=0x0,_0x5120aa=Infinity){const _0x37eb2f=this;return new _0x5d1851(()=>{const _0x568c46=_0x1f6d,_0x5c5b0e=_0x37eb2f[Symbol[_0x568c46(0x274)]]();let _0x21c442=0x0;return{'next'(){const _0x535bde=_0x568c46;for(;;){const _0x5c106a=_0x5c5b0e[_0x535bde(0x158)]();if(_0x5c106a[_0x535bde(0x2c8)])return{'done':!![],'value':undefined};const _0x5f21d6=_0x21c442++;if(_0x5f21d6<_0x4f085b)continue;if(_0x5f21d6>=_0x5120aa)return _0x5c5b0e['return']?.(),{'done':!![],'value':undefined};return _0x5c106a;}},'return'(){const _0x4c5b44=_0x568c46;return _0x5c5b0e[_0x4c5b44(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x568c46(0x274)]](){return this;}};});}['at'](_0x43396c){let _0x3853d9=0x0;for(const _0x150cca of this)if(_0x3853d9++===_0x43396c)return _0x150cca;return undefined;}['flatMap'](_0x4cfc75){const _0x3c5ff4=this;return new _0x5d1851(()=>{const _0x4772e3=_0x1f6d,_0x5581ac=_0x3c5ff4[Symbol[_0x4772e3(0x274)]]();let _0x4f4a64=[];return{'next'(){const _0x17a8e0=_0x4772e3;for(;;){if(_0x4f4a64[_0x17a8e0(0x1c2)])return{'done':![],'value':_0x4f4a64[_0x17a8e0(0x206)]()};const _0x572fb2=_0x5581ac[_0x17a8e0(0x158)]();if(_0x572fb2[_0x17a8e0(0x2c8)])return{'done':!![],'value':undefined};const _0x5ecfba=_0x4cfc75(_0x572fb2['value']);if(Array[_0x17a8e0(0x266)](_0x5ecfba))_0x4f4a64=_0x4f4a64[_0x17a8e0(0x16c)](_0x5ecfba);else{if(_0x5ecfba!=null&&(_0x5ecfba instanceof _0x5d1851||typeof _0x5ecfba[Symbol['iterator']]===_0x17a8e0(0x1af)&&_0x17a8e0(0x262)in _0x5ecfba))_0x4f4a64=_0x4f4a64[_0x17a8e0(0x16c)](Array[_0x17a8e0(0x2d2)](_0x5ecfba));else{if(_0x5ecfba!==_0x2f6ea8[_0x17a8e0(0x1fb)])return{'done':![],'value':_0x5ecfba};}}}},'return'(){const _0x5cbc56=_0x4772e3;return _0x5581ac[_0x5cbc56(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x4772e3(0x274)]](){return this;}};});}[_0x53dda5(0x16c)](_0x1d903a){const _0x15c4e3=this;return new _0x5d1851(()=>{const _0xd84c7=_0x1f6d;let _0x4eb66d=_0x15c4e3[Symbol[_0xd84c7(0x274)]](),_0x4c5200=![];return{'next'(){const _0x2c7b15=_0xd84c7;for(;;){const _0x22589a=_0x4eb66d[_0x2c7b15(0x158)]();if(!_0x22589a[_0x2c7b15(0x2c8)])return _0x22589a;if(_0x4c5200)return{'done':!![],'value':undefined};_0x4c5200=!![],_0x4eb66d=_0x1d903a[Symbol[_0x2c7b15(0x274)]]();}},'return'(){const _0x27b915=_0xd84c7;return _0x4eb66d[_0x27b915(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xd84c7(0x274)]](){return this;}};});}[_0x53dda5(0x178)](_0x350ea6){const _0x433b15=this;return new _0x5d1851(()=>{const _0x5278e7=_0x1f6d,_0x473d7b=_0x433b15[Symbol[_0x5278e7(0x274)]]();return{'next'(){const _0x461dcc=_0x5278e7;for(;;){try{return _0x473d7b[_0x461dcc(0x158)]();}catch(_0x3387c9){const _0x7ab3ae=_0x350ea6(_0x3387c9);if(_0x7ab3ae===_0x2f6ea8['SKIP']||_0x7ab3ae===undefined)continue;return{'done':![],'value':_0x7ab3ae};}}},'return'(){const _0x4332ae=_0x5278e7;return _0x473d7b[_0x4332ae(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['toJSON'](){const _0x244265=_0x53dda5;return Array[_0x244265(0x2d2)](this);}get[_0x53dda5(0x262)](){return Array['from'](this);}}const _0x43f9a9={'total':0x0,'byLabel':{},'last':null};function _0x4b5f63(_0x271777){const _0xf28964=_0x53dda5;_0x43f9a9['total']++;if(_0x271777)_0x43f9a9[_0xf28964(0x190)][_0x271777]=(_0x43f9a9[_0xf28964(0x190)][_0x271777]??0x0)+0x1;_0x43f9a9['last']={'label':_0x271777??null,'at':Date['now']()};}function _0x4b2baf(){const _0x523732=_0x53dda5;return{'total':_0x43f9a9[_0x523732(0x23b)],'byLabel':{..._0x43f9a9[_0x523732(0x190)]},'last':_0x43f9a9[_0x523732(0x15e)]};}function _0x1c4f00(_0x1254f4,_0x55340b={}){const {getTxnId:_0x15322b,resume:_0x4459f1,label:_0x160cd0,baseline:_0x11f20a}=_0x55340b;return new _0x5d1851(()=>{const _0x39bf9c=_0x1f6d;let _0x457f24=null,_0x5438be=![],_0x35611e=![],_0x69212=![],_0x368726,_0x199fee=0x0,_0xb7d1af;return{'next'(){const _0x55a800=_0x1f6d;if(_0x69212)return{'done':!![],'value':undefined};if(_0x35611e){let _0x5bd057=![];if(_0x4459f1&&_0x15322b)try{_0x5bd057=_0x15322b()===_0xb7d1af;}catch{}if(!_0x5bd057){_0x69212=!![],_0x4b5f63(_0x160cd0);throw new _0x427f36(_0x4459f1?_0x55a800(0x1d5)+_0x55a800(0x187)+'before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.':_0x55a800(0x22a)+_0x55a800(0x16e)+_0x55a800(0x1f0),_0x55a800(0x174));}_0x457f24=_0x4459f1(_0x368726,_0x199fee)[Symbol[_0x55a800(0x274)]](),_0x35611e=![];}if(!_0x457f24){if(_0x11f20a!==undefined)_0xb7d1af=_0x11f20a;else try{_0xb7d1af=_0x15322b?_0x15322b():undefined;}catch{_0xb7d1af=undefined;}try{_0x457f24=_0x1254f4()[Symbol[_0x55a800(0x274)]]();}catch(_0x224d90){_0x69212=!![];throw _0x224d90;}}!_0x5438be&&(_0x5438be=!![],queueMicrotask(()=>{const _0x50663c=_0x55a800;_0x5438be=![];if(_0x69212||_0x35611e)return;try{_0x457f24?.[_0x50663c(0x1ba)]?.();}catch{}_0x457f24=null,_0x35611e=!![];}));const _0x59b516=_0x457f24[_0x55a800(0x158)]();if(_0x59b516[_0x55a800(0x2c8)])return _0x69212=!![],{'done':!![],'value':undefined};return _0x368726=_0x59b516[_0x55a800(0x1b4)],_0x199fee++,_0x59b516;},'return'(){const _0x168d8b=_0x1f6d;_0x69212=!![];try{_0x457f24?.[_0x168d8b(0x1ba)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x39bf9c(0x274)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x1c4f00,'OKDBGuardedRange':_0x5d1851,'recordGuardTrip':_0x4b5f63,'getGuardTripStats':_0x4b2baf},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function _0x1f6d(_0x42efcd,_0x542672){_0x42efcd=_0x42efcd-0x154;const _0x1cb3d8=_0x1cb3();let _0x1f6dec=_0x1cb3d8[_0x42efcd];return _0x1f6dec;}function requireOkdbLoopMonitor(){const _0x2a63a1=_0x17c6d3;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x59c4bd,performance:_0x384ad5}=require$$0$2,_0x156ec4=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x2a63a1(0x2a1),_0x2c8f66=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x32df89=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2f4da1=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5ec547{constructor(){const _0x16068b=_0x2a63a1;this[_0x16068b(0x1f3)]=_0x156ec4,this[_0x16068b(0x1b8)]=new Map(),this['_h']=null,this[_0x16068b(0x27a)]=null,this[_0x16068b(0x23d)]=![],this[_0x16068b(0x168)]=(_0x3a6566,_0x257685)=>process['stderr']['write'](_0x3a6566+(_0x257685?'\x20'+JSON[_0x16068b(0x196)](_0x257685):'')+'\x0a');}[_0x2a63a1(0x215)](){return _0x384ad5['now']();}[_0x2a63a1(0x222)](_0x59ca26){const _0x1925ad=_0x2a63a1;if(typeof _0x59ca26==='function')this[_0x1925ad(0x168)]=_0x59ca26;}['note'](_0x5a90fe,_0x120b15,_0x4b5501){const _0x5dd3ee=_0x2a63a1;if(!this[_0x5dd3ee(0x1f3)])return;let _0x5b3113=this[_0x5dd3ee(0x1b8)][_0x5dd3ee(0x29d)](_0x5a90fe);!_0x5b3113&&(_0x5b3113={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x5dd3ee(0x1b8)]['set'](_0x5a90fe,_0x5b3113)),_0x5b3113['ms']+=_0x120b15,_0x5b3113['count']+=0x1,_0x120b15>_0x5b3113[_0x5dd3ee(0x1fa)]&&(_0x5b3113[_0x5dd3ee(0x1fa)]=_0x120b15,_0x5b3113[_0x5dd3ee(0x28b)]=_0x4b5501||'');}['start'](_0x8ab60e){const _0x61dca9=_0x2a63a1;if(!this[_0x61dca9(0x1f3)]||this[_0x61dca9(0x23d)])return;this[_0x61dca9(0x23d)]=!![];if(_0x8ab60e)this[_0x61dca9(0x168)]=_0x8ab60e;this['_h']=_0x59c4bd({'resolution':0xa}),this['_h'][_0x61dca9(0x20d)](),this[_0x61dca9(0x27a)]=setInterval(()=>this[_0x61dca9(0x2cb)](),_0x2c8f66);if(this[_0x61dca9(0x27a)][_0x61dca9(0x239)])this[_0x61dca9(0x27a)][_0x61dca9(0x239)]();}['onWindow'](_0x1cdb83){const _0x59a81f=_0x2a63a1;if(!this[_0x59a81f(0x1bf)])this[_0x59a81f(0x1bf)]=new Set();this[_0x59a81f(0x1bf)]['add'](_0x1cdb83);if(!this[_0x59a81f(0x23d)])this['_startAdmission']();}['offWindow'](_0x2e17c5){const _0x33bf69=_0x2a63a1;this[_0x33bf69(0x1bf)]?.[_0x33bf69(0x290)](_0x2e17c5);}[_0x2a63a1(0x19d)](){const _0x5ba22d=_0x2a63a1;if(this[_0x5ba22d(0x2cf)])return;this[_0x5ba22d(0x2cf)]=!![];!this['_h']&&(this['_h']=_0x59c4bd({'resolution':0xa}),this['_h'][_0x5ba22d(0x20d)]());const _0x3838f1=_0x2c8f66;this[_0x5ba22d(0x256)]=setInterval(()=>{const _0x22f41d=_0x5ba22d,_0x55f55a=this['_h'];if(!_0x55f55a)return;const _0x1d7576=_0x55f55a['percentile'](0x63)/0xf4240,_0x5a3ff6=_0x55f55a[_0x22f41d(0x286)]/0xf4240,_0x58fcb1=_0x55f55a[_0x22f41d(0x156)]/0xf4240;_0x55f55a[_0x22f41d(0x18a)]();if(this['_windowCbs'])for(const _0x2ce4f2 of this[_0x22f41d(0x1bf)]){try{_0x2ce4f2({'p99Ms':_0x1d7576,'maxMs':_0x5a3ff6,'meanMs':_0x58fcb1,'reportMs':_0x3838f1});}catch{}}},_0x3838f1);if(this[_0x5ba22d(0x256)][_0x5ba22d(0x239)])this[_0x5ba22d(0x256)][_0x5ba22d(0x239)]();}['_report'](){const _0x228d46=_0x2a63a1,_0x17036c=this['_h'],_0x1cc41d=_0x17036c['max']/0xf4240,_0x282168=_0x17036c[_0x228d46(0x1f6)](0x63)/0xf4240,_0x3fc53a=_0x17036c[_0x228d46(0x156)]/0xf4240;_0x17036c[_0x228d46(0x18a)]();const _0x41e889=[...this[_0x228d46(0x1b8)]['entries']()][_0x228d46(0x276)](([_0x4d6ea0,_0xb53435])=>({'label':_0x4d6ea0,..._0xb53435}))[_0x228d46(0x1c3)]((_0x51a861,_0x46f9ac)=>_0x46f9ac['ms']-_0x51a861['ms'])['slice'](0x0,0x8);this['_buckets']['clear']();const _0x1dd33e=_0x41e889[_0x228d46(0x1e9)]((_0x472c20,_0x41c07a)=>_0x472c20+_0x41c07a['ms'],0x0),_0x5c6b1d=_0x41e889[_0x228d46(0x276)](_0x54b814=>_0x54b814[_0x228d46(0x297)]+'='+_0x54b814['ms'][_0x228d46(0x1a3)](0x0)+'ms/'+_0x54b814[_0x228d46(0x2bc)]+(_0x54b814[_0x228d46(0x1fa)]>0x5?'(worst\x20'+_0x54b814[_0x228d46(0x1fa)][_0x228d46(0x1a3)](0x0)+'ms'+(_0x54b814[_0x228d46(0x28b)]?'\x20'+_0x54b814[_0x228d46(0x28b)]:'')+')':''));(_0x32df89||_0x1cc41d>=_0x2f4da1)&&this[_0x228d46(0x168)]('loop-lag\x20'+_0x2c8f66+_0x228d46(0x29e)+_0x1cc41d['toFixed'](0x0)+'ms\x20p99='+_0x282168['toFixed'](0x0)+_0x228d46(0x2a6)+_0x3fc53a[_0x228d46(0x1a3)](0x0)+_0x228d46(0x1c7)+_0x1dd33e['toFixed'](0x0)+'ms'+(_0x5c6b1d[_0x228d46(0x1c2)]?'\x20│\x20'+_0x5c6b1d[_0x228d46(0x2aa)]('\x20\x20'):''),{'feature':_0x228d46(0x29a)});if(this[_0x228d46(0x1bf)])for(const _0x3e368d of this[_0x228d46(0x1bf)]){try{_0x3e368d({'p99Ms':_0x282168,'maxMs':_0x1cc41d,'meanMs':_0x3fc53a,'reportMs':_0x2c8f66});}catch{}}}['stop'](){const _0x2360a9=_0x2a63a1;if(this['_timer'])clearInterval(this[_0x2360a9(0x27a)]);if(this['_h'])this['_h'][_0x2360a9(0x24c)]();this[_0x2360a9(0x27a)]=null,this['_h']=null,this[_0x2360a9(0x23d)]=![];}}const _0x188fab=new _0x5ec547();if(_0x188fab[_0x2a63a1(0x1f3)])_0x188fab['start']();return okdbLoopMonitor={'LOOP':_0x188fab},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xee4ce1=_0x17c6d3;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x395d50=require$$0$3,{EVENTS:_0x3e8bf4}=requireOkdbEnums(),{OKDBError:_0x4f2c9e}=requireOkdbError(),{recordGuardTrip:_0x5595bd,guardSnapshotIterable:_0x13fdee}=requireOkdbGuardedRange(),{LOOP:_0x478d14}=requireOkdbLoopMonitor();function _0x4ee1d4(_0x499e24){return _0x499e24['map'](_0x14a399=>{const _0x52b83f=_0x1f6d,[_0x425786,_0x4726a6]=_0x14a399[_0x52b83f(0x2ac)]||[];return{'action':_0x14a399['action'],'type':_0x425786,'key':_0x4726a6};});}class _0x12edce{[_0xee4ce1(0x1d4)];[_0xee4ce1(0x169)]=[];[_0xee4ce1(0x1fc)]=[];['_undoHooks']=[];constructor(_0x3506d6,_0x47fe05={'useReadTransaction':![]}){const _0x5289d1=_0xee4ce1;this[_0x5289d1(0x1d4)]=_0x3506d6,this[_0x5289d1(0x2d0)]=_0x47fe05,this['id']=_0x395d50['v4']();if(this[_0x5289d1(0x2d0)][_0x5289d1(0x228)])try{this[_0x5289d1(0x1a9)]=this[_0x5289d1(0x1d4)]['db'][_0x5289d1(0x2a3)]()[_0x5289d1(0x1a6)];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x5289d1(0x22b)]=this[_0x5289d1(0x2d0)][_0x5289d1(0x228)]?this[_0x5289d1(0x1d4)]['db']['useReadTransaction']():null,this['_closed']=![],this[_0x5289d1(0x258)]=![],this['readTransaction']&&queueMicrotask(()=>{const _0xfcb898=_0x5289d1;this['readTransaction']&&(this[_0xfcb898(0x205)](),this[_0xfcb898(0x258)]=!![]);});}['onDo'](_0x57b7b8){const _0x2f513a=_0xee4ce1;this['_doHooks'][_0x2f513a(0x2e0)](_0x57b7b8);}[_0xee4ce1(0x1c1)](_0x427088){const _0x1ca189=_0xee4ce1;this[_0x1ca189(0x17d)][_0x1ca189(0x2e0)](_0x427088);}[_0xee4ce1(0x205)](){const _0x27619a=_0xee4ce1;if(!this[_0x27619a(0x22b)])return;try{this['readTransaction'][_0x27619a(0x2c8)]();}catch(_0x14d222){}this[_0x27619a(0x22b)]=null;}['_assertOpen'](){const _0x19b125=_0xee4ce1;if(this[_0x19b125(0x28a)])throw new _0x4f2c9e(_0x19b125(0x252),'TXN_CLOSED');if(this['_readViewExpired']){let _0x43426b=![];if(this[_0x19b125(0x2d0)][_0x19b125(0x228)]===_0x19b125(0x22e)&&this[_0x19b125(0x1a9)]!==undefined)try{_0x43426b=this[_0x19b125(0x1d4)]['db'][_0x19b125(0x2a3)]()[_0x19b125(0x1a6)]===this[_0x19b125(0x1a9)];}catch{}if(!_0x43426b){_0x5595bd((this['okdb']?.['name']??'?')+_0x19b125(0x25d));throw new _0x4f2c9e('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+'boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20'+_0x19b125(0x19a)+'no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.',_0x19b125(0x174));}}}[_0xee4ce1(0x29d)](_0x3c7bed,_0x222bed){const _0x52824d=_0xee4ce1;return this[_0x52824d(0x165)](),this[_0x52824d(0x1d4)][_0x52824d(0x29d)](_0x3c7bed,_0x222bed,{'transaction':this[_0x52824d(0x22b)]});}[_0xee4ce1(0x2ce)](_0x50f331,_0x3f6186){const _0x3e1495=_0xee4ce1;return this[_0x3e1495(0x165)](),this['okdb']['getEntry'](_0x50f331,_0x3f6186,{'transaction':this[_0x3e1495(0x22b)]});}['getMany'](_0x51a90d,_0x3feeeb){const _0x23b9d2=_0xee4ce1;return this[_0x23b9d2(0x165)](),this[_0x23b9d2(0x1d4)][_0x23b9d2(0x1bc)](_0x51a90d,_0x3feeeb,{'transaction':this[_0x23b9d2(0x22b)]});}[_0xee4ce1(0x296)](_0x47b048){const _0xdcfbb6=_0xee4ce1;if(!this[_0xdcfbb6(0x2d0)][_0xdcfbb6(0x228)])return _0x47b048;if(_0x47b048&&typeof _0x47b048['then']==='function')return _0x47b048;if(Array[_0xdcfbb6(0x266)](_0x47b048))return _0x47b048;const _0x254d62=this,_0x2b7695=_0x254d62['options']['useReadTransaction']===_0xdcfbb6(0x22e),_0x24c856=()=>{const _0x4ab5e3=_0xdcfbb6;if(!_0x254d62['_readViewExpired'])return![];if(!_0x2b7695)return!![];if(_0x254d62['_txnIdAtSnapshot']===undefined)return!![];try{return _0x254d62[_0x4ab5e3(0x1d4)]['db'][_0x4ab5e3(0x2a3)]()[_0x4ab5e3(0x1a6)]!==_0x254d62[_0x4ab5e3(0x1a9)];}catch{return!![];}};return _0x13fdee(()=>{const _0xe078c4=_0xdcfbb6;if(_0x254d62['_closed'])throw new _0x4f2c9e(_0xe078c4(0x252),_0xe078c4(0x27f));if(_0x24c856()){_0x5595bd((_0x254d62[_0xe078c4(0x1d4)]?.[_0xe078c4(0x24e)]??'?')+_0xe078c4(0x2dc));throw new _0x4f2c9e('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0xe078c4(0x15f)+_0xe078c4(0x265),_0xe078c4(0x174));}return _0x47b048;},{'label':(_0x254d62['okdb']?.[_0xdcfbb6(0x24e)]??'?')+_0xdcfbb6(0x2dc),..._0x2b7695?{'baseline':_0x254d62[_0xdcfbb6(0x1a9)],'getTxnId':()=>_0x254d62[_0xdcfbb6(0x1d4)]['db']['getStats']()['lastTxnId'],'resume':(_0xdc4d41,_0x4d93da)=>_0x47b048['slice'](_0x4d93da)}:{}});}[_0xee4ce1(0x282)](_0x64e17f,_0x3e58bb={}){const _0x5deb76=_0xee4ce1;return this[_0x5deb76(0x165)](),this[_0x5deb76(0x296)](this[_0x5deb76(0x1d4)][_0x5deb76(0x282)](_0x64e17f,{'transaction':this['readTransaction'],..._0x3e58bb}));}[_0xee4ce1(0x2c2)](_0x126276,_0x376802={}){const _0x44e464=_0xee4ce1;return this['_assertOpen'](),this[_0x44e464(0x296)](this['okdb'][_0x44e464(0x2c2)](_0x126276,{'transaction':this[_0x44e464(0x22b)],..._0x376802}));}[_0xee4ce1(0x25e)](_0x136365,_0x1d545f={}){const _0x1d5f45=_0xee4ce1;return this['_assertOpen'](),this[_0x1d5f45(0x296)](this[_0x1d5f45(0x1d4)][_0x1d5f45(0x25e)](_0x136365,{'transaction':this['readTransaction'],..._0x1d545f}));}[_0xee4ce1(0x16a)](_0x3512c9,_0x2cebae,_0x4a7fc0={}){const _0x4814e5=_0xee4ce1;return this['_assertOpen'](),this[_0x4814e5(0x296)](this[_0x4814e5(0x1d4)][_0x4814e5(0x16a)](_0x3512c9,_0x2cebae,{'transaction':this[_0x4814e5(0x22b)],..._0x4a7fc0}));}[_0xee4ce1(0x25f)](_0x144c74,_0x293e4e,_0x56b8b6={}){const _0x56c1a7=_0xee4ce1;return this[_0x56c1a7(0x165)](),this[_0x56c1a7(0x296)](this[_0x56c1a7(0x1d4)]['query'](_0x144c74,_0x293e4e,{'transaction':this[_0x56c1a7(0x22b)],..._0x56b8b6}));}[_0xee4ce1(0x189)](_0x1d8c69=null){const _0x36baad=_0xee4ce1;return this[_0x36baad(0x165)](),this[_0x36baad(0x1d4)][_0x36baad(0x189)](_0x1d8c69,{'transaction':this[_0x36baad(0x22b)]});}[_0xee4ce1(0x2b4)](_0x3bf606){const _0x5eff52=_0xee4ce1;return this[_0x5eff52(0x165)](),this['okdb'][_0x5eff52(0x2b4)](_0x3bf606,{'transaction':this['readTransaction']});}[_0xee4ce1(0x194)](_0x280ec4,_0x5a9eb9,_0x22162b,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x54ff85=_0xee4ce1;this[_0x54ff85(0x169)][_0x54ff85(0x2e0)]({'action':'put','args':[_0x280ec4,_0x5a9eb9,_0x22162b,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['update'](_0x1d9728,_0x793cce,_0x4f11a3,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x59b1f6=_0xee4ce1;this[_0x59b1f6(0x169)][_0x59b1f6(0x2e0)]({'action':_0x59b1f6(0x2b0),'args':[_0x1d9728,_0x793cce,_0x4f11a3,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xee4ce1(0x2da)](_0x4c35e6,_0x5a5b61,_0x58f32f,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x24f36c=_0xee4ce1;this[_0x24f36c(0x169)][_0x24f36c(0x2e0)]({'action':_0x24f36c(0x2da),'args':[_0x4c35e6,_0x5a5b61,_0x58f32f,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xee4ce1(0x279)](_0x5ca920,_0x4a35ce,_0x22425f,{version:version=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x345720=_0xee4ce1;this[_0x345720(0x169)]['push']({'action':_0x345720(0x279),'args':[_0x5ca920,_0x4a35ce,_0x22425f,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xee4ce1(0x272)](_0x5e229c,_0x324476,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null}={}){const _0x549b87=_0xee4ce1;this[_0x549b87(0x169)][_0x549b87(0x2e0)]({'action':_0x549b87(0x272),'args':[_0x5e229c,_0x324476,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}['setTTL'](_0x420f85,_0xdd634d,_0x55ad17){const _0x27ba84=_0xee4ce1;this[_0x27ba84(0x169)][_0x27ba84(0x2e0)]({'action':_0x27ba84(0x1cc),'args':[_0x420f85,_0xdd634d,_0x55ad17]});}[_0xee4ce1(0x2b6)](_0x23c18e,_0x42296c){const _0x375c9a=_0xee4ce1;this[_0x375c9a(0x169)][_0x375c9a(0x2e0)]({'action':_0x375c9a(0x2b6),'args':[_0x23c18e,_0x42296c]});}[_0xee4ce1(0x170)](){const _0x2eb756=_0xee4ce1;if(this[_0x2eb756(0x28a)])return;for(const _0x556977 of this[_0x2eb756(0x17d)]){try{_0x556977();}catch{}}this['okdb'][_0x2eb756(0x250)][_0x2eb756(0x2d9)](_0x3e8bf4[_0x2eb756(0x2b2)],{'id':this['id']}),this[_0x2eb756(0x169)]=[],this[_0x2eb756(0x205)](),this[_0x2eb756(0x28a)]=!![];}async[_0xee4ce1(0x269)](){const _0x5cdda6=_0xee4ce1;if(this[_0x5cdda6(0x28a)])throw new Error(_0x5cdda6(0x252));const _0x2d5bd7={'id':this['id'],'timestamp':Date[_0x5cdda6(0x215)](),'actions':this[_0x5cdda6(0x169)]};this[_0x5cdda6(0x1d4)][_0x5cdda6(0x250)]['emit'](_0x3e8bf4['TXN_START'],_0x2d5bd7);try{const _0x1de049=_0x478d14[_0x5cdda6(0x1f3)]?_0x478d14[_0x5cdda6(0x215)]():0x0;await this['okdb']['_writer'][_0x5cdda6(0x1e2)](()=>{const _0x56785b=_0x5cdda6;for(const _0x2f5392 of this[_0x56785b(0x169)]){const _0x5d4389=this[_0x56785b(0x1d4)]['_'+_0x2f5392[_0x56785b(0x1d1)]];if(typeof _0x5d4389!=='function')throw new Error(_0x56785b(0x1e6)+_0x2f5392['action']);_0x5d4389[_0x56785b(0x19e)](this['okdb'],this,..._0x2f5392['args']);}}),_0x478d14[_0x5cdda6(0x1f3)]&&_0x478d14[_0x5cdda6(0x191)](_0x5cdda6(0x21c),_0x478d14['now']()-_0x1de049,(this[_0x5cdda6(0x1d4)]['name']??'?')+_0x5cdda6(0x253)+this[_0x5cdda6(0x169)][_0x5cdda6(0x1c2)]);}catch(_0x94a133){for(const _0x22a66b of this[_0x5cdda6(0x17d)]){try{_0x22a66b();}catch{}}this[_0x5cdda6(0x205)](),this[_0x5cdda6(0x28a)]=!![];if(_0x94a133 instanceof _0x4f2c9e)throw _0x94a133;const _0x306f5b={'cause':_0x94a133,'env':this[_0x5cdda6(0x1d4)]?.['name'],'envPath':this['okdb']?.['path'],'pid':process[_0x5cdda6(0x1f8)],'txnId':this['id'],'actionCount':this[_0x5cdda6(0x169)][_0x5cdda6(0x1c2)],'actions':_0x4ee1d4(this[_0x5cdda6(0x169)]),'nativeCode':_0x94a133?.[_0x5cdda6(0x1dc)],'nativeName':_0x94a133?.[_0x5cdda6(0x24e)]};try{this[_0x5cdda6(0x1d4)]?.['log']?.[_0x5cdda6(0x267)]?.(_0x5cdda6(0x1b1),{'env':_0x306f5b[_0x5cdda6(0x22d)],'envPath':_0x306f5b[_0x5cdda6(0x264)],'pid':_0x306f5b[_0x5cdda6(0x1f8)],'txnId':_0x306f5b[_0x5cdda6(0x211)],'actionCount':_0x306f5b['actionCount'],'actions':_0x306f5b[_0x5cdda6(0x169)],'nativeCode':_0x306f5b['nativeCode'],'error':_0x94a133?.['message'],'stack':_0x94a133?.[_0x5cdda6(0x1cb)]});}catch{}throw new _0x4f2c9e(_0x94a133?.[_0x5cdda6(0x1a5)]||_0x5cdda6(0x210),_0x5cdda6(0x233),_0x306f5b);}this[_0x5cdda6(0x1d4)][_0x5cdda6(0x250)][_0x5cdda6(0x2d9)](_0x3e8bf4[_0x5cdda6(0x1e3)],_0x2d5bd7);for(const _0x23c581 of this[_0x5cdda6(0x1fc)]){try{await _0x23c581();}catch{}}this[_0x5cdda6(0x169)]=[],this[_0x5cdda6(0x205)](),this[_0x5cdda6(0x28a)]=!![];}static[_0xee4ce1(0x2d5)](_0x77ca04){const _0x3bba7c=_0xee4ce1;return Object[_0x3bba7c(0x1ae)]({'id':_0x77ca04['id'],'put':_0x77ca04[_0x3bba7c(0x194)]['bind'](_0x77ca04),'update':_0x77ca04[_0x3bba7c(0x2b0)][_0x3bba7c(0x214)](_0x77ca04),'patch':_0x77ca04[_0x3bba7c(0x2da)][_0x3bba7c(0x214)](_0x77ca04),'create':_0x77ca04[_0x3bba7c(0x279)][_0x3bba7c(0x214)](_0x77ca04),'remove':_0x77ca04['remove']['bind'](_0x77ca04),'setTTL':_0x77ca04[_0x3bba7c(0x1cc)]['bind'](_0x77ca04),'clearTTL':_0x77ca04[_0x3bba7c(0x2b6)][_0x3bba7c(0x214)](_0x77ca04),'commit':_0x77ca04[_0x3bba7c(0x269)][_0x3bba7c(0x214)](_0x77ca04),'rollback':_0x77ca04[_0x3bba7c(0x170)][_0x3bba7c(0x214)](_0x77ca04),'get':_0x77ca04[_0x3bba7c(0x29d)]['bind'](_0x77ca04),'getEntry':_0x77ca04[_0x3bba7c(0x2ce)]['bind'](_0x77ca04),'getMany':_0x77ca04['getMany'][_0x3bba7c(0x214)](_0x77ca04),'getRange':_0x77ca04[_0x3bba7c(0x282)][_0x3bba7c(0x214)](_0x77ca04),'getValues':_0x77ca04['getValues']['bind'](_0x77ca04),'getKeys':_0x77ca04['getKeys'][_0x3bba7c(0x214)](_0x77ca04),'byIndex':_0x77ca04[_0x3bba7c(0x16a)][_0x3bba7c(0x214)](_0x77ca04),'query':_0x77ca04[_0x3bba7c(0x25f)][_0x3bba7c(0x214)](_0x77ca04),'getClock':_0x77ca04['getClock']['bind'](_0x77ca04),'getCount':_0x77ca04[_0x3bba7c(0x2b4)][_0x3bba7c(0x214)](_0x77ca04),'read':_0x77ca04,'raw':_0x77ca04});}static[_0xee4ce1(0x1d6)](_0x310ee0,_0x1d8881=[]){const _0x4211a3=_0xee4ce1;if(!Array[_0x4211a3(0x266)](_0x1d8881))throw new _0x4f2c9e(_0x4211a3(0x292),'TXN_INVALID_OPS');for(const _0x5f337c of _0x1d8881){if(Array['isArray'](_0x5f337c)){const [_0x38d840,..._0x5e967f]=_0x5f337c;if(typeof _0x310ee0[_0x38d840]!==_0x4211a3(0x1af))throw new _0x4f2c9e(_0x4211a3(0x1e6)+_0x38d840,_0x4211a3(0x18f),{'action':_0x38d840});_0x310ee0[_0x38d840](..._0x5e967f);continue;}if(!_0x5f337c||typeof _0x5f337c!==_0x4211a3(0x2af))throw new _0x4f2c9e(_0x4211a3(0x2dd),_0x4211a3(0x217));const {action:_0x3228ac}=_0x5f337c;if(typeof _0x3228ac!==_0x4211a3(0x2a5)||typeof _0x310ee0[_0x3228ac]!==_0x4211a3(0x1af))throw new _0x4f2c9e(_0x4211a3(0x1e6)+_0x3228ac,_0x4211a3(0x18f),{'action':_0x3228ac});switch(_0x3228ac){case _0x4211a3(0x194):case _0x4211a3(0x2b0):case _0x4211a3(0x279):_0x310ee0[_0x3228ac](_0x5f337c[_0x4211a3(0x159)],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x1b4)],{..._0x5f337c[_0x4211a3(0x2d0)],'ttl':_0x5f337c[_0x4211a3(0x287)]??_0x5f337c['options']?.[_0x4211a3(0x287)]??null});break;case'patch':_0x310ee0[_0x4211a3(0x2da)](_0x5f337c['type'],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x2da)],{..._0x5f337c[_0x4211a3(0x2d0)],'ttl':_0x5f337c[_0x4211a3(0x287)]??_0x5f337c[_0x4211a3(0x2d0)]?.[_0x4211a3(0x287)]??null});break;case _0x4211a3(0x272):_0x310ee0[_0x4211a3(0x272)](_0x5f337c[_0x4211a3(0x159)],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x2d0)]||{});break;case'setTTL':_0x310ee0[_0x4211a3(0x1cc)](_0x5f337c['type'],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x287)]);break;case _0x4211a3(0x2b6):_0x310ee0[_0x4211a3(0x2b6)](_0x5f337c[_0x4211a3(0x159)],_0x5f337c[_0x4211a3(0x19f)]);break;default:throw new _0x4f2c9e(_0x4211a3(0x288)+_0x3228ac,_0x4211a3(0x18f),{'action':_0x3228ac});}}}static async[_0xee4ce1(0x2d4)](_0x17d8bd,_0x240ca1,_0x1eda6c={}){const _0xa5f20e=_0xee4ce1,_0x18b786=new _0x12edce(_0x17d8bd,_0x1eda6c),_0x2d999b=_0x12edce[_0xa5f20e(0x2d5)](_0x18b786);try{typeof _0x240ca1===_0xa5f20e(0x1af)?await _0x240ca1(_0x2d999b):_0x12edce[_0xa5f20e(0x1d6)](_0x18b786,_0x240ca1||[]);const _0x327b00=_0x18b786['actions'][_0xa5f20e(0x1c2)];return await _0x18b786[_0xa5f20e(0x269)](),{'id':_0x18b786['id'],'actions':_0x327b00};}catch(_0x131f35){try{_0x18b786[_0xa5f20e(0x170)]();}catch(_0x3ef3d7){}throw _0x131f35;}}}return okdbTransaction=_0x12edce,okdbTransaction;}var okdbFunctionsFacades,hasRequiredOkdbFunctionsFacades;function requireOkdbFunctionsFacades(){if(hasRequiredOkdbFunctionsFacades)return okdbFunctionsFacades;hasRequiredOkdbFunctionsFacades=0x1;const _0x5ed3d2=requireOkdbTransaction();function _0x4e22fe(_0x2f6fd9){const _0x467c9e=_0x1f6d;return{'transaction':typeof _0x2f6fd9[_0x467c9e(0x1e2)]===_0x467c9e(0x1af)?_0x2f6fd9[_0x467c9e(0x1e2)][_0x467c9e(0x214)](_0x2f6fd9):_0x19d95e=>new _0x5ed3d2(_0x2f6fd9,_0x19d95e),'txn':typeof _0x2f6fd9['txn']===_0x467c9e(0x1af)?_0x2f6fd9[_0x467c9e(0x1f9)][_0x467c9e(0x214)](_0x2f6fd9):(_0x210667,_0x1bf116)=>_0x5ed3d2['run'](_0x2f6fd9,_0x210667,_0x1bf116)};}function _0x5ac306(_0x35f935){const _0x43b90c=_0x1f6d;return{'name':_0x35f935['name'],..._0x4e22fe(_0x35f935),'put':_0x35f935['put'][_0x43b90c(0x214)](_0x35f935),'update':_0x35f935['update']['bind'](_0x35f935),'patch':_0x35f935[_0x43b90c(0x2da)][_0x43b90c(0x214)](_0x35f935),'create':_0x35f935[_0x43b90c(0x279)][_0x43b90c(0x214)](_0x35f935),'remove':_0x35f935['remove'][_0x43b90c(0x214)](_0x35f935),'get':_0x35f935['get'][_0x43b90c(0x214)](_0x35f935),'getMany':_0x35f935[_0x43b90c(0x1bc)][_0x43b90c(0x214)](_0x35f935),'getEntry':_0x35f935[_0x43b90c(0x2ce)][_0x43b90c(0x214)](_0x35f935),'getRange':_0x35f935[_0x43b90c(0x282)][_0x43b90c(0x214)](_0x35f935),'getValues':_0x35f935[_0x43b90c(0x2c2)][_0x43b90c(0x214)](_0x35f935),'getKeys':_0x35f935[_0x43b90c(0x25e)]['bind'](_0x35f935),'getCount':_0x35f935['getCount'][_0x43b90c(0x214)](_0x35f935),'getByPrefix':_0x35f935[_0x43b90c(0x18c)][_0x43b90c(0x214)](_0x35f935),'getIndex':_0x35f935[_0x43b90c(0x2de)][_0x43b90c(0x214)](_0x35f935),'byIndex':_0x35f935['byIndex'][_0x43b90c(0x214)](_0x35f935),'query':_0x35f935[_0x43b90c(0x25f)]['bind'](_0x35f935),'geoQuery':_0x35f935[_0x43b90c(0x180)]['bind'](_0x35f935),'ftsQuery':_0x35f935[_0x43b90c(0x281)][_0x43b90c(0x214)](_0x35f935),'setTTL':_0x35f935[_0x43b90c(0x1cc)][_0x43b90c(0x214)](_0x35f935),'getTTL':_0x35f935['getTTL'][_0x43b90c(0x214)](_0x35f935),'clearTTL':_0x35f935[_0x43b90c(0x2b6)][_0x43b90c(0x214)](_0x35f935),'sweepExpiredTTL':_0x35f935[_0x43b90c(0x1ca)][_0x43b90c(0x214)](_0x35f935),'listTTL':_0x35f935[_0x43b90c(0x2c4)]['bind'](_0x35f935),'ttlStats':_0x35f935[_0x43b90c(0x23c)]['bind'](_0x35f935),'setDefaultTTL':_0x35f935['setDefaultTTL']['bind'](_0x35f935),'getDefaultTTL':_0x35f935[_0x43b90c(0x1f2)][_0x43b90c(0x214)](_0x35f935),'clearDefaultTTL':_0x35f935[_0x43b90c(0x232)]['bind'](_0x35f935),'registerType':_0x35f935[_0x43b90c(0x271)][_0x43b90c(0x214)](_0x35f935),'ensureType':_0x35f935[_0x43b90c(0x1b9)][_0x43b90c(0x214)](_0x35f935),'hasType':_0x35f935[_0x43b90c(0x280)][_0x43b90c(0x214)](_0x35f935),'dropType':_0x35f935[_0x43b90c(0x1bb)][_0x43b90c(0x214)](_0x35f935),'registerIndex':_0x35f935[_0x43b90c(0x25c)]['bind'](_0x35f935),'hasIndex':_0x35f935[_0x43b90c(0x237)][_0x43b90c(0x214)](_0x35f935),'dropIndex':_0x35f935['dropIndex'][_0x43b90c(0x214)](_0x35f935),'resetIndex':_0x35f935[_0x43b90c(0x234)]['bind'](_0x35f935),'indexReady':_0x35f935[_0x43b90c(0x1e0)][_0x43b90c(0x214)](_0x35f935),'getIndexStatus':_0x35f935[_0x43b90c(0x221)][_0x43b90c(0x214)](_0x35f935),'getClock':_0x35f935[_0x43b90c(0x189)][_0x43b90c(0x214)](_0x35f935),'getChanges':_0x35f935[_0x43b90c(0x1da)][_0x43b90c(0x214)](_0x35f935),'count':_0x35f935[_0x43b90c(0x2bc)][_0x43b90c(0x214)](_0x35f935),'range':_0x35f935['range'][_0x43b90c(0x214)](_0x35f935),'now':_0x35f935[_0x43b90c(0x215)][_0x43b90c(0x214)](_0x35f935)};}function _0x24f103(_0x356116){const _0x47665e=_0x1f6d;if(!_0x356116)return null;const _0x4c6908={};for(const _0x3d8220 of[_0x47665e(0x23a),'getJob',_0x47665e(0x1d7),_0x47665e(0x15b),_0x47665e(0x164),_0x47665e(0x24b),'getBucket',_0x47665e(0x2c3)]){if(typeof _0x356116[_0x3d8220]===_0x47665e(0x1af))_0x4c6908[_0x3d8220]=_0x356116[_0x3d8220][_0x47665e(0x214)](_0x356116);}return Object[_0x47665e(0x24f)](_0x4c6908)[_0x47665e(0x1c2)]?_0x4c6908:null;}function _0x2fe3f8(_0x3136b1){const _0x2b4c09=_0x1f6d;if(!_0x3136b1)return null;const _0x3bf696={};for(const _0x499ca6 of[_0x2b4c09(0x1d0),_0x2b4c09(0x1ef),'remove',_0x2b4c09(0x29d),'list',_0x2b4c09(0x19c)]){if(typeof _0x3136b1[_0x499ca6]===_0x2b4c09(0x1af))_0x3bf696[_0x499ca6]=_0x3136b1[_0x499ca6]['bind'](_0x3136b1);}return Object['keys'](_0x3bf696)['length']?_0x3bf696:null;}function _0x1a49e1(_0x4f0718){const _0x18a316=_0x1f6d;return{'env':_0x4f0718['env'][_0x18a316(0x214)](_0x4f0718),'createEnvironment':_0x4f0718['createEnvironment']['bind'](_0x4f0718),'removeEnvironment':_0x4f0718['removeEnvironment'][_0x18a316(0x214)](_0x4f0718),'info':_0x4f0718[_0x18a316(0x26b)],..._0x4e22fe(_0x4f0718),'put':_0x4f0718[_0x18a316(0x194)][_0x18a316(0x214)](_0x4f0718),'update':_0x4f0718[_0x18a316(0x2b0)][_0x18a316(0x214)](_0x4f0718),'patch':_0x4f0718[_0x18a316(0x2da)][_0x18a316(0x214)](_0x4f0718),'create':_0x4f0718[_0x18a316(0x279)][_0x18a316(0x214)](_0x4f0718),'remove':_0x4f0718[_0x18a316(0x272)][_0x18a316(0x214)](_0x4f0718),'get':_0x4f0718[_0x18a316(0x29d)][_0x18a316(0x214)](_0x4f0718),'getMany':_0x4f0718[_0x18a316(0x1bc)][_0x18a316(0x214)](_0x4f0718),'getEntry':_0x4f0718[_0x18a316(0x2ce)][_0x18a316(0x214)](_0x4f0718),'getRange':_0x4f0718['getRange'][_0x18a316(0x214)](_0x4f0718),'getValues':_0x4f0718[_0x18a316(0x2c2)][_0x18a316(0x214)](_0x4f0718),'getKeys':_0x4f0718['getKeys'][_0x18a316(0x214)](_0x4f0718),'getCount':_0x4f0718[_0x18a316(0x2b4)][_0x18a316(0x214)](_0x4f0718),'getByPrefix':_0x4f0718[_0x18a316(0x18c)][_0x18a316(0x214)](_0x4f0718),'getIndex':_0x4f0718['getIndex'][_0x18a316(0x214)](_0x4f0718),'byIndex':_0x4f0718[_0x18a316(0x16a)][_0x18a316(0x214)](_0x4f0718),'query':_0x4f0718[_0x18a316(0x25f)][_0x18a316(0x214)](_0x4f0718),'setTTL':_0x4f0718[_0x18a316(0x1cc)][_0x18a316(0x214)](_0x4f0718),'getTTL':_0x4f0718[_0x18a316(0x1ff)]['bind'](_0x4f0718),'clearTTL':_0x4f0718[_0x18a316(0x2b6)][_0x18a316(0x214)](_0x4f0718),'sweepExpiredTTL':_0x4f0718[_0x18a316(0x1ca)][_0x18a316(0x214)](_0x4f0718),'listTTL':_0x4f0718[_0x18a316(0x2c4)]['bind'](_0x4f0718),'ttlStats':_0x4f0718[_0x18a316(0x23c)][_0x18a316(0x214)](_0x4f0718),'setDefaultTTL':_0x4f0718[_0x18a316(0x1ed)][_0x18a316(0x214)](_0x4f0718),'getDefaultTTL':_0x4f0718[_0x18a316(0x1f2)][_0x18a316(0x214)](_0x4f0718),'clearDefaultTTL':_0x4f0718[_0x18a316(0x232)]['bind'](_0x4f0718),'ensureType':_0x4f0718[_0x18a316(0x1b9)]['bind'](_0x4f0718),'registerType':_0x4f0718[_0x18a316(0x271)][_0x18a316(0x214)](_0x4f0718),'hasType':_0x4f0718[_0x18a316(0x280)]['bind'](_0x4f0718),'dropType':_0x4f0718[_0x18a316(0x1bb)][_0x18a316(0x214)](_0x4f0718),'registerIndex':_0x4f0718[_0x18a316(0x25c)][_0x18a316(0x214)](_0x4f0718),'hasIndex':_0x4f0718[_0x18a316(0x237)][_0x18a316(0x214)](_0x4f0718),'dropIndex':_0x4f0718[_0x18a316(0x2cc)][_0x18a316(0x214)](_0x4f0718),'resetIndex':_0x4f0718[_0x18a316(0x234)][_0x18a316(0x214)](_0x4f0718),'indexReady':_0x4f0718['indexReady'][_0x18a316(0x214)](_0x4f0718),'getIndexStatus':_0x4f0718[_0x18a316(0x221)][_0x18a316(0x214)](_0x4f0718),'getClock':_0x4f0718[_0x18a316(0x189)][_0x18a316(0x214)](_0x4f0718),'getChanges':_0x4f0718['getChanges'][_0x18a316(0x214)](_0x4f0718),'queue':_0x4f0718[_0x18a316(0x255)],'files':_0x4f0718['files']};}return okdbFunctionsFacades={'createEnvFacade':_0x5ac306,'createQueueFacade':_0x24f103,'createFilesFacade':_0x2fe3f8,'createGlobalFacade':_0x1a49e1},okdbFunctionsFacades;}var okdbFunctionsDryrun,hasRequiredOkdbFunctionsDryrun;function requireOkdbFunctionsDryrun(){const _0x3e4e02=_0x17c6d3;if(hasRequiredOkdbFunctionsDryrun)return okdbFunctionsDryrun;hasRequiredOkdbFunctionsDryrun=0x1;const _0x2c70ba=new Set([_0x3e4e02(0x194),_0x3e4e02(0x2da),_0x3e4e02(0x279),_0x3e4e02(0x272),_0x3e4e02(0x2b0),_0x3e4e02(0x1cc),_0x3e4e02(0x2b6),_0x3e4e02(0x1ca),'setDefaultTTL',_0x3e4e02(0x232),_0x3e4e02(0x1bb),_0x3e4e02(0x2cc),_0x3e4e02(0x234)]),_0x441e46=new Set([_0x3e4e02(0x23a),_0x3e4e02(0x15b),_0x3e4e02(0x164),_0x3e4e02(0x24b)]),_0xe5e6f8=new Set([_0x3e4e02(0x1d0),_0x3e4e02(0x272)]);function _0x4c17ab(_0x479e54,_0x2ed99a){const _0x2e1e16=_0x3e4e02;if(_0x479e54===_0x2e1e16(0x22d)||_0x479e54==='global')return _0x2c70ba[_0x2e1e16(0x17f)](_0x2ed99a);if(_0x479e54===_0x2e1e16(0x255))return _0x441e46[_0x2e1e16(0x17f)](_0x2ed99a);if(_0x479e54===_0x2e1e16(0x227))return _0xe5e6f8[_0x2e1e16(0x17f)](_0x2ed99a);return![];}function _0x3b3140(_0x38a687,_0x53876d,_0x3d4023,_0xaa5e1b){if(!_0x38a687)return _0x38a687;return new Proxy(_0x38a687,{'get'(_0x335418,_0x49ef1c,_0x3c4dbc){const _0x1025c3=_0x1f6d,_0x4b0968=Reflect[_0x1025c3(0x29d)](_0x335418,_0x49ef1c,_0x3c4dbc);if(typeof _0x4b0968!==_0x1025c3(0x1af))return _0x4b0968;if(!_0x4c17ab(_0x53876d,_0x49ef1c))return _0x4b0968['bind'](_0x335418);return function(..._0x5c2e2f){const _0x51776f=_0x1025c3;return _0xaa5e1b[_0x51776f(0x2e0)]({'scope':_0x53876d,'method':_0x49ef1c,'envName':_0x3d4023,'args':_0x5c2e2f}),null;};}});}function _0x4f3641(_0x32efb4,_0x2a04d8,_0xc5566c,_0x764947){const _0x15b23a={};for(const _0x184385 of _0xc5566c){_0x15b23a[_0x184385]=(..._0x193653)=>{const _0x29303a=_0x1f6d;return _0x4c17ab(_0x32efb4,_0x184385)&&_0x764947[_0x29303a(0x2e0)]({'scope':_0x32efb4,'method':_0x184385,'envName':_0x2a04d8,'args':_0x193653}),null;};}return _0x15b23a;}return okdbFunctionsDryrun={'isWriteMethod':_0x4c17ab,'wrapForDryRun':_0x3b3140,'syntheticDryRunFacade':_0x4f3641,'ENV_WRITE_METHODS':_0x2c70ba,'QUEUE_WRITE_METHODS':_0x441e46,'FILES_WRITE_METHODS':_0xe5e6f8},okdbFunctionsDryrun;}var okdbFunctionsContext,hasRequiredOkdbFunctionsContext;function requireOkdbFunctionsContext(){const _0x43195a=_0x17c6d3;if(hasRequiredOkdbFunctionsContext)return okdbFunctionsContext;hasRequiredOkdbFunctionsContext=0x1;const {createEnvFacade:_0x49fc89,createQueueFacade:_0x5aee85,createFilesFacade:_0x136922,createGlobalFacade:_0x2bc10a}=requireOkdbFunctionsFacades(),{wrapForDryRun:_0x1468d3,syntheticDryRunFacade:_0x4dc6c3}=requireOkdbFunctionsDryrun(),_0x4834a1=['enqueue','getJob',_0x43195a(0x1d7),_0x43195a(0x15b),_0x43195a(0x164),'addBucket','getBucket',_0x43195a(0x2c3)],_0x30f4be=['upload','stream',_0x43195a(0x272),_0x43195a(0x29d),_0x43195a(0x1d7),'getByPath'];function _0x4e8b1f(_0x4b24f2,_0x4f6719){const _0x51f6fc=_0x43195a,_0xa22916=(_0x345bcd,_0x1a97fb,_0x4ad6dc)=>_0x4f6719({'type':'log','requestId':_0x4b24f2[_0x51f6fc(0x188)],'runId':_0x4b24f2[_0x51f6fc(0x257)],'entry':{'level':_0x345bcd,'msg':_0x1a97fb,'context':_0x4ad6dc,'ts':Date[_0x51f6fc(0x215)]()}}),_0x54a6c4=(_0x434df6,_0x571f32)=>_0xa22916(_0x51f6fc(0x26b),_0x434df6,_0x571f32);return _0x54a6c4[_0x51f6fc(0x26b)]=(_0x1db76f,_0x22ce7e)=>_0xa22916(_0x51f6fc(0x26b),_0x1db76f,_0x22ce7e),_0x54a6c4['warn']=(_0x2f8b1d,_0x498666)=>_0xa22916(_0x51f6fc(0x22f),_0x2f8b1d,_0x498666),_0x54a6c4[_0x51f6fc(0x267)]=(_0x3469c6,_0x54c63f)=>_0xa22916(_0x51f6fc(0x267),_0x3469c6,_0x54c63f),_0x54a6c4['debug']=(_0x29bc4e,_0x3f0945)=>_0xa22916(_0x51f6fc(0x1ad),_0x29bc4e,_0x3f0945),_0x54a6c4;}function _0xd3b951(_0x4d1abe,_0x468bf9,_0x53b7cc){const _0x4d64dc=_0x43195a;if(!_0x4d1abe)return null;return{'id':_0x4d1abe['id']??null,'type':_0x4d1abe[_0x4d64dc(0x159)]??null,'tries':_0x4d1abe[_0x4d64dc(0x1ea)]??null,'created':_0x4d1abe[_0x4d64dc(0x209)]??null,'tags':_0x4d1abe[_0x4d64dc(0x26a)]??null,'priority':_0x4d1abe[_0x4d64dc(0x18d)]??null,'bucket':_0x4d1abe[_0x4d64dc(0x2b7)]??null,'cron':_0x4d1abe[_0x4d64dc(0x2d7)]??null,'heartbeat'(){const _0x5a99a7=_0x4d64dc;_0x53b7cc({'type':_0x5a99a7(0x175),'requestId':_0x468bf9[_0x5a99a7(0x188)],'runId':_0x468bf9[_0x5a99a7(0x257)],'jobId':_0x4d1abe['id'],'claimId':_0x4d1abe[_0x5a99a7(0x1b5)]});},'markProgress'(_0x4b2cfa){const _0x5ab139=_0x4d64dc;_0x53b7cc({'type':_0x5ab139(0x26d),'requestId':_0x468bf9[_0x5ab139(0x188)],'runId':_0x468bf9[_0x5ab139(0x257)],'jobId':_0x4d1abe['id'],'claimId':_0x4d1abe['claimId'],'message':_0x4b2cfa});}};}function _0x232091(_0x44314b){const _0x4bdb21=_0x43195a;if(!_0x44314b)return null;return{'mode':_0x44314b[_0x4bdb21(0x219)]??null,'sourceType':_0x44314b[_0x4bdb21(0x20b)]??null,'sourceEnv':_0x44314b['sourceEnv']??null,'processor':_0x44314b[_0x4bdb21(0x2ae)]??null,'engineKey':_0x44314b['engineKey']??null,'cursorKey':_0x44314b['cursorKey']??null};}function _0x3ec945(_0xb6c9a3){const _0x2c5d37=_0x43195a;if(!_0xb6c9a3)return null;return{'mode':_0xb6c9a3[_0x2c5d37(0x219)]??null,'sourceType':_0xb6c9a3['sourceType']??null,'targetType':_0xb6c9a3['targetType']??null,'sourceEnv':_0xb6c9a3[_0x2c5d37(0x23e)]??null,'targetEnv':_0xb6c9a3['targetEnv']??null,'engineKey':_0xb6c9a3['engineKey']??null,'cursorKey':_0xb6c9a3['cursorKey']??null};}function _0x501a0c(_0x519fd5,_0x4f34d5,_0x51c5cd,_0xe9d920=null,_0x1055c2=null){const _0x58b535=_0x43195a,_0x3dc1ff={'runId':_0x4f34d5[_0x58b535(0x257)],'scope':_0x58b535(0x22d),'env':_0x4f34d5['envName']??null,'functionName':_0x4f34d5['functionName'],'trigger':_0x4f34d5[_0x58b535(0x26b)]?.[_0x58b535(0x251)]??'sdk','requestedAt':_0x4f34d5['info']?.[_0x58b535(0x2a4)]??Date[_0x58b535(0x215)]()},_0x1661b6=_0x4e8b1f(_0x4f34d5,_0x51c5cd),_0x54449f=AbortSignal[_0x58b535(0x245)](Math[_0x58b535(0x286)](0x1,_0x4f34d5[_0x58b535(0x2ad)]?.[_0x58b535(0x218)]??0x3e8)),_0x55c508=_0x1055c2?AbortSignal[_0x58b535(0x200)]([_0x54449f,_0x1055c2]):_0x54449f,_0x147d2d=_0x519fd5['env'](_0x4f34d5[_0x58b535(0x1e4)]),_0x48a0f5=_0xe9d920?_0x1468d3(_0x147d2d,_0x58b535(0x22d),_0x4f34d5[_0x58b535(0x1e4)],_0xe9d920):_0x147d2d,_0x13199a=_0xe9d920?_0x147d2d['queue']?_0x1468d3(_0x147d2d[_0x58b535(0x255)],'queue',_0x4f34d5['envName'],_0xe9d920):_0x4dc6c3('queue',_0x4f34d5[_0x58b535(0x1e4)],_0x4834a1,_0xe9d920):_0x147d2d[_0x58b535(0x255)],_0x237fc1=_0xe9d920?_0x147d2d[_0x58b535(0x227)]?_0x1468d3(_0x147d2d[_0x58b535(0x227)],_0x58b535(0x227),_0x4f34d5[_0x58b535(0x1e4)],_0xe9d920):_0x4dc6c3(_0x58b535(0x227),_0x4f34d5[_0x58b535(0x1e4)],_0x30f4be,_0xe9d920):_0x147d2d[_0x58b535(0x227)],_0x129519=_0x49fc89(_0x48a0f5),_0x123bdb=_0x5aee85(_0x13199a),_0x1acbb8=_0x136922(_0x237fc1);if(_0x123bdb)_0x129519[_0x58b535(0x255)]=_0x123bdb;if(_0x1acbb8)_0x129519[_0x58b535(0x227)]=_0x1acbb8;const _0x30a007={'payload':_0x4f34d5[_0x58b535(0x1bd)]??null,'info':_0x3dc1ff,'signal':_0x55c508,'log':_0x1661b6,'env':_0x129519},_0x3512ff=_0xd3b951(_0x4f34d5[_0x58b535(0x2d8)],_0x4f34d5,_0x51c5cd);if(_0x3512ff)_0x30a007['job']=_0x3512ff;const _0x3134d6=_0x232091(_0x4f34d5[_0x58b535(0x29f)]);if(_0x3134d6)_0x30a007['processor']=_0x3134d6;const _0x5d4b70=_0x3ec945(_0x4f34d5[_0x58b535(0x1aa)]);if(_0x5d4b70)_0x30a007[_0x58b535(0x172)]=_0x5d4b70;if(_0x4f34d5[_0x58b535(0x224)]){const _0xce8d4c=_0xe9d920?_0x1468d3(_0x519fd5,_0x58b535(0x275),null,_0xe9d920):_0x519fd5;_0x30a007[_0x58b535(0x1d4)]=_0x2bc10a(_0xce8d4c);}return _0x30a007;}return okdbFunctionsContext={'createExecutionContext':_0x501a0c,'createScriptLogger':_0x4e8b1f},okdbFunctionsContext;}var hasRequiredOkdbFunctionsSandboxWorker;function requireOkdbFunctionsSandboxWorker(){const _0x46ef02=_0x17c6d3;if(hasRequiredOkdbFunctionsSandboxWorker)return okdbFunctionsSandboxWorker$1;hasRequiredOkdbFunctionsSandboxWorker=0x1;const {parentPort:_0x53b3ba,workerData:_0x273cce}=require$$0$4;requireOkdbFatalReport()['enableFatalReport'](_0x46ef02(0x2b5));const _0xd377e6=require$$2,{compileFunctionExpression:_0x165eea}=requireOkdbFunctionsSandbox(),{serializeError:_0x3bc611}=requireOkdbFunctionsIpc(),{createExecutionContext:_0x117aee}=requireOkdbFunctionsContext(),_0x33792e=require$$6;let _0xb09e53=null,_0x3697ba=![];const _0x512bf4=new Map(),_0x1a1697=new Map();function _0x4db407(_0x66c8e6){const _0x435828=_0x46ef02;try{_0x53b3ba[_0x435828(0x167)](_0x66c8e6);}catch{}}function _0x2f29c5(_0x68dd3b){const _0x48256f=_0x46ef02,_0x493bfa=(_0x68dd3b[_0x48256f(0x1e4)]||'~system')+':'+_0x68dd3b['functionName']+':'+_0x68dd3b[_0x48256f(0x207)]+':'+_0x68dd3b[_0x48256f(0x1fe)];let _0x41aebc=_0x512bf4[_0x48256f(0x29d)](_0x493bfa);return!_0x41aebc&&(_0x41aebc=_0x165eea(_0x68dd3b[_0x48256f(0x246)],{'allowFetch':_0x68dd3b[_0x48256f(0x2ad)]?.[_0x48256f(0x197)]!==![],'allowedFetchDomains':_0x68dd3b['runtime']?.[_0x48256f(0x16f)],'filename':_0x68dd3b[_0x48256f(0x1c9)]+_0x48256f(0x1cf)}),_0x512bf4[_0x48256f(0x28c)](_0x493bfa,_0x41aebc)),_0x41aebc;}async function _0x50e086(_0x55ed82){const _0x565cd5=_0x46ef02,_0x5c7ac8=Date[_0x565cd5(0x215)](),_0x1f2eb5=new AbortController();_0x1a1697['set'](_0x55ed82[_0x565cd5(0x188)],_0x1f2eb5);try{const _0x3d1105=_0x2f29c5(_0x55ed82);if(_0x55ed82[_0x565cd5(0x1e4)])await _0xb09e53[_0x565cd5(0x26f)](_0x55ed82[_0x565cd5(0x1e4)]);const _0x718251=_0x55ed82[_0x565cd5(0x2cd)]?[]:null,_0x19d0db=_0x117aee(_0xb09e53,_0x55ed82,_0x4db407,_0x718251,_0x1f2eb5['signal']),_0x6f4f4b=await _0x3d1105(_0x19d0db),_0x175f63={'type':_0x565cd5(0x249),'requestId':_0x55ed82['requestId'],'runId':_0x55ed82['runId'],'result':_0x6f4f4b,'meta':{'runnerId':_0x565cd5(0x299)+process[_0x565cd5(0x1f8)],'startedAt':_0x5c7ac8,'finishedAt':Date[_0x565cd5(0x215)](),'durationMs':Date['now']()-_0x5c7ac8}};if(_0x718251)_0x175f63[_0x565cd5(0x2df)]=_0x718251;_0x4db407(_0x175f63);}catch(_0x71937d){_0x4db407({'type':_0x565cd5(0x267),'requestId':_0x55ed82[_0x565cd5(0x188)],'runId':_0x55ed82['runId'],'error':_0x3bc611(_0x71937d),'meta':{'runnerId':_0x565cd5(0x299)+process[_0x565cd5(0x1f8)],'startedAt':_0x5c7ac8,'finishedAt':Date[_0x565cd5(0x215)](),'durationMs':Date[_0x565cd5(0x215)]()-_0x5c7ac8}});}finally{_0x1a1697[_0x565cd5(0x290)](_0x55ed82[_0x565cd5(0x188)]);}}async function _0x5085f6(){const _0x535fb2=_0x46ef02;if(_0x3697ba)return;_0x3697ba=!![];try{await _0xb09e53?.[_0x535fb2(0x244)]?.();}catch{}process[_0x535fb2(0x1db)](0x0);}async function _0x37cd1f(){const _0x1c8cbc=_0x46ef02,{rootPath:_0x34296b}=_0x273cce??{};if(!_0x34296b)throw new Error(_0x1c8cbc(0x24a));_0xb09e53=new _0x33792e(_0x34296b,{'engines':![],'processors':![],'compaction':![],'http':![],'auth':{'open':!![]},'processes':![]}),await _0xb09e53[_0x1c8cbc(0x2c6)]();const _0x2a3470=setInterval(()=>{if(_0x3697ba)return;for(const [,_0x4a0c5b]of _0xb09e53['_envs']){try{_0x4a0c5b['_drainHandler']?.();}catch{}}},0xc8);if(typeof _0x2a3470['unref']==='function')_0x2a3470[_0x1c8cbc(0x239)]();_0x53b3ba['on'](_0x1c8cbc(0x1a5),_0x1e72a8=>{const _0x103c05=_0x1c8cbc;if(!_0x1e72a8||typeof _0x1e72a8!==_0x103c05(0x2af))return;if(_0x1e72a8['type']==='stop')return void _0x5085f6();if(_0x1e72a8[_0x103c05(0x159)]==='cancel'){_0x1a1697[_0x103c05(0x29d)](_0x1e72a8[_0x103c05(0x188)])?.['abort'](new Error(_0x103c05(0x171)));return;}_0x1e72a8[_0x103c05(0x159)]===_0x103c05(0x2d4)&&void _0x50e086(_0x1e72a8['job']);});const _0x4b3e63=Math[_0x1c8cbc(0x286)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x4b11dd=setInterval(()=>{const _0x202d22=_0x1c8cbc;try{_0x4db407({'type':_0x202d22(0x21d),'heapUsed':_0xd377e6[_0x202d22(0x199)]()[_0x202d22(0x1e8)]});}catch{}},_0x4b3e63);if(typeof _0x4b11dd[_0x1c8cbc(0x239)]===_0x1c8cbc(0x1af))_0x4b11dd[_0x1c8cbc(0x239)]();_0x4db407({'type':_0x1c8cbc(0x185)});}return _0x37cd1f()['catch'](_0x225c0e=>{const _0x5d7268=_0x46ef02;_0x4db407({'type':'fatal','error':_0x3bc611(_0x225c0e)}),process[_0x5d7268(0x1db)](0x1);}),okdbFunctionsSandboxWorker$1;}var okdbFunctionsSandboxWorkerExports=requireOkdbFunctionsSandboxWorker(),okdbFunctionsSandboxWorker=getDefaultExportFromCjs(okdbFunctionsSandboxWorkerExports);module[_0x17c6d3(0x1b7)]=okdbFunctionsSandboxWorker;
|