logixia 1.8.2 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/{index-CthBT3t8.d.mts → index-DknhKCCg.d.ts} +12 -1
  3. package/dist/index-DknhKCCg.d.ts.map +1 -0
  4. package/dist/{index-ClPZrfIU.d.ts → index-DnhKoNBG.d.mts} +12 -1
  5. package/dist/index-DnhKoNBG.d.mts.map +1 -0
  6. package/dist/index.d.mts +87 -16
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.d.ts +86 -15
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +78 -40
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +77 -37
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/{logitron-logger.module-Dx2mUz-g.d.ts → logitron-logger.module-BkPXi0He.d.ts} +97 -5
  15. package/dist/logitron-logger.module-BkPXi0He.d.ts.map +1 -0
  16. package/dist/logitron-logger.module-CMDM61Iz.js +2566 -0
  17. package/dist/logitron-logger.module-CMDM61Iz.js.map +1 -0
  18. package/dist/{logitron-logger.module-KU_L04y1.d.mts → logitron-logger.module-Cd5M_59H.d.mts} +97 -5
  19. package/dist/logitron-logger.module-Cd5M_59H.d.mts.map +1 -0
  20. package/dist/logitron-logger.module-uyg1-Khn.mjs +2285 -0
  21. package/dist/logitron-logger.module-uyg1-Khn.mjs.map +1 -0
  22. package/dist/middleware.d.mts +1 -1
  23. package/dist/middleware.d.mts.map +1 -1
  24. package/dist/middleware.d.ts +1 -1
  25. package/dist/middleware.d.ts.map +1 -1
  26. package/dist/middleware.js +4 -1
  27. package/dist/middleware.js.map +1 -1
  28. package/dist/middleware.mjs +4 -1
  29. package/dist/middleware.mjs.map +1 -1
  30. package/dist/nest.d.mts +4 -44
  31. package/dist/nest.d.mts.map +1 -1
  32. package/dist/nest.d.ts +4 -44
  33. package/dist/nest.d.ts.map +1 -1
  34. package/dist/nest.js +3 -93
  35. package/dist/nest.mjs +3 -92
  36. package/dist/search.d.mts +1 -1
  37. package/dist/search.js +1 -1
  38. package/dist/search.mjs +1 -1
  39. package/dist/testing.d.mts +1 -1
  40. package/dist/testing.d.ts +1 -1
  41. package/dist/{transport.manager-BCnLEmOy.mjs → transport.manager-D3U03fJg.mjs} +21 -11
  42. package/dist/transport.manager-D3U03fJg.mjs.map +1 -0
  43. package/dist/{transport.manager-DU1W0wV3.js → transport.manager-DPjB-dFH.js} +49 -15
  44. package/dist/transport.manager-DPjB-dFH.js.map +1 -0
  45. package/dist/transports.d.mts +3 -1
  46. package/dist/transports.d.mts.map +1 -1
  47. package/dist/transports.d.ts +3 -1
  48. package/dist/transports.d.ts.map +1 -1
  49. package/dist/transports.js +1 -1
  50. package/dist/transports.mjs +1 -1
  51. package/package.json +24 -23
  52. package/dist/build-DOx-YxF1.js +0 -536
  53. package/dist/build-DOx-YxF1.js.map +0 -1
  54. package/dist/build-DWmxA6A2.mjs +0 -536
  55. package/dist/build-DWmxA6A2.mjs.map +0 -1
  56. package/dist/chunk-BTgCAUrQ.js +0 -53
  57. package/dist/chunk-uEZWKkIX.mjs +0 -32
  58. package/dist/esm-1Ra90uql.mjs +0 -4256
  59. package/dist/esm-1Ra90uql.mjs.map +0 -1
  60. package/dist/esm-FNhqFIqG.js +0 -4267
  61. package/dist/esm-FNhqFIqG.js.map +0 -1
  62. package/dist/index-ClPZrfIU.d.ts.map +0 -1
  63. package/dist/index-CthBT3t8.d.mts.map +0 -1
  64. package/dist/lib-8XKCHDOH.mjs +0 -66301
  65. package/dist/lib-8XKCHDOH.mjs.map +0 -1
  66. package/dist/lib-BNEYXXTQ.js +0 -66304
  67. package/dist/lib-BNEYXXTQ.js.map +0 -1
  68. package/dist/logitron-logger.module-DucvDnxZ.mjs +0 -10986
  69. package/dist/logitron-logger.module-DucvDnxZ.mjs.map +0 -1
  70. package/dist/logitron-logger.module-Dx2mUz-g.d.ts.map +0 -1
  71. package/dist/logitron-logger.module-Fof9Er2E.js +0 -11260
  72. package/dist/logitron-logger.module-Fof9Er2E.js.map +0 -1
  73. package/dist/logitron-logger.module-KU_L04y1.d.mts.map +0 -1
  74. package/dist/nest.js.map +0 -1
  75. package/dist/nest.mjs.map +0 -1
  76. package/dist/promise-BI-3eI4n.js +0 -22743
  77. package/dist/promise-BI-3eI4n.js.map +0 -1
  78. package/dist/promise-BrZcjavs.mjs +0 -22740
  79. package/dist/promise-BrZcjavs.mjs.map +0 -1
  80. package/dist/sqlite3-CSkpjC90.js +0 -420
  81. package/dist/sqlite3-CSkpjC90.js.map +0 -1
  82. package/dist/sqlite3-DD2_nRRH.mjs +0 -417
  83. package/dist/sqlite3-DD2_nRRH.mjs.map +0 -1
  84. package/dist/transport.manager-BCnLEmOy.mjs.map +0 -1
  85. package/dist/transport.manager-DU1W0wV3.js.map +0 -1
  86. /package/dist/{search-DanSf_yc.d.mts → search-DN676Dnz.d.mts} +0 -0
  87. /package/dist/{search-1txemGPh.mjs → search-DOvSI-mb.mjs} +0 -0
  88. /package/dist/{search-DeZHhWxB.js → search-DoZF3RZj.js} +0 -0
@@ -1,536 +0,0 @@
1
- import { a as __toESM, n as __reExport, r as __require, t as __commonJS } from "./chunk-uEZWKkIX.mjs";
2
-
3
- //#region node_modules/sqlite/build/utils/format-error.js
4
- var require_format_error = /* @__PURE__ */ __commonJS({ "node_modules/sqlite/build/utils/format-error.js": ((exports) => {
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.formatError = void 0;
7
- function formatError(err) {
8
- if (err instanceof Error) return err;
9
- if (typeof err === "object") {
10
- const newError = /* @__PURE__ */ new Error();
11
- for (let prop in err) newError[prop] = err[prop];
12
- if (err.message) newError.message = err.message;
13
- return newError;
14
- }
15
- if (typeof err === "string") return new Error(err);
16
- return new Error(err);
17
- }
18
- exports.formatError = formatError;
19
- }) });
20
-
21
- //#endregion
22
- //#region node_modules/sqlite/build/Statement.js
23
- var require_Statement = /* @__PURE__ */ __commonJS({ "node_modules/sqlite/build/Statement.js": ((exports) => {
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.Statement = void 0;
26
- const format_error_1$1 = require_format_error();
27
- /**
28
- * Promisified wrapper for the sqlite3#Statement interface.
29
- */
30
- var Statement = class {
31
- constructor(stmt) {
32
- this.stmt = stmt;
33
- }
34
- /**
35
- * Returns the underlying sqlite3 Statement instance
36
- */
37
- getStatementInstance() {
38
- return this.stmt;
39
- }
40
- /**
41
- * Binds parameters to the prepared statement.
42
- *
43
- * Binding parameters with this function completely resets the statement object and row cursor
44
- * and removes all previously bound parameters, if any.
45
- */
46
- bind(...params) {
47
- return new Promise((resolve, reject) => {
48
- this.stmt.bind(...params, (err) => {
49
- if (err) return reject((0, format_error_1$1.formatError)(err));
50
- resolve();
51
- });
52
- });
53
- }
54
- /**
55
- * Resets the row cursor of the statement and preserves the parameter bindings.
56
- * Use this function to re-execute the same query with the same bindings.
57
- */
58
- reset() {
59
- return new Promise((resolve) => {
60
- this.stmt.reset(() => {
61
- resolve();
62
- });
63
- });
64
- }
65
- /**
66
- * Finalizes the statement. This is typically optional, but if you experience long delays before
67
- * the next query is executed, explicitly finalizing your statement might be necessary.
68
- * This might be the case when you run an exclusive query (see section Control Flow).
69
- * After the statement is finalized, all further function calls on that statement object
70
- * will throw errors.
71
- */
72
- finalize() {
73
- return new Promise((resolve, reject) => {
74
- this.stmt.finalize((err) => {
75
- if (err) return reject((0, format_error_1$1.formatError)(err));
76
- resolve();
77
- });
78
- });
79
- }
80
- /**
81
- * Binds parameters and executes the statement.
82
- *
83
- * If you specify bind parameters, they will be bound to the statement before it is executed.
84
- * Note that the bindings and the row cursor are reset when you specify even a single bind parameter.
85
- *
86
- * The execution behavior is identical to the Database#run method with the difference that the
87
- * statement will not be finalized after it is run. This means you can run it multiple times.
88
- *
89
- * @param {any} [params, ...] When the SQL statement contains placeholders, you
90
- * can pass them in here. They will be bound to the statement before it is
91
- * executed. There are three ways of passing bind parameters: directly in
92
- * the function's arguments, as an array, and as an object for named
93
- * parameters. This automatically sanitizes inputs.
94
- */
95
- run(...params) {
96
- return new Promise((resolve, reject) => {
97
- const stmt = this;
98
- this.stmt.run(...params, function(err) {
99
- if (err) return reject((0, format_error_1$1.formatError)(err));
100
- resolve({
101
- stmt,
102
- lastID: this.lastID,
103
- changes: this.changes
104
- });
105
- });
106
- });
107
- }
108
- /**
109
- * Binds parameters, executes the statement and retrieves the first result row.
110
- * The parameters are the same as the Statement#run function, with the following differences:
111
- *
112
- * Using this method can leave the database locked, as the database awaits further
113
- * calls to Statement#get to retrieve subsequent rows. To inform the database that you
114
- * are finished retrieving rows, you should either finalize (with Statement#finalize)
115
- * or reset (with Statement#reset) the statement.
116
- *
117
- * @param {any} [params, ...] When the SQL statement contains placeholders, you
118
- * can pass them in here. They will be bound to the statement before it is
119
- * executed. There are three ways of passing bind parameters: directly in
120
- * the function's arguments, as an array, and as an object for named
121
- * parameters. This automatically sanitizes inputs.
122
- */
123
- get(...params) {
124
- return new Promise((resolve, reject) => {
125
- this.stmt.get(...params, (err, row) => {
126
- if (err) return reject((0, format_error_1$1.formatError)(err));
127
- resolve(row);
128
- });
129
- });
130
- }
131
- /**
132
- * Binds parameters, executes the statement and calls the callback with all result rows.
133
- * The parameters are the same as the Statement#run function, with the following differences:
134
- *
135
- * If the result set is empty, it will resolve to an empty array, otherwise it contains an
136
- * object for each result row which in turn contains the values of that row.
137
- * Like with Statement#run, the statement will not be finalized after executing this function.
138
- *
139
- * @param {any} [params, ...] When the SQL statement contains placeholders, you
140
- * can pass them in here. They will be bound to the statement before it is
141
- * executed. There are three ways of passing bind parameters: directly in
142
- * the function's arguments, as an array, and as an object for named
143
- * parameters. This automatically sanitizes inputs.
144
- *
145
- * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseallsql-param--callback
146
- */
147
- all(...params) {
148
- return new Promise((resolve, reject) => {
149
- this.stmt.all(...params, (err, rows) => {
150
- if (err) return reject((0, format_error_1$1.formatError)(err));
151
- resolve(rows);
152
- });
153
- });
154
- }
155
- each(...params) {
156
- return new Promise((resolve, reject) => {
157
- const callback = params.pop();
158
- if (!callback || typeof callback !== "function") throw new Error("sqlite: Last param of Statement#each() must be a callback function");
159
- if (params.length > 0) {
160
- const positional = params.pop();
161
- if (typeof positional === "function") throw new Error("sqlite: Statement#each() should only have a single callback defined. See readme for usage.");
162
- params.push(positional);
163
- }
164
- this.stmt.each(...params, (err, row) => {
165
- if (err) return callback((0, format_error_1$1.formatError)(err), null);
166
- callback(null, row);
167
- }, (err, count) => {
168
- if (err) return reject((0, format_error_1$1.formatError)(err));
169
- resolve(count);
170
- });
171
- });
172
- }
173
- };
174
- exports.Statement = Statement;
175
- }) });
176
-
177
- //#endregion
178
- //#region node_modules/sqlite/build/utils/migrate.js
179
- var require_migrate = /* @__PURE__ */ __commonJS({ "node_modules/sqlite/build/utils/migrate.js": ((exports) => {
180
- Object.defineProperty(exports, "__esModule", { value: true });
181
- exports.migrate = exports.readMigrations = void 0;
182
- const fs = __require("fs");
183
- const path = __require("path");
184
- async function readMigrations(migrationPath) {
185
- const migrationsPath = migrationPath || path.join(process.cwd(), "migrations");
186
- const location = path.resolve(migrationsPath);
187
- const migrationFiles = await new Promise((resolve, reject) => {
188
- fs.readdir(location, (err, files) => {
189
- if (err) return reject(err);
190
- resolve(files.map((x) => x.match(/^(\d+).(.*?)\.sql$/)).filter((x) => x !== null).map((x) => ({
191
- id: Number(x[1]),
192
- name: x[2],
193
- filename: x[0]
194
- })).sort((a, b) => Math.sign(a.id - b.id)));
195
- });
196
- });
197
- if (!migrationFiles.length) throw new Error(`No migration files found in '${location}'.`);
198
- return Promise.all(migrationFiles.map((migration) => new Promise((resolve, reject) => {
199
- const filename = path.join(location, migration.filename);
200
- fs.readFile(filename, "utf-8", (err, data) => {
201
- if (err) return reject(err);
202
- const [up, down] = data.split(/^--\s+?down\b/im);
203
- const migrationData = migration;
204
- migrationData.up = up.replace(/^-- .*?$/gm, "").trim();
205
- migrationData.down = down ? down.trim() : "";
206
- resolve(migrationData);
207
- });
208
- })));
209
- }
210
- exports.readMigrations = readMigrations;
211
- /**
212
- * Migrates database schema to the latest version
213
- */
214
- async function migrate(db, config = {}) {
215
- config.force = config.force || false;
216
- config.table = config.table || "migrations";
217
- const { force, table } = config;
218
- const migrations = config.migrations ? config.migrations : await readMigrations(config.migrationsPath);
219
- await db.run(`CREATE TABLE IF NOT EXISTS "${table}" (
220
- id INTEGER PRIMARY KEY,
221
- name TEXT NOT NULL,
222
- up TEXT NOT NULL,
223
- down TEXT NOT NULL
224
- )`);
225
- let dbMigrations = await db.all(`SELECT id, name, up, down FROM "${table}" ORDER BY id ASC`);
226
- const lastMigration = migrations[migrations.length - 1];
227
- for (const migration of dbMigrations.slice().sort((a, b) => Math.sign(b.id - a.id))) if (!migrations.some((x) => x.id === migration.id) || force && migration.id === lastMigration.id) {
228
- await db.run("BEGIN");
229
- try {
230
- await db.exec(migration.down);
231
- await db.run(`DELETE FROM "${table}" WHERE id = ?`, migration.id);
232
- await db.run("COMMIT");
233
- dbMigrations = dbMigrations.filter((x) => x.id !== migration.id);
234
- } catch (err) {
235
- await db.run("ROLLBACK");
236
- throw err;
237
- }
238
- } else break;
239
- const lastMigrationId = dbMigrations.length ? dbMigrations[dbMigrations.length - 1].id : 0;
240
- for (const migration of migrations) if (migration.id > lastMigrationId) {
241
- await db.run("BEGIN");
242
- try {
243
- await db.exec(migration.up);
244
- await db.run(`INSERT INTO "${table}" (id, name, up, down) VALUES (?, ?, ?, ?)`, migration.id, migration.name, migration.up, migration.down);
245
- await db.run("COMMIT");
246
- } catch (err) {
247
- await db.run("ROLLBACK");
248
- throw err;
249
- }
250
- }
251
- }
252
- exports.migrate = migrate;
253
- }) });
254
-
255
- //#endregion
256
- //#region node_modules/sqlite/build/utils/strings.js
257
- var require_strings = /* @__PURE__ */ __commonJS({ "node_modules/sqlite/build/utils/strings.js": ((exports) => {
258
- Object.defineProperty(exports, "__esModule", { value: true });
259
- exports.toSqlParams = void 0;
260
- /**
261
- * Allows for using strings and `sql-template-strings`. Converts both to a
262
- * format that's usable by the SQL methods
263
- *
264
- * @param sql A SQL string or `sql-template-strings` object
265
- * @param params An array of parameters
266
- */
267
- function toSqlParams(sql, params = []) {
268
- if (typeof sql === "string") return {
269
- sql,
270
- params
271
- };
272
- return {
273
- sql: sql.sql,
274
- params: sql.values
275
- };
276
- }
277
- exports.toSqlParams = toSqlParams;
278
- }) });
279
-
280
- //#endregion
281
- //#region node_modules/sqlite/build/Database.js
282
- var require_Database = /* @__PURE__ */ __commonJS({ "node_modules/sqlite/build/Database.js": ((exports) => {
283
- Object.defineProperty(exports, "__esModule", { value: true });
284
- exports.Database = void 0;
285
- const Statement_1 = require_Statement();
286
- const migrate_1 = require_migrate();
287
- const strings_1 = require_strings();
288
- const format_error_1 = require_format_error();
289
- /**
290
- * Promisified wrapper for the sqlite3#Database interface.
291
- */
292
- var Database$1 = class {
293
- constructor(config) {
294
- this.config = config;
295
- this.db = null;
296
- }
297
- /**
298
- * Event handler when verbose mode is enabled.
299
- * @see https://github.com/mapbox/node-sqlite3/wiki/Debugging
300
- */
301
- on(event, listener) {
302
- this.db.on(event, listener);
303
- }
304
- /**
305
- * Returns the underlying sqlite3 Database instance
306
- */
307
- getDatabaseInstance() {
308
- return this.db;
309
- }
310
- /**
311
- * Opens the database
312
- */
313
- open() {
314
- return new Promise((resolve, reject) => {
315
- let { filename, mode, driver } = this.config;
316
- if (filename === null || filename === void 0) throw new Error("sqlite: filename cannot be null / undefined");
317
- if (!driver) throw new Error("sqlite: driver is not defined");
318
- if (mode) this.db = new driver(filename, mode, (err) => {
319
- if (err) return reject((0, format_error_1.formatError)(err));
320
- resolve();
321
- });
322
- else this.db = new driver(filename, (err) => {
323
- if (err) return reject((0, format_error_1.formatError)(err));
324
- resolve();
325
- });
326
- });
327
- }
328
- /**
329
- * Closes the database.
330
- */
331
- close() {
332
- return new Promise((resolve, reject) => {
333
- this.db.close((err) => {
334
- if (err) return reject((0, format_error_1.formatError)(err));
335
- resolve();
336
- });
337
- });
338
- }
339
- /**
340
- * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseconfigureoption-value
341
- */
342
- configure(option, value) {
343
- this.db.configure(option, value);
344
- }
345
- /**
346
- * Runs the SQL query with the specified parameters. It does not retrieve any result data.
347
- * The function returns the Database object for which it was called to allow for function chaining.
348
- *
349
- * @param {string} sql The SQL query to run.
350
- *
351
- * @param {any} [params, ...] When the SQL statement contains placeholders, you
352
- * can pass them in here. They will be bound to the statement before it is
353
- * executed. There are three ways of passing bind parameters: directly in
354
- * the function's arguments, as an array, and as an object for named
355
- * parameters. This automatically sanitizes inputs.
356
- *
357
- * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaserunsql-param--callback
358
- */
359
- run(sql, ...params) {
360
- return new Promise((resolve, reject) => {
361
- const sqlObj = (0, strings_1.toSqlParams)(sql, params);
362
- this.db.run(sqlObj.sql, ...sqlObj.params, function(err) {
363
- if (err) return reject((0, format_error_1.formatError)(err));
364
- resolve({
365
- stmt: new Statement_1.Statement(this.stmt),
366
- lastID: this.lastID,
367
- changes: this.changes
368
- });
369
- });
370
- });
371
- }
372
- /**
373
- * Runs the SQL query with the specified parameters and resolves with
374
- * with the first result row afterwards. If the result set is empty, returns undefined.
375
- *
376
- * The property names correspond to the column names of the result set.
377
- * It is impossible to access them by column index; the only supported way is by column name.
378
- *
379
- * @param {string} sql The SQL query to run.
380
- *
381
- * @param {any} [params, ...] When the SQL statement contains placeholders, you
382
- * can pass them in here. They will be bound to the statement before it is
383
- * executed. There are three ways of passing bind parameters: directly in
384
- * the function's arguments, as an array, and as an object for named
385
- * parameters. This automatically sanitizes inputs.
386
- *
387
- * @see https://github.com/mapbox/node-sqlite3/wiki/API#databasegetsql-param--callback
388
- */
389
- get(sql, ...params) {
390
- return new Promise((resolve, reject) => {
391
- const sqlObj = (0, strings_1.toSqlParams)(sql, params);
392
- this.db.get(sqlObj.sql, ...sqlObj.params, (err, row) => {
393
- if (err) return reject((0, format_error_1.formatError)(err));
394
- resolve(row);
395
- });
396
- });
397
- }
398
- each(sql, ...params) {
399
- return new Promise((resolve, reject) => {
400
- const callback = params.pop();
401
- if (!callback || typeof callback !== "function") throw new Error("sqlite: Last param of Database#each() must be a callback function");
402
- if (params.length > 0) {
403
- const positional = params.pop();
404
- if (typeof positional === "function") throw new Error("sqlite: Database#each() should only have a single callback defined. See readme for usage.");
405
- params.push(positional);
406
- }
407
- const sqlObj = (0, strings_1.toSqlParams)(sql, params);
408
- this.db.each(sqlObj.sql, ...sqlObj.params, (err, row) => {
409
- if (err) return callback((0, format_error_1.formatError)(err), null);
410
- callback(null, row);
411
- }, (err, count) => {
412
- if (err) return reject((0, format_error_1.formatError)(err));
413
- resolve(count);
414
- });
415
- });
416
- }
417
- /**
418
- * Runs the SQL query with the specified parameters. The parameters are the same as the
419
- * Database#run function, with the following differences:
420
- *
421
- * If the result set is empty, it will be an empty array, otherwise it will
422
- * have an object for each result row which
423
- * in turn contains the values of that row, like the Database#get function.
424
- *
425
- * Note that it first retrieves all result rows and stores them in memory.
426
- * For queries that have potentially large result sets, use the Database#each
427
- * function to retrieve all rows or Database#prepare followed by multiple
428
- * Statement#get calls to retrieve a previously unknown amount of rows.
429
- *
430
- * @param {string} sql The SQL query to run.
431
- *
432
- * @param {any} [params, ...] When the SQL statement contains placeholders, you
433
- * can pass them in here. They will be bound to the statement before it is
434
- * executed. There are three ways of passing bind parameters: directly in
435
- * the function's arguments, as an array, and as an object for named
436
- * parameters. This automatically sanitizes inputs.
437
- *
438
- * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseallsql-param--callback
439
- */
440
- all(sql, ...params) {
441
- return new Promise((resolve, reject) => {
442
- const sqlObj = (0, strings_1.toSqlParams)(sql, params);
443
- this.db.all(sqlObj.sql, ...sqlObj.params, (err, rows) => {
444
- if (err) return reject((0, format_error_1.formatError)(err));
445
- resolve(rows);
446
- });
447
- });
448
- }
449
- /**
450
- * Runs all SQL queries in the supplied string. No result rows are retrieved. If a query fails,
451
- * no subsequent statements will be executed (wrap it in a transaction if you want all
452
- * or none to be executed).
453
- *
454
- * Note: This function will only execute statements up to the first NULL byte.
455
- * Comments are not allowed and will lead to runtime errors.
456
- *
457
- * @param {string} sql The SQL query to run.
458
- * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseexecsql-callback
459
- */
460
- exec(sql) {
461
- return new Promise((resolve, reject) => {
462
- const sqlObj = (0, strings_1.toSqlParams)(sql);
463
- this.db.exec(sqlObj.sql, (err) => {
464
- if (err) return reject((0, format_error_1.formatError)(err));
465
- resolve();
466
- });
467
- });
468
- }
469
- /**
470
- * Prepares the SQL statement and optionally binds the specified parameters.
471
- * When bind parameters are supplied, they are bound to the prepared statement.
472
- *
473
- * @param {string} sql The SQL query to run.
474
- * @param {any} [params, ...] When the SQL statement contains placeholders, you
475
- * can pass them in here. They will be bound to the statement before it is
476
- * executed. There are three ways of passing bind parameters: directly in
477
- * the function's arguments, as an array, and as an object for named
478
- * parameters. This automatically sanitizes inputs.
479
- * @returns Promise<Statement> Statement object
480
- */
481
- prepare(sql, ...params) {
482
- return new Promise((resolve, reject) => {
483
- const sqlObj = (0, strings_1.toSqlParams)(sql, params);
484
- const stmt = this.db.prepare(sqlObj.sql, ...sqlObj.params, (err) => {
485
- if (err) return reject(err);
486
- resolve(new Statement_1.Statement(stmt));
487
- });
488
- });
489
- }
490
- /**
491
- * Loads a compiled SQLite extension into the database connection object.
492
- *
493
- * @param {string} path Filename of the extension to load
494
- */
495
- loadExtension(path$1) {
496
- return new Promise((resolve, reject) => {
497
- this.db.loadExtension(path$1, (err) => {
498
- if (err) return reject((0, format_error_1.formatError)(err));
499
- resolve();
500
- });
501
- });
502
- }
503
- /**
504
- * Performs a database migration.
505
- */
506
- async migrate(config) {
507
- await (0, migrate_1.migrate)(this, config);
508
- }
509
- /**
510
- * The methods underneath requires creative work to implement. PRs / proposals accepted!
511
- */
512
- serialize() {
513
- throw new Error("sqlite: Currently not implemented. Use getDatabaseInstance().serialize() instead.");
514
- }
515
- parallelize() {
516
- throw new Error("sqlite: Currently not implemented. Use getDatabaseInstance().parallelize() instead.");
517
- }
518
- };
519
- exports.Database = Database$1;
520
- }) });
521
-
522
- //#endregion
523
- //#region node_modules/sqlite/build/index.mjs
524
- var import_Database = /* @__PURE__ */ __toESM(require_Database(), 1);
525
- /**
526
- * Opens a database for manipulation. Most users will call this to get started.
527
- */
528
- async function open(config) {
529
- const db = new import_Database.default.Database(config);
530
- await db.open();
531
- return db;
532
- }
533
-
534
- //#endregion
535
- export { open };
536
- //# sourceMappingURL=build-DWmxA6A2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build-DWmxA6A2.mjs","names":["format_error_1","Database","path","Database"],"sources":["../node_modules/sqlite/build/utils/format-error.js","../node_modules/sqlite/build/Statement.js","../node_modules/sqlite/build/utils/migrate.js","../node_modules/sqlite/build/utils/strings.js","../node_modules/sqlite/build/Database.js","../node_modules/sqlite/build/index.mjs"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.formatError = void 0;\nfunction formatError(err) {\n if (err instanceof Error) {\n return err;\n }\n if (typeof err === 'object') {\n const newError = new Error();\n for (let prop in err) {\n newError[prop] = err[prop];\n }\n // message isn't part of the enumerable set\n if (err.message) {\n newError.message = err.message;\n }\n return newError;\n }\n if (typeof err === 'string') {\n return new Error(err);\n }\n return new Error(err);\n}\nexports.formatError = formatError;\n//# sourceMappingURL=format-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Statement = void 0;\nconst format_error_1 = require(\"./utils/format-error\");\n/**\n * Promisified wrapper for the sqlite3#Statement interface.\n */\nclass Statement {\n constructor(stmt) {\n this.stmt = stmt;\n }\n /**\n * Returns the underlying sqlite3 Statement instance\n */\n getStatementInstance() {\n return this.stmt;\n }\n /**\n * Binds parameters to the prepared statement.\n *\n * Binding parameters with this function completely resets the statement object and row cursor\n * and removes all previously bound parameters, if any.\n */\n bind(...params) {\n return new Promise((resolve, reject) => {\n this.stmt.bind(...params, err => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve();\n });\n });\n }\n /**\n * Resets the row cursor of the statement and preserves the parameter bindings.\n * Use this function to re-execute the same query with the same bindings.\n */\n reset() {\n return new Promise(resolve => {\n this.stmt.reset(() => {\n resolve();\n });\n });\n }\n /**\n * Finalizes the statement. This is typically optional, but if you experience long delays before\n * the next query is executed, explicitly finalizing your statement might be necessary.\n * This might be the case when you run an exclusive query (see section Control Flow).\n * After the statement is finalized, all further function calls on that statement object\n * will throw errors.\n */\n finalize() {\n return new Promise((resolve, reject) => {\n this.stmt.finalize(err => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve();\n });\n });\n }\n /**\n * Binds parameters and executes the statement.\n *\n * If you specify bind parameters, they will be bound to the statement before it is executed.\n * Note that the bindings and the row cursor are reset when you specify even a single bind parameter.\n *\n * The execution behavior is identical to the Database#run method with the difference that the\n * statement will not be finalized after it is run. This means you can run it multiple times.\n *\n * @param {any} [params, ...] When the SQL statement contains placeholders, you\n * can pass them in here. They will be bound to the statement before it is\n * executed. There are three ways of passing bind parameters: directly in\n * the function's arguments, as an array, and as an object for named\n * parameters. This automatically sanitizes inputs.\n */\n run(...params) {\n return new Promise((resolve, reject) => {\n const stmt = this;\n this.stmt.run(...params, function (err) {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve({\n stmt,\n lastID: this.lastID,\n changes: this.changes\n });\n });\n });\n }\n /**\n * Binds parameters, executes the statement and retrieves the first result row.\n * The parameters are the same as the Statement#run function, with the following differences:\n *\n * Using this method can leave the database locked, as the database awaits further\n * calls to Statement#get to retrieve subsequent rows. To inform the database that you\n * are finished retrieving rows, you should either finalize (with Statement#finalize)\n * or reset (with Statement#reset) the statement.\n *\n * @param {any} [params, ...] When the SQL statement contains placeholders, you\n * can pass them in here. They will be bound to the statement before it is\n * executed. There are three ways of passing bind parameters: directly in\n * the function's arguments, as an array, and as an object for named\n * parameters. This automatically sanitizes inputs.\n */\n get(...params) {\n return new Promise((resolve, reject) => {\n this.stmt.get(...params, (err, row) => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve(row);\n });\n });\n }\n /**\n * Binds parameters, executes the statement and calls the callback with all result rows.\n * The parameters are the same as the Statement#run function, with the following differences:\n *\n * If the result set is empty, it will resolve to an empty array, otherwise it contains an\n * object for each result row which in turn contains the values of that row.\n * Like with Statement#run, the statement will not be finalized after executing this function.\n *\n * @param {any} [params, ...] When the SQL statement contains placeholders, you\n * can pass them in here. They will be bound to the statement before it is\n * executed. There are three ways of passing bind parameters: directly in\n * the function's arguments, as an array, and as an object for named\n * parameters. This automatically sanitizes inputs.\n *\n * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseallsql-param--callback\n */\n all(...params) {\n return new Promise((resolve, reject) => {\n this.stmt.all(...params, (err, rows) => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve(rows);\n });\n });\n }\n each(...params) {\n return new Promise((resolve, reject) => {\n const callback = params.pop();\n if (!callback || typeof callback !== 'function') {\n throw new Error('sqlite: Last param of Statement#each() must be a callback function');\n }\n if (params.length > 0) {\n const positional = params.pop();\n if (typeof positional === 'function') {\n throw new Error('sqlite: Statement#each() should only have a single callback defined. See readme for usage.');\n }\n params.push(positional);\n }\n this.stmt.each(...params, (err, row) => {\n if (err) {\n return callback((0, format_error_1.formatError)(err), null);\n }\n callback(null, row);\n }, (err, count) => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve(count);\n });\n });\n }\n}\nexports.Statement = Statement;\n//# sourceMappingURL=Statement.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.migrate = exports.readMigrations = void 0;\nconst fs = require(\"fs\");\nconst path = require(\"path\");\nasync function readMigrations(migrationPath) {\n const migrationsPath = migrationPath || path.join(process.cwd(), 'migrations');\n const location = path.resolve(migrationsPath);\n // Get the list of migration files, for example:\n // { id: 1, name: 'initial', filename: '001-initial.sql' }\n // { id: 2, name: 'feature', filename: '002-feature.sql' }\n const migrationFiles = await new Promise((resolve, reject) => {\n fs.readdir(location, (err, files) => {\n if (err) {\n return reject(err);\n }\n resolve(files\n .map(x => x.match(/^(\\d+).(.*?)\\.sql$/))\n .filter(x => x !== null)\n .map(x => ({ id: Number(x[1]), name: x[2], filename: x[0] }))\n .sort((a, b) => Math.sign(a.id - b.id)));\n });\n });\n if (!migrationFiles.length) {\n throw new Error(`No migration files found in '${location}'.`);\n }\n // Get the list of migrations, for example:\n // { id: 1, name: 'initial', filename: '001-initial.sql', up: ..., down: ... }\n // { id: 2, name: 'feature', filename: '002-feature.sql', up: ..., down: ... }\n return Promise.all(migrationFiles.map(migration => new Promise((resolve, reject) => {\n const filename = path.join(location, migration.filename);\n fs.readFile(filename, 'utf-8', (err, data) => {\n if (err) {\n return reject(err);\n }\n const [up, down] = data.split(/^--\\s+?down\\b/im);\n const migrationData = migration;\n migrationData.up = up.replace(/^-- .*?$/gm, '').trim(); // Remove comments\n migrationData.down = down ? down.trim() : ''; // and trim whitespaces\n resolve(migrationData);\n });\n })));\n}\nexports.readMigrations = readMigrations;\n/**\n * Migrates database schema to the latest version\n */\nasync function migrate(db, config = {}) {\n config.force = config.force || false;\n config.table = config.table || 'migrations';\n const { force, table } = config;\n const migrations = config.migrations\n ? config.migrations\n : await readMigrations(config.migrationsPath);\n // Create a database table for migrations meta data if it doesn't exist\n await db.run(`CREATE TABLE IF NOT EXISTS \"${table}\" (\n id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n up TEXT NOT NULL,\n down TEXT NOT NULL\n)`);\n // Get the list of already applied migrations\n let dbMigrations = await db.all(`SELECT id, name, up, down FROM \"${table}\" ORDER BY id ASC`);\n // Undo migrations that exist only in the database but not in files,\n // also undo the last migration if the `force` option is enabled.\n const lastMigration = migrations[migrations.length - 1];\n for (const migration of dbMigrations\n .slice()\n .sort((a, b) => Math.sign(b.id - a.id))) {\n if (!migrations.some(x => x.id === migration.id) ||\n (force && migration.id === lastMigration.id)) {\n await db.run('BEGIN');\n try {\n await db.exec(migration.down);\n await db.run(`DELETE FROM \"${table}\" WHERE id = ?`, migration.id);\n await db.run('COMMIT');\n dbMigrations = dbMigrations.filter(x => x.id !== migration.id);\n }\n catch (err) {\n await db.run('ROLLBACK');\n throw err;\n }\n }\n else {\n break;\n }\n }\n // Apply pending migrations\n const lastMigrationId = dbMigrations.length\n ? dbMigrations[dbMigrations.length - 1].id\n : 0;\n for (const migration of migrations) {\n if (migration.id > lastMigrationId) {\n await db.run('BEGIN');\n try {\n await db.exec(migration.up);\n await db.run(`INSERT INTO \"${table}\" (id, name, up, down) VALUES (?, ?, ?, ?)`, migration.id, migration.name, migration.up, migration.down);\n await db.run('COMMIT');\n }\n catch (err) {\n await db.run('ROLLBACK');\n throw err;\n }\n }\n }\n}\nexports.migrate = migrate;\n//# sourceMappingURL=migrate.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toSqlParams = void 0;\n/**\n * Allows for using strings and `sql-template-strings`. Converts both to a\n * format that's usable by the SQL methods\n *\n * @param sql A SQL string or `sql-template-strings` object\n * @param params An array of parameters\n */\nfunction toSqlParams(sql, params = []) {\n if (typeof sql === 'string') {\n return {\n sql,\n params\n };\n }\n return {\n sql: sql.sql,\n params: sql.values\n };\n}\nexports.toSqlParams = toSqlParams;\n//# sourceMappingURL=strings.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Database = void 0;\nconst Statement_1 = require(\"./Statement\");\nconst migrate_1 = require(\"./utils/migrate\");\nconst strings_1 = require(\"./utils/strings\");\nconst format_error_1 = require(\"./utils/format-error\");\n/**\n * Promisified wrapper for the sqlite3#Database interface.\n */\nclass Database {\n constructor(config) {\n this.config = config;\n this.db = null;\n }\n /**\n * Event handler when verbose mode is enabled.\n * @see https://github.com/mapbox/node-sqlite3/wiki/Debugging\n */\n on(event, listener) {\n this.db.on(event, listener);\n }\n /**\n * Returns the underlying sqlite3 Database instance\n */\n getDatabaseInstance() {\n return this.db;\n }\n /**\n * Opens the database\n */\n open() {\n return new Promise((resolve, reject) => {\n let { filename, mode, driver } = this.config;\n // https://github.com/mapbox/node-sqlite3/wiki/API#new-sqlite3databasefilename-mode-callback\n if (filename === null || filename === undefined) {\n throw new Error('sqlite: filename cannot be null / undefined');\n }\n if (!driver) {\n throw new Error('sqlite: driver is not defined');\n }\n if (mode) {\n this.db = new driver(filename, mode, err => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve();\n });\n }\n else {\n this.db = new driver(filename, err => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve();\n });\n }\n });\n }\n /**\n * Closes the database.\n */\n close() {\n return new Promise((resolve, reject) => {\n this.db.close(err => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve();\n });\n });\n }\n /**\n * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseconfigureoption-value\n */\n configure(option, value) {\n this.db.configure(option, value);\n }\n /**\n * Runs the SQL query with the specified parameters. It does not retrieve any result data.\n * The function returns the Database object for which it was called to allow for function chaining.\n *\n * @param {string} sql The SQL query to run.\n *\n * @param {any} [params, ...] When the SQL statement contains placeholders, you\n * can pass them in here. They will be bound to the statement before it is\n * executed. There are three ways of passing bind parameters: directly in\n * the function's arguments, as an array, and as an object for named\n * parameters. This automatically sanitizes inputs.\n *\n * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaserunsql-param--callback\n */\n run(sql, ...params) {\n return new Promise((resolve, reject) => {\n const sqlObj = (0, strings_1.toSqlParams)(sql, params);\n this.db.run(sqlObj.sql, ...sqlObj.params, function (err) {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve({\n stmt: new Statement_1.Statement(this.stmt),\n lastID: this.lastID,\n changes: this.changes\n });\n });\n });\n }\n /**\n * Runs the SQL query with the specified parameters and resolves with\n * with the first result row afterwards. If the result set is empty, returns undefined.\n *\n * The property names correspond to the column names of the result set.\n * It is impossible to access them by column index; the only supported way is by column name.\n *\n * @param {string} sql The SQL query to run.\n *\n * @param {any} [params, ...] When the SQL statement contains placeholders, you\n * can pass them in here. They will be bound to the statement before it is\n * executed. There are three ways of passing bind parameters: directly in\n * the function's arguments, as an array, and as an object for named\n * parameters. This automatically sanitizes inputs.\n *\n * @see https://github.com/mapbox/node-sqlite3/wiki/API#databasegetsql-param--callback\n */\n get(sql, ...params) {\n return new Promise((resolve, reject) => {\n const sqlObj = (0, strings_1.toSqlParams)(sql, params);\n this.db.get(sqlObj.sql, ...sqlObj.params, (err, row) => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve(row);\n });\n });\n }\n each(sql, ...params) {\n return new Promise((resolve, reject) => {\n const callback = params.pop();\n if (!callback || typeof callback !== 'function') {\n throw new Error('sqlite: Last param of Database#each() must be a callback function');\n }\n if (params.length > 0) {\n const positional = params.pop();\n if (typeof positional === 'function') {\n throw new Error('sqlite: Database#each() should only have a single callback defined. See readme for usage.');\n }\n params.push(positional);\n }\n const sqlObj = (0, strings_1.toSqlParams)(sql, params);\n this.db.each(sqlObj.sql, ...sqlObj.params, (err, row) => {\n if (err) {\n return callback((0, format_error_1.formatError)(err), null);\n }\n callback(null, row);\n }, (err, count) => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve(count);\n });\n });\n }\n /**\n * Runs the SQL query with the specified parameters. The parameters are the same as the\n * Database#run function, with the following differences:\n *\n * If the result set is empty, it will be an empty array, otherwise it will\n * have an object for each result row which\n * in turn contains the values of that row, like the Database#get function.\n *\n * Note that it first retrieves all result rows and stores them in memory.\n * For queries that have potentially large result sets, use the Database#each\n * function to retrieve all rows or Database#prepare followed by multiple\n * Statement#get calls to retrieve a previously unknown amount of rows.\n *\n * @param {string} sql The SQL query to run.\n *\n * @param {any} [params, ...] When the SQL statement contains placeholders, you\n * can pass them in here. They will be bound to the statement before it is\n * executed. There are three ways of passing bind parameters: directly in\n * the function's arguments, as an array, and as an object for named\n * parameters. This automatically sanitizes inputs.\n *\n * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseallsql-param--callback\n */\n all(sql, ...params) {\n return new Promise((resolve, reject) => {\n const sqlObj = (0, strings_1.toSqlParams)(sql, params);\n this.db.all(sqlObj.sql, ...sqlObj.params, (err, rows) => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve(rows);\n });\n });\n }\n /**\n * Runs all SQL queries in the supplied string. No result rows are retrieved. If a query fails,\n * no subsequent statements will be executed (wrap it in a transaction if you want all\n * or none to be executed).\n *\n * Note: This function will only execute statements up to the first NULL byte.\n * Comments are not allowed and will lead to runtime errors.\n *\n * @param {string} sql The SQL query to run.\n * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseexecsql-callback\n */\n exec(sql) {\n return new Promise((resolve, reject) => {\n const sqlObj = (0, strings_1.toSqlParams)(sql);\n this.db.exec(sqlObj.sql, err => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve();\n });\n });\n }\n /**\n * Prepares the SQL statement and optionally binds the specified parameters.\n * When bind parameters are supplied, they are bound to the prepared statement.\n *\n * @param {string} sql The SQL query to run.\n * @param {any} [params, ...] When the SQL statement contains placeholders, you\n * can pass them in here. They will be bound to the statement before it is\n * executed. There are three ways of passing bind parameters: directly in\n * the function's arguments, as an array, and as an object for named\n * parameters. This automatically sanitizes inputs.\n * @returns Promise<Statement> Statement object\n */\n prepare(sql, ...params) {\n return new Promise((resolve, reject) => {\n const sqlObj = (0, strings_1.toSqlParams)(sql, params);\n const stmt = this.db.prepare(sqlObj.sql, ...sqlObj.params, err => {\n if (err) {\n return reject(err);\n }\n resolve(new Statement_1.Statement(stmt));\n });\n });\n }\n /**\n * Loads a compiled SQLite extension into the database connection object.\n *\n * @param {string} path Filename of the extension to load\n */\n loadExtension(path) {\n return new Promise((resolve, reject) => {\n this.db.loadExtension(path, err => {\n if (err) {\n return reject((0, format_error_1.formatError)(err));\n }\n resolve();\n });\n });\n }\n /**\n * Performs a database migration.\n */\n async migrate(config) {\n await (0, migrate_1.migrate)(this, config);\n }\n /**\n * The methods underneath requires creative work to implement. PRs / proposals accepted!\n */\n /*\n * Unsure if serialize can be made into a promise.\n */\n serialize() {\n throw new Error('sqlite: Currently not implemented. Use getDatabaseInstance().serialize() instead.');\n }\n /*\n * Unsure if parallelize can be made into a promise.\n */\n parallelize() {\n throw new Error('sqlite: Currently not implemented. Use getDatabaseInstance().parallelize() instead.');\n }\n}\nexports.Database = Database;\n//# sourceMappingURL=Database.js.map","export * from \"./Statement.js\";\nexport * from \"./Database.js\";\nimport Database from \"./Database.js\";\n\n/**\n * Opens a database for manipulation. Most users will call this to get started.\n */\nexport async function open(config) {\n const db = new Database.Database(config);\n await db.open();\n return db;\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,cAAc,KAAK;CAC3B,SAAS,YAAY,KAAK;AACtB,MAAI,eAAe,MACf,QAAO;AAEX,MAAI,OAAO,QAAQ,UAAU;GACzB,MAAM,2BAAW,IAAI,OAAO;AAC5B,QAAK,IAAI,QAAQ,IACb,UAAS,QAAQ,IAAI;AAGzB,OAAI,IAAI,QACJ,UAAS,UAAU,IAAI;AAE3B,UAAO;;AAEX,MAAI,OAAO,QAAQ,SACf,QAAO,IAAI,MAAM,IAAI;AAEzB,SAAO,IAAI,MAAM,IAAI;;AAEzB,SAAQ,cAAc;;;;;;ACtBtB,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,YAAY,KAAK;CACzB,MAAMA;;;;CAIN,IAAM,YAAN,MAAgB;EACZ,YAAY,MAAM;AACd,QAAK,OAAO;;;;;EAKhB,uBAAuB;AACnB,UAAO,KAAK;;;;;;;;EAQhB,KAAK,GAAG,QAAQ;AACZ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SAAS,SAAS,WAAW;IACpC,MAAM,UAAU,GAAG,UAAU,aAAa,KAAK,OAAO;IACtD,MAAM,OAAO,KAAK,GAAG,QAAQ,OAAO,KAAK,GAAG,OAAO,SAAQ,QAAO;AAC9D,SAAI,IACA,QAAO,OAAO,IAAI;AAEtB,aAAQ,IAAI,YAAY,UAAU,KAAK,CAAC;MAC1C;KACJ;;;;;;;EAON,cAAc,QAAM;AAChB,UAAO,IAAI,SAAS,SAAS,WAAW;AACpC,SAAK,GAAG,cAAcC,SAAM,QAAO;AAC/B,SAAI,IACA,QAAO,QAAQ,GAAG,eAAe,aAAa,IAAI,CAAC;AAEvD,cAAS;MACX;KACJ;;;;;EAKN,MAAM,QAAQ,QAAQ;AAClB,UAAO,GAAG,UAAU,SAAS,MAAM,OAAO;;;;;EAQ9C,YAAY;AACR,SAAM,IAAI,MAAM,oFAAoF;;EAKxG,cAAc;AACV,SAAM,IAAI,MAAM,sFAAsF;;;AAG9G,SAAQ,WAAWD;;;;;;;;;AC/QnB,eAAsB,KAAK,QAAQ;CACjC,MAAM,KAAK,IAAIE,wBAAS,SAAS,OAAO;AACxC,OAAM,GAAG,MAAM;AACf,QAAO"}
@@ -1,53 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
13
- key = keys[i];
14
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- return to;
20
- };
21
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
- var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
27
-
28
- //#endregion
29
-
30
- Object.defineProperty(exports, '__commonJS', {
31
- enumerable: true,
32
- get: function () {
33
- return __commonJS;
34
- }
35
- });
36
- Object.defineProperty(exports, '__reExport', {
37
- enumerable: true,
38
- get: function () {
39
- return __reExport;
40
- }
41
- });
42
- Object.defineProperty(exports, '__toDynamicImportESM', {
43
- enumerable: true,
44
- get: function () {
45
- return __toDynamicImportESM;
46
- }
47
- });
48
- Object.defineProperty(exports, '__toESM', {
49
- enumerable: true,
50
- get: function () {
51
- return __toESM;
52
- }
53
- });