@polyglot-sql/sdk 0.3.8 → 0.3.10

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.
@@ -1,25 +1,25 @@
1
1
  (()=>{if(typeof globalThis.process<"u"&&globalThis.process.versions?.node){const _f=globalThis.fetch;globalThis.fetch=async function(u,...a){if(typeof u==="string"&&u.startsWith("file:")||u instanceof URL&&u.protocol==="file:"){const{readFileSync:r}=await import("node:fs");const{fileURLToPath:p}=await import("node:url");const b=r(p(typeof u==="string"?u:u.href));return new Response(b,{headers:{"Content-Type":"application/wasm"}})}return _f(u,...a)}}})();
2
- const kI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, NI = async (g = {}, A) => {
2
+ const yI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, KI = async (g = {}, A) => {
3
3
  let C;
4
4
  if (A.startsWith("data:")) {
5
- const B = A.replace(/^data:.*?base64,/, "");
6
- let Q;
5
+ const Q = A.replace(/^data:.*?base64,/, "");
6
+ let B;
7
7
  if (typeof Buffer == "function" && typeof Buffer.from == "function")
8
- Q = Buffer.from(B, "base64");
8
+ B = Buffer.from(Q, "base64");
9
9
  else if (typeof atob == "function") {
10
- const E = atob(B);
11
- Q = new Uint8Array(E.length);
10
+ const E = atob(Q);
11
+ B = new Uint8Array(E.length);
12
12
  for (let D = 0; D < E.length; D++)
13
- Q[D] = E.charCodeAt(D);
13
+ B[D] = E.charCodeAt(D);
14
14
  } else
15
15
  throw new Error("Cannot decode base64-encoded data URL");
16
- C = await WebAssembly.instantiate(Q, g);
16
+ C = await WebAssembly.instantiate(B, g);
17
17
  } else {
18
- const B = await fetch(A), Q = B.headers.get("Content-Type") || "";
19
- if ("instantiateStreaming" in WebAssembly && Q.startsWith("application/wasm"))
20
- C = await WebAssembly.instantiateStreaming(B, g);
18
+ const Q = await fetch(A), B = Q.headers.get("Content-Type") || "";
19
+ if ("instantiateStreaming" in WebAssembly && B.startsWith("application/wasm"))
20
+ C = await WebAssembly.instantiateStreaming(Q, g);
21
21
  else {
22
- const E = await B.arrayBuffer();
22
+ const E = await Q.arrayBuffer();
23
23
  C = await WebAssembly.instantiate(E, g);
24
24
  }
25
25
  }
@@ -54,15 +54,15 @@ class CA {
54
54
  * @param {WasmExpr} value
55
55
  */
56
56
  push(A, C) {
57
- const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
58
- S(C, K), I.wasmassignmentarray_push(this.__wbg_ptr, B, Q, C.__wbg_ptr);
57
+ const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
58
+ S(C, G), I.wasmassignmentarray_push(this.__wbg_ptr, Q, B, C.__wbg_ptr);
59
59
  }
60
60
  }
61
61
  Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
62
- class l {
62
+ class n {
63
63
  static __wrap(A) {
64
64
  A = A >>> 0;
65
- const C = Object.create(l.prototype);
65
+ const C = Object.create(n.prototype);
66
66
  return C.__wbg_ptr = A, hA.register(C, C.__wbg_ptr, C), C;
67
67
  }
68
68
  __destroy_into_raw() {
@@ -79,12 +79,12 @@ class l {
79
79
  */
80
80
  build_expr() {
81
81
  try {
82
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
83
- I.wasmcasebuilder_build_expr(Q, this.__wbg_ptr);
84
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
85
- if (B)
82
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
83
+ I.wasmcasebuilder_build_expr(B, this.__wbg_ptr);
84
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
85
+ if (Q)
86
86
  throw F(C);
87
- return K.__wrap(A);
87
+ return G.__wrap(A);
88
88
  } finally {
89
89
  I.__wbindgen_add_to_stack_pointer(16);
90
90
  }
@@ -94,7 +94,7 @@ class l {
94
94
  * @param {WasmExpr} result
95
95
  */
96
96
  else_(A) {
97
- S(A, K), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
97
+ S(A, G), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
98
98
  }
99
99
  /**
100
100
  * Create a new searched CASE builder (CASE WHEN ... THEN ...).
@@ -112,10 +112,10 @@ class l {
112
112
  try {
113
113
  const y = I.__wbindgen_add_to_stack_pointer(-16);
114
114
  I.wasmcasebuilder_to_sql(y, this.__wbg_ptr);
115
- var B = M().getInt32(y + 0, !0), Q = M().getInt32(y + 4, !0), E = M().getInt32(y + 8, !0), D = M().getInt32(y + 12, !0), i = B, N = Q;
115
+ var Q = M().getInt32(y + 0, !0), B = M().getInt32(y + 4, !0), E = M().getInt32(y + 8, !0), D = M().getInt32(y + 12, !0), i = Q, k = B;
116
116
  if (D)
117
- throw i = 0, N = 0, F(E);
118
- return A = i, C = N, c(i, N);
117
+ throw i = 0, k = 0, F(E);
118
+ return A = i, C = k, U(i, k);
119
119
  } finally {
120
120
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
121
121
  }
@@ -126,10 +126,10 @@ class l {
126
126
  * @param {WasmExpr} result
127
127
  */
128
128
  when(A, C) {
129
- S(A, K), S(C, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
129
+ S(A, G), S(C, G), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
130
130
  }
131
131
  }
132
- Symbol.dispose && (l.prototype[Symbol.dispose] = l.prototype.free);
132
+ Symbol.dispose && (n.prototype[Symbol.dispose] = n.prototype.free);
133
133
  class MA {
134
134
  __destroy_into_raw() {
135
135
  const A = this.__wbg_ptr;
@@ -145,10 +145,10 @@ class MA {
145
145
  */
146
146
  build() {
147
147
  try {
148
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
149
- I.wasmdeletebuilder_build(Q, this.__wbg_ptr);
150
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
151
- if (B)
148
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
149
+ I.wasmdeletebuilder_build(B, this.__wbg_ptr);
150
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
151
+ if (Q)
152
152
  throw F(C);
153
153
  return F(A);
154
154
  } finally {
@@ -160,8 +160,8 @@ class MA {
160
160
  * @param {string} table_name
161
161
  */
162
162
  constructor(A) {
163
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmdeletebuilder_new(C, B);
164
- return this.__wbg_ptr = Q >>> 0, zA.register(this, this.__wbg_ptr, this), this;
163
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmdeletebuilder_new(C, Q);
164
+ return this.__wbg_ptr = B >>> 0, zA.register(this, this.__wbg_ptr, this), this;
165
165
  }
166
166
  /**
167
167
  * Generate SQL string for the given dialect.
@@ -169,16 +169,16 @@ class MA {
169
169
  * @returns {string}
170
170
  */
171
171
  to_sql(A) {
172
- let C, B;
172
+ let C, Q;
173
173
  try {
174
- const G = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
175
- I.wasmdeletebuilder_to_sql(G, this.__wbg_ptr, h, R);
176
- var Q = M().getInt32(G + 0, !0), E = M().getInt32(G + 4, !0), D = M().getInt32(G + 8, !0), i = M().getInt32(G + 12, !0), N = Q, y = E;
174
+ const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
175
+ I.wasmdeletebuilder_to_sql(K, this.__wbg_ptr, h, R);
176
+ var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
177
177
  if (i)
178
- throw N = 0, y = 0, F(D);
179
- return C = N, B = y, c(N, y);
178
+ throw k = 0, y = 0, F(D);
179
+ return C = k, Q = y, U(k, y);
180
180
  } finally {
181
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
181
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
182
182
  }
183
183
  }
184
184
  /**
@@ -186,14 +186,14 @@ class MA {
186
186
  * @param {WasmExpr} condition
187
187
  */
188
188
  where_expr(A) {
189
- S(A, K), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
189
+ S(A, G), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
190
190
  }
191
191
  }
192
192
  Symbol.dispose && (MA.prototype[Symbol.dispose] = MA.prototype.free);
193
- class K {
193
+ class G {
194
194
  static __wrap(A) {
195
195
  A = A >>> 0;
196
- const C = Object.create(K.prototype);
196
+ const C = Object.create(G.prototype);
197
197
  return C.__wbg_ptr = A, xA.register(C, C.__wbg_ptr, C), C;
198
198
  }
199
199
  __destroy_into_raw() {
@@ -210,9 +210,9 @@ class K {
210
210
  * @returns {WasmExpr}
211
211
  */
212
212
  add(A) {
213
- S(A, K);
213
+ S(A, G);
214
214
  const C = I.wasmexpr_add(this.__wbg_ptr, A.__wbg_ptr);
215
- return K.__wrap(C);
215
+ return G.__wrap(C);
216
216
  }
217
217
  /**
218
218
  * Produce `self AS name`.
@@ -220,8 +220,8 @@ class K {
220
220
  * @returns {WasmExpr}
221
221
  */
222
222
  alias(A) {
223
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmexpr_alias(this.__wbg_ptr, C, B);
224
- return K.__wrap(Q);
223
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmexpr_alias(this.__wbg_ptr, C, Q);
224
+ return G.__wrap(B);
225
225
  }
226
226
  /**
227
227
  * Produce `self AND other`.
@@ -229,9 +229,9 @@ class K {
229
229
  * @returns {WasmExpr}
230
230
  */
231
231
  and(A) {
232
- S(A, K);
232
+ S(A, G);
233
233
  const C = I.wasmexpr_and(this.__wbg_ptr, A.__wbg_ptr);
234
- return K.__wrap(C);
234
+ return G.__wrap(C);
235
235
  }
236
236
  /**
237
237
  * Wrap with ascending sort order.
@@ -239,7 +239,7 @@ class K {
239
239
  */
240
240
  asc() {
241
241
  const A = I.wasmexpr_asc(this.__wbg_ptr);
242
- return K.__wrap(A);
242
+ return G.__wrap(A);
243
243
  }
244
244
  /**
245
245
  * Produce `self BETWEEN low AND high`.
@@ -248,9 +248,9 @@ class K {
248
248
  * @returns {WasmExpr}
249
249
  */
250
250
  between(A, C) {
251
- S(A, K), S(C, K);
252
- const B = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
253
- return K.__wrap(B);
251
+ S(A, G), S(C, G);
252
+ const Q = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
253
+ return G.__wrap(Q);
254
254
  }
255
255
  /**
256
256
  * Produce `CAST(self AS type)`.
@@ -258,8 +258,8 @@ class K {
258
258
  * @returns {WasmExpr}
259
259
  */
260
260
  cast(A) {
261
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmexpr_cast(this.__wbg_ptr, C, B);
262
- return K.__wrap(Q);
261
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmexpr_cast(this.__wbg_ptr, C, Q);
262
+ return G.__wrap(B);
263
263
  }
264
264
  /**
265
265
  * Wrap with descending sort order.
@@ -267,7 +267,7 @@ class K {
267
267
  */
268
268
  desc() {
269
269
  const A = I.wasmexpr_desc(this.__wbg_ptr);
270
- return K.__wrap(A);
270
+ return G.__wrap(A);
271
271
  }
272
272
  /**
273
273
  * Produce `self / other`.
@@ -275,9 +275,9 @@ class K {
275
275
  * @returns {WasmExpr}
276
276
  */
277
277
  div(A) {
278
- S(A, K);
278
+ S(A, G);
279
279
  const C = I.wasmexpr_div(this.__wbg_ptr, A.__wbg_ptr);
280
- return K.__wrap(C);
280
+ return G.__wrap(C);
281
281
  }
282
282
  /**
283
283
  * Produce `self = other`.
@@ -285,9 +285,9 @@ class K {
285
285
  * @returns {WasmExpr}
286
286
  */
287
287
  eq(A) {
288
- S(A, K);
288
+ S(A, G);
289
289
  const C = I.wasmexpr_eq(this.__wbg_ptr, A.__wbg_ptr);
290
- return K.__wrap(C);
290
+ return G.__wrap(C);
291
291
  }
292
292
  /**
293
293
  * Produce `self > other`.
@@ -295,9 +295,9 @@ class K {
295
295
  * @returns {WasmExpr}
296
296
  */
297
297
  gt(A) {
298
- S(A, K);
298
+ S(A, G);
299
299
  const C = I.wasmexpr_gt(this.__wbg_ptr, A.__wbg_ptr);
300
- return K.__wrap(C);
300
+ return G.__wrap(C);
301
301
  }
302
302
  /**
303
303
  * Produce `self >= other`.
@@ -305,9 +305,9 @@ class K {
305
305
  * @returns {WasmExpr}
306
306
  */
307
307
  gte(A) {
308
- S(A, K);
308
+ S(A, G);
309
309
  const C = I.wasmexpr_gte(this.__wbg_ptr, A.__wbg_ptr);
310
- return K.__wrap(C);
310
+ return G.__wrap(C);
311
311
  }
312
312
  /**
313
313
  * Produce `self ILIKE pattern`.
@@ -315,9 +315,9 @@ class K {
315
315
  * @returns {WasmExpr}
316
316
  */
317
317
  ilike(A) {
318
- S(A, K);
318
+ S(A, G);
319
319
  const C = I.wasmexpr_ilike(this.__wbg_ptr, A.__wbg_ptr);
320
- return K.__wrap(C);
320
+ return G.__wrap(C);
321
321
  }
322
322
  /**
323
323
  * Produce `self IN (values...)`.
@@ -327,7 +327,7 @@ class K {
327
327
  in_list(A) {
328
328
  S(A, T);
329
329
  const C = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
330
- return K.__wrap(C);
330
+ return G.__wrap(C);
331
331
  }
332
332
  /**
333
333
  * Produce `self IS NOT NULL`.
@@ -335,7 +335,7 @@ class K {
335
335
  */
336
336
  is_not_null() {
337
337
  const A = I.wasmexpr_is_not_null(this.__wbg_ptr);
338
- return K.__wrap(A);
338
+ return G.__wrap(A);
339
339
  }
340
340
  /**
341
341
  * Produce `self IS NULL`.
@@ -343,7 +343,7 @@ class K {
343
343
  */
344
344
  is_null() {
345
345
  const A = I.wasmexpr_is_null(this.__wbg_ptr);
346
- return K.__wrap(A);
346
+ return G.__wrap(A);
347
347
  }
348
348
  /**
349
349
  * Produce `self LIKE pattern`.
@@ -351,9 +351,9 @@ class K {
351
351
  * @returns {WasmExpr}
352
352
  */
353
353
  like(A) {
354
- S(A, K);
354
+ S(A, G);
355
355
  const C = I.wasmexpr_like(this.__wbg_ptr, A.__wbg_ptr);
356
- return K.__wrap(C);
356
+ return G.__wrap(C);
357
357
  }
358
358
  /**
359
359
  * Produce `self < other`.
@@ -361,9 +361,9 @@ class K {
361
361
  * @returns {WasmExpr}
362
362
  */
363
363
  lt(A) {
364
- S(A, K);
364
+ S(A, G);
365
365
  const C = I.wasmexpr_lt(this.__wbg_ptr, A.__wbg_ptr);
366
- return K.__wrap(C);
366
+ return G.__wrap(C);
367
367
  }
368
368
  /**
369
369
  * Produce `self <= other`.
@@ -371,9 +371,9 @@ class K {
371
371
  * @returns {WasmExpr}
372
372
  */
373
373
  lte(A) {
374
- S(A, K);
374
+ S(A, G);
375
375
  const C = I.wasmexpr_lte(this.__wbg_ptr, A.__wbg_ptr);
376
- return K.__wrap(C);
376
+ return G.__wrap(C);
377
377
  }
378
378
  /**
379
379
  * Produce `self * other`.
@@ -381,9 +381,9 @@ class K {
381
381
  * @returns {WasmExpr}
382
382
  */
383
383
  mul(A) {
384
- S(A, K);
384
+ S(A, G);
385
385
  const C = I.wasmexpr_mul(this.__wbg_ptr, A.__wbg_ptr);
386
- return K.__wrap(C);
386
+ return G.__wrap(C);
387
387
  }
388
388
  /**
389
389
  * Produce `self <> other`.
@@ -391,9 +391,9 @@ class K {
391
391
  * @returns {WasmExpr}
392
392
  */
393
393
  neq(A) {
394
- S(A, K);
394
+ S(A, G);
395
395
  const C = I.wasmexpr_neq(this.__wbg_ptr, A.__wbg_ptr);
396
- return K.__wrap(C);
396
+ return G.__wrap(C);
397
397
  }
398
398
  /**
399
399
  * Produce `NOT self`.
@@ -401,7 +401,7 @@ class K {
401
401
  */
402
402
  not() {
403
403
  const A = I.wasmexpr_not(this.__wbg_ptr);
404
- return K.__wrap(A);
404
+ return G.__wrap(A);
405
405
  }
406
406
  /**
407
407
  * Produce `self NOT IN (values...)`.
@@ -411,7 +411,7 @@ class K {
411
411
  not_in(A) {
412
412
  S(A, T);
413
413
  const C = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
414
- return K.__wrap(C);
414
+ return G.__wrap(C);
415
415
  }
416
416
  /**
417
417
  * Produce `self OR other`.
@@ -419,9 +419,9 @@ class K {
419
419
  * @returns {WasmExpr}
420
420
  */
421
421
  or(A) {
422
- S(A, K);
422
+ S(A, G);
423
423
  const C = I.wasmexpr_or(this.__wbg_ptr, A.__wbg_ptr);
424
- return K.__wrap(C);
424
+ return G.__wrap(C);
425
425
  }
426
426
  /**
427
427
  * Produce `REGEXP_LIKE(self, pattern)`.
@@ -429,9 +429,9 @@ class K {
429
429
  * @returns {WasmExpr}
430
430
  */
431
431
  rlike(A) {
432
- S(A, K);
432
+ S(A, G);
433
433
  const C = I.wasmexpr_rlike(this.__wbg_ptr, A.__wbg_ptr);
434
- return K.__wrap(C);
434
+ return G.__wrap(C);
435
435
  }
436
436
  /**
437
437
  * Produce `self - other`.
@@ -439,9 +439,9 @@ class K {
439
439
  * @returns {WasmExpr}
440
440
  */
441
441
  sub(A) {
442
- S(A, K);
442
+ S(A, G);
443
443
  const C = I.wasmexpr_sub(this.__wbg_ptr, A.__wbg_ptr);
444
- return K.__wrap(C);
444
+ return G.__wrap(C);
445
445
  }
446
446
  /**
447
447
  * Return the expression AST as a JSON value.
@@ -449,10 +449,10 @@ class K {
449
449
  */
450
450
  to_json() {
451
451
  try {
452
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
453
- I.wasmexpr_to_json(Q, this.__wbg_ptr);
454
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
455
- if (B)
452
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
453
+ I.wasmexpr_to_json(B, this.__wbg_ptr);
454
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
455
+ if (Q)
456
456
  throw F(C);
457
457
  return F(A);
458
458
  } finally {
@@ -468,10 +468,10 @@ class K {
468
468
  try {
469
469
  const y = I.__wbindgen_add_to_stack_pointer(-16);
470
470
  I.wasmexpr_to_sql(y, this.__wbg_ptr);
471
- var B = M().getInt32(y + 0, !0), Q = M().getInt32(y + 4, !0), E = M().getInt32(y + 8, !0), D = M().getInt32(y + 12, !0), i = B, N = Q;
471
+ var Q = M().getInt32(y + 0, !0), B = M().getInt32(y + 4, !0), E = M().getInt32(y + 8, !0), D = M().getInt32(y + 12, !0), i = Q, k = B;
472
472
  if (D)
473
- throw i = 0, N = 0, F(E);
474
- return A = i, C = N, c(i, N);
473
+ throw i = 0, k = 0, F(E);
474
+ return A = i, C = k, U(i, k);
475
475
  } finally {
476
476
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
477
477
  }
@@ -482,12 +482,12 @@ class K {
482
482
  * @returns {WasmExpr}
483
483
  */
484
484
  xor(A) {
485
- S(A, K);
485
+ S(A, G);
486
486
  const C = I.wasmexpr_xor(this.__wbg_ptr, A.__wbg_ptr);
487
- return K.__wrap(C);
487
+ return G.__wrap(C);
488
488
  }
489
489
  }
490
- Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
490
+ Symbol.dispose && (G.prototype[Symbol.dispose] = G.prototype.free);
491
491
  class T {
492
492
  __destroy_into_raw() {
493
493
  const A = this.__wbg_ptr;
@@ -516,15 +516,15 @@ class T {
516
516
  * @param {WasmExpr} expr
517
517
  */
518
518
  push(A) {
519
- S(A, K), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
519
+ S(A, G), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
520
520
  }
521
521
  /**
522
522
  * Push a column reference by name.
523
523
  * @param {string} name
524
524
  */
525
525
  push_col(A) {
526
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
527
- I.wasmexprarray_push_col(this.__wbg_ptr, C, B);
526
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
527
+ I.wasmexprarray_push_col(this.__wbg_ptr, C, Q);
528
528
  }
529
529
  /**
530
530
  * Push a float literal.
@@ -551,8 +551,8 @@ class T {
551
551
  * @param {string} value
552
552
  */
553
553
  push_str(A) {
554
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
555
- I.wasmexprarray_push_str(this.__wbg_ptr, C, B);
554
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
555
+ I.wasmexprarray_push_str(this.__wbg_ptr, C, Q);
556
556
  }
557
557
  }
558
558
  Symbol.dispose && (T.prototype[Symbol.dispose] = T.prototype.free);
@@ -571,10 +571,10 @@ class iA {
571
571
  */
572
572
  build() {
573
573
  try {
574
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
575
- I.wasminsertbuilder_build(Q, this.__wbg_ptr);
576
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
577
- if (B)
574
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
575
+ I.wasminsertbuilder_build(B, this.__wbg_ptr);
576
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
577
+ if (Q)
578
578
  throw F(C);
579
579
  return F(A);
580
580
  } finally {
@@ -586,16 +586,16 @@ class iA {
586
586
  * @param {string[]} cols
587
587
  */
588
588
  columns(A) {
589
- const C = cA(A, I.__wbindgen_export), B = o;
590
- I.wasminsertbuilder_columns(this.__wbg_ptr, C, B);
589
+ const C = FA(A, I.__wbindgen_export), Q = o;
590
+ I.wasminsertbuilder_columns(this.__wbg_ptr, C, Q);
591
591
  }
592
592
  /**
593
593
  * Create a new INSERT INTO builder for the given table.
594
594
  * @param {string} table_name
595
595
  */
596
596
  constructor(A) {
597
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasminsertbuilder_new(C, B);
598
- return this.__wbg_ptr = Q >>> 0, WA.register(this, this.__wbg_ptr, this), this;
597
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasminsertbuilder_new(C, Q);
598
+ return this.__wbg_ptr = B >>> 0, WA.register(this, this.__wbg_ptr, this), this;
599
599
  }
600
600
  /**
601
601
  * Set the source query for INSERT ... SELECT.
@@ -603,10 +603,10 @@ class iA {
603
603
  */
604
604
  query(A) {
605
605
  try {
606
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
607
- S(A, P), I.wasminsertbuilder_query(Q, this.__wbg_ptr, A.__wbg_ptr);
608
- var C = M().getInt32(Q + 0, !0), B = M().getInt32(Q + 4, !0);
609
- if (B)
606
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
607
+ S(A, P), I.wasminsertbuilder_query(B, this.__wbg_ptr, A.__wbg_ptr);
608
+ var C = M().getInt32(B + 0, !0), Q = M().getInt32(B + 4, !0);
609
+ if (Q)
610
610
  throw F(C);
611
611
  } finally {
612
612
  I.__wbindgen_add_to_stack_pointer(16);
@@ -618,16 +618,16 @@ class iA {
618
618
  * @returns {string}
619
619
  */
620
620
  to_sql(A) {
621
- let C, B;
621
+ let C, Q;
622
622
  try {
623
- const G = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
624
- I.wasminsertbuilder_to_sql(G, this.__wbg_ptr, h, R);
625
- var Q = M().getInt32(G + 0, !0), E = M().getInt32(G + 4, !0), D = M().getInt32(G + 8, !0), i = M().getInt32(G + 12, !0), N = Q, y = E;
623
+ const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
624
+ I.wasminsertbuilder_to_sql(K, this.__wbg_ptr, h, R);
625
+ var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
626
626
  if (i)
627
- throw N = 0, y = 0, F(D);
628
- return C = N, B = y, c(N, y);
627
+ throw k = 0, y = 0, F(D);
628
+ return C = k, Q = y, U(k, y);
629
629
  } finally {
630
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
630
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
631
631
  }
632
632
  }
633
633
  /**
@@ -654,10 +654,10 @@ class oA {
654
654
  */
655
655
  build() {
656
656
  try {
657
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
658
- I.wasmmergebuilder_build(Q, this.__wbg_ptr);
659
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
660
- if (B)
657
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
658
+ I.wasmmergebuilder_build(B, this.__wbg_ptr);
659
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
660
+ if (Q)
661
661
  throw F(C);
662
662
  return F(A);
663
663
  } finally {
@@ -669,8 +669,8 @@ class oA {
669
669
  * @param {string} target
670
670
  */
671
671
  constructor(A) {
672
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmmergebuilder_new(C, B);
673
- return this.__wbg_ptr = Q >>> 0, eA.register(this, this.__wbg_ptr, this), this;
672
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmmergebuilder_new(C, Q);
673
+ return this.__wbg_ptr = B >>> 0, eA.register(this, this.__wbg_ptr, this), this;
674
674
  }
675
675
  /**
676
676
  * Generate SQL string for the given dialect.
@@ -678,16 +678,16 @@ class oA {
678
678
  * @returns {string}
679
679
  */
680
680
  to_sql(A) {
681
- let C, B;
681
+ let C, Q;
682
682
  try {
683
- const G = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
684
- I.wasmmergebuilder_to_sql(G, this.__wbg_ptr, h, R);
685
- var Q = M().getInt32(G + 0, !0), E = M().getInt32(G + 4, !0), D = M().getInt32(G + 8, !0), i = M().getInt32(G + 12, !0), N = Q, y = E;
683
+ const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
684
+ I.wasmmergebuilder_to_sql(K, this.__wbg_ptr, h, R);
685
+ var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
686
686
  if (i)
687
- throw N = 0, y = 0, F(D);
688
- return C = N, B = y, c(N, y);
687
+ throw k = 0, y = 0, F(D);
688
+ return C = k, Q = y, U(k, y);
689
689
  } finally {
690
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
690
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
691
691
  }
692
692
  }
693
693
  /**
@@ -696,8 +696,8 @@ class oA {
696
696
  * @param {WasmExpr} on
697
697
  */
698
698
  using(A, C) {
699
- const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
700
- S(C, K), I.wasmmergebuilder_using(this.__wbg_ptr, B, Q, C.__wbg_ptr);
699
+ const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
700
+ S(C, G), I.wasmmergebuilder_using(this.__wbg_ptr, Q, B, C.__wbg_ptr);
701
701
  }
702
702
  /**
703
703
  * Add a WHEN MATCHED THEN DELETE clause.
@@ -718,8 +718,8 @@ class oA {
718
718
  * @param {WasmExprArray} values
719
719
  */
720
720
  when_not_matched_insert(A, C) {
721
- const B = cA(A, I.__wbindgen_export), Q = o;
722
- S(C, T), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, B, Q, C.__wbg_ptr);
721
+ const Q = FA(A, I.__wbindgen_export), B = o;
722
+ S(C, T), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, Q, B, C.__wbg_ptr);
723
723
  }
724
724
  }
725
725
  Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
@@ -738,10 +738,10 @@ class P {
738
738
  */
739
739
  build() {
740
740
  try {
741
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
742
- I.wasmselectbuilder_build(Q, this.__wbg_ptr);
743
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
744
- if (B)
741
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
742
+ I.wasmselectbuilder_build(B, this.__wbg_ptr);
743
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
744
+ if (Q)
745
745
  throw F(C);
746
746
  return F(A);
747
747
  } finally {
@@ -753,8 +753,8 @@ class P {
753
753
  * @param {string} table
754
754
  */
755
755
  cross_join(A) {
756
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
757
- I.wasmselectbuilder_cross_join(this.__wbg_ptr, C, B);
756
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
757
+ I.wasmselectbuilder_cross_join(this.__wbg_ptr, C, Q);
758
758
  }
759
759
  /**
760
760
  * Convert to CREATE TABLE AS SELECT. Returns the AST JSON.
@@ -763,11 +763,11 @@ class P {
763
763
  */
764
764
  ctas(A) {
765
765
  try {
766
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
766
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
767
767
  I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, i);
768
- var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
769
- if (Q)
770
- throw F(B);
768
+ var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
769
+ if (B)
770
+ throw F(Q);
771
771
  return F(C);
772
772
  } finally {
773
773
  I.__wbindgen_add_to_stack_pointer(16);
@@ -780,16 +780,16 @@ class P {
780
780
  * @returns {string}
781
781
  */
782
782
  ctas_sql(A, C) {
783
- let B, Q;
783
+ let Q, B;
784
784
  try {
785
- const h = I.__wbindgen_add_to_stack_pointer(-16), R = k(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, j = k(C, I.__wbindgen_export, I.__wbindgen_export2), u = o;
786
- I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, R, q, j, u);
787
- var E = M().getInt32(h + 0, !0), D = M().getInt32(h + 4, !0), i = M().getInt32(h + 8, !0), N = M().getInt32(h + 12, !0), y = E, G = D;
788
- if (N)
789
- throw y = 0, G = 0, F(i);
790
- return B = y, Q = G, c(y, G);
785
+ const h = I.__wbindgen_add_to_stack_pointer(-16), R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, j = N(C, I.__wbindgen_export, I.__wbindgen_export2), l = o;
786
+ I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, R, q, j, l);
787
+ var E = M().getInt32(h + 0, !0), D = M().getInt32(h + 4, !0), i = M().getInt32(h + 8, !0), k = M().getInt32(h + 12, !0), y = E, K = D;
788
+ if (k)
789
+ throw y = 0, K = 0, F(i);
790
+ return Q = y, B = K, U(y, K);
791
791
  } finally {
792
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
792
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
793
793
  }
794
794
  }
795
795
  /**
@@ -807,10 +807,10 @@ class P {
807
807
  try {
808
808
  const E = I.__wbindgen_add_to_stack_pointer(-16);
809
809
  S(A, P), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
810
- var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
811
- if (Q)
812
- throw F(B);
813
- return z.__wrap(C);
810
+ var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
811
+ if (B)
812
+ throw F(Q);
813
+ return x.__wrap(C);
814
814
  } finally {
815
815
  I.__wbindgen_add_to_stack_pointer(16);
816
816
  }
@@ -826,15 +826,15 @@ class P {
826
826
  * @param {string} table
827
827
  */
828
828
  from(A) {
829
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
830
- I.wasmselectbuilder_from(this.__wbg_ptr, C, B);
829
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
830
+ I.wasmselectbuilder_from(this.__wbg_ptr, C, Q);
831
831
  }
832
832
  /**
833
833
  * Set the FROM clause to an arbitrary expression.
834
834
  * @param {WasmExpr} expr
835
835
  */
836
836
  from_expr(A) {
837
- S(A, K), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
837
+ S(A, G), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
838
838
  }
839
839
  /**
840
840
  * Set the GROUP BY clause.
@@ -848,15 +848,15 @@ class P {
848
848
  * @param {WasmExpr} condition
849
849
  */
850
850
  having(A) {
851
- S(A, K), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
851
+ S(A, G), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
852
852
  }
853
853
  /**
854
854
  * Add a query hint.
855
855
  * @param {string} hint_text
856
856
  */
857
857
  hint(A) {
858
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
859
- I.wasmselectbuilder_hint(this.__wbg_ptr, C, B);
858
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
859
+ I.wasmselectbuilder_hint(this.__wbg_ptr, C, Q);
860
860
  }
861
861
  /**
862
862
  * Combine with INTERSECT. Consumes both builders.
@@ -867,10 +867,10 @@ class P {
867
867
  try {
868
868
  const E = I.__wbindgen_add_to_stack_pointer(-16);
869
869
  S(A, P), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
870
- var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
871
- if (Q)
872
- throw F(B);
873
- return z.__wrap(C);
870
+ var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
871
+ if (B)
872
+ throw F(Q);
873
+ return x.__wrap(C);
874
874
  } finally {
875
875
  I.__wbindgen_add_to_stack_pointer(16);
876
876
  }
@@ -881,8 +881,8 @@ class P {
881
881
  * @param {WasmExpr} on
882
882
  */
883
883
  join(A, C) {
884
- const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
885
- S(C, K), I.wasmselectbuilder_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
884
+ const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
885
+ S(C, G), I.wasmselectbuilder_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
886
886
  }
887
887
  /**
888
888
  * Add a LATERAL VIEW clause (Hive/Spark).
@@ -890,10 +890,10 @@ class P {
890
890
  * @param {string} table_alias
891
891
  * @param {string[]} col_aliases
892
892
  */
893
- lateral_view(A, C, B) {
894
- S(A, K);
895
- const Q = k(C, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = cA(B, I.__wbindgen_export), i = o;
896
- I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, Q, E, D, i);
893
+ lateral_view(A, C, Q) {
894
+ S(A, G);
895
+ const B = N(C, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = FA(Q, I.__wbindgen_export), i = o;
896
+ I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, B, E, D, i);
897
897
  }
898
898
  /**
899
899
  * Add a LEFT JOIN.
@@ -901,8 +901,8 @@ class P {
901
901
  * @param {WasmExpr} on
902
902
  */
903
903
  left_join(A, C) {
904
- const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
905
- S(C, K), I.wasmselectbuilder_left_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
904
+ const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
905
+ S(C, G), I.wasmselectbuilder_left_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
906
906
  }
907
907
  /**
908
908
  * Set the LIMIT clause.
@@ -937,7 +937,7 @@ class P {
937
937
  * @param {WasmExpr} condition
938
938
  */
939
939
  qualify(A) {
940
- S(A, K), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
940
+ S(A, G), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
941
941
  }
942
942
  /**
943
943
  * Add a RIGHT JOIN.
@@ -945,23 +945,23 @@ class P {
945
945
  * @param {WasmExpr} on
946
946
  */
947
947
  right_join(A, C) {
948
- const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
949
- S(C, K), I.wasmselectbuilder_right_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
948
+ const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
949
+ S(C, G), I.wasmselectbuilder_right_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
950
950
  }
951
951
  /**
952
952
  * Add a column by name to the SELECT list.
953
953
  * @param {string} name
954
954
  */
955
955
  select_col(A) {
956
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
957
- I.wasmselectbuilder_select_col(this.__wbg_ptr, C, B);
956
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
957
+ I.wasmselectbuilder_select_col(this.__wbg_ptr, C, Q);
958
958
  }
959
959
  /**
960
960
  * Add a single expression to the SELECT list.
961
961
  * @param {WasmExpr} expr
962
962
  */
963
963
  select_expr(A) {
964
- S(A, K), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
964
+ S(A, G), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
965
965
  }
966
966
  /**
967
967
  * Add multiple expressions to the SELECT list.
@@ -989,16 +989,16 @@ class P {
989
989
  * @returns {string}
990
990
  */
991
991
  to_sql(A) {
992
- let C, B;
992
+ let C, Q;
993
993
  try {
994
- const G = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
995
- I.wasmselectbuilder_to_sql(G, this.__wbg_ptr, h, R);
996
- var Q = M().getInt32(G + 0, !0), E = M().getInt32(G + 4, !0), D = M().getInt32(G + 8, !0), i = M().getInt32(G + 12, !0), N = Q, y = E;
994
+ const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
995
+ I.wasmselectbuilder_to_sql(K, this.__wbg_ptr, h, R);
996
+ var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
997
997
  if (i)
998
- throw N = 0, y = 0, F(D);
999
- return C = N, B = y, c(N, y);
998
+ throw k = 0, y = 0, F(D);
999
+ return C = k, Q = y, U(k, y);
1000
1000
  } finally {
1001
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1001
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1002
1002
  }
1003
1003
  }
1004
1004
  /**
@@ -1010,10 +1010,10 @@ class P {
1010
1010
  try {
1011
1011
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1012
1012
  S(A, P), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1013
- var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1014
- if (Q)
1015
- throw F(B);
1016
- return z.__wrap(C);
1013
+ var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
1014
+ if (B)
1015
+ throw F(Q);
1016
+ return x.__wrap(C);
1017
1017
  } finally {
1018
1018
  I.__wbindgen_add_to_stack_pointer(16);
1019
1019
  }
@@ -1027,10 +1027,10 @@ class P {
1027
1027
  try {
1028
1028
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1029
1029
  S(A, P), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1030
- var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1031
- if (Q)
1032
- throw F(B);
1033
- return z.__wrap(C);
1030
+ var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
1031
+ if (B)
1032
+ throw F(Q);
1033
+ return x.__wrap(C);
1034
1034
  } finally {
1035
1035
  I.__wbindgen_add_to_stack_pointer(16);
1036
1036
  }
@@ -1040,15 +1040,15 @@ class P {
1040
1040
  * @param {WasmExpr} condition
1041
1041
  */
1042
1042
  where_expr(A) {
1043
- S(A, K), I.wasmselectbuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1043
+ S(A, G), I.wasmselectbuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1044
1044
  }
1045
1045
  /**
1046
1046
  * Set the WHERE clause by parsing a raw SQL condition string.
1047
1047
  * @param {string} sql
1048
1048
  */
1049
1049
  where_sql(A) {
1050
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1051
- I.wasmselectbuilder_where_sql(this.__wbg_ptr, C, B);
1050
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1051
+ I.wasmselectbuilder_where_sql(this.__wbg_ptr, C, Q);
1052
1052
  }
1053
1053
  /**
1054
1054
  * Add a named WINDOW clause definition.
@@ -1057,26 +1057,26 @@ class P {
1057
1057
  */
1058
1058
  window(A, C) {
1059
1059
  try {
1060
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1061
- S(C, BA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, i, C.__wbg_ptr);
1062
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1063
- if (Q)
1064
- throw F(B);
1060
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1061
+ S(C, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, i, C.__wbg_ptr);
1062
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1063
+ if (B)
1064
+ throw F(Q);
1065
1065
  } finally {
1066
1066
  I.__wbindgen_add_to_stack_pointer(16);
1067
1067
  }
1068
1068
  }
1069
1069
  }
1070
1070
  Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
1071
- class z {
1071
+ class x {
1072
1072
  static __wrap(A) {
1073
1073
  A = A >>> 0;
1074
- const C = Object.create(z.prototype);
1075
- return C.__wbg_ptr = A, rA.register(C, C.__wbg_ptr, C), C;
1074
+ const C = Object.create(x.prototype);
1075
+ return C.__wbg_ptr = A, lA.register(C, C.__wbg_ptr, C), C;
1076
1076
  }
1077
1077
  __destroy_into_raw() {
1078
1078
  const A = this.__wbg_ptr;
1079
- return this.__wbg_ptr = 0, rA.unregister(this), A;
1079
+ return this.__wbg_ptr = 0, lA.unregister(this), A;
1080
1080
  }
1081
1081
  free() {
1082
1082
  const A = this.__destroy_into_raw();
@@ -1088,10 +1088,10 @@ class z {
1088
1088
  */
1089
1089
  build() {
1090
1090
  try {
1091
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
1092
- I.wasmsetopbuilder_build(Q, this.__wbg_ptr);
1093
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
1094
- if (B)
1091
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
1092
+ I.wasmsetopbuilder_build(B, this.__wbg_ptr);
1093
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
1094
+ if (Q)
1095
1095
  throw F(C);
1096
1096
  return F(A);
1097
1097
  } finally {
@@ -1125,24 +1125,24 @@ class z {
1125
1125
  * @returns {string}
1126
1126
  */
1127
1127
  to_sql(A) {
1128
- let C, B;
1128
+ let C, Q;
1129
1129
  try {
1130
- const G = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
1131
- I.wasmsetopbuilder_to_sql(G, this.__wbg_ptr, h, R);
1132
- var Q = M().getInt32(G + 0, !0), E = M().getInt32(G + 4, !0), D = M().getInt32(G + 8, !0), i = M().getInt32(G + 12, !0), N = Q, y = E;
1130
+ const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
1131
+ I.wasmsetopbuilder_to_sql(K, this.__wbg_ptr, h, R);
1132
+ var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
1133
1133
  if (i)
1134
- throw N = 0, y = 0, F(D);
1135
- return C = N, B = y, c(N, y);
1134
+ throw k = 0, y = 0, F(D);
1135
+ return C = k, Q = y, U(k, y);
1136
1136
  } finally {
1137
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1137
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1138
1138
  }
1139
1139
  }
1140
1140
  }
1141
- Symbol.dispose && (z.prototype[Symbol.dispose] = z.prototype.free);
1142
- class kA {
1141
+ Symbol.dispose && (x.prototype[Symbol.dispose] = x.prototype.free);
1142
+ class NA {
1143
1143
  __destroy_into_raw() {
1144
1144
  const A = this.__wbg_ptr;
1145
- return this.__wbg_ptr = 0, lA.unregister(this), A;
1145
+ return this.__wbg_ptr = 0, rA.unregister(this), A;
1146
1146
  }
1147
1147
  free() {
1148
1148
  const A = this.__destroy_into_raw();
@@ -1154,10 +1154,10 @@ class kA {
1154
1154
  */
1155
1155
  build() {
1156
1156
  try {
1157
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
1158
- I.wasmupdatebuilder_build(Q, this.__wbg_ptr);
1159
- var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
1160
- if (B)
1157
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
1158
+ I.wasmupdatebuilder_build(B, this.__wbg_ptr);
1159
+ var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
1160
+ if (Q)
1161
1161
  throw F(C);
1162
1162
  return F(A);
1163
1163
  } finally {
@@ -1169,16 +1169,16 @@ class kA {
1169
1169
  * @param {string} table
1170
1170
  */
1171
1171
  from(A) {
1172
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1173
- I.wasmupdatebuilder_from(this.__wbg_ptr, C, B);
1172
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1173
+ I.wasmupdatebuilder_from(this.__wbg_ptr, C, Q);
1174
1174
  }
1175
1175
  /**
1176
1176
  * Create a new UPDATE builder for the given table.
1177
1177
  * @param {string} table_name
1178
1178
  */
1179
1179
  constructor(A) {
1180
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmupdatebuilder_new(C, B);
1181
- return this.__wbg_ptr = Q >>> 0, lA.register(this, this.__wbg_ptr, this), this;
1180
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmupdatebuilder_new(C, Q);
1181
+ return this.__wbg_ptr = B >>> 0, rA.register(this, this.__wbg_ptr, this), this;
1182
1182
  }
1183
1183
  /**
1184
1184
  * Add a SET column = value assignment.
@@ -1186,8 +1186,8 @@ class kA {
1186
1186
  * @param {WasmExpr} value
1187
1187
  */
1188
1188
  set(A, C) {
1189
- const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1190
- S(C, K), I.wasmupdatebuilder_set(this.__wbg_ptr, B, Q, C.__wbg_ptr);
1189
+ const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1190
+ S(C, G), I.wasmupdatebuilder_set(this.__wbg_ptr, Q, B, C.__wbg_ptr);
1191
1191
  }
1192
1192
  /**
1193
1193
  * Generate SQL string for the given dialect.
@@ -1195,16 +1195,16 @@ class kA {
1195
1195
  * @returns {string}
1196
1196
  */
1197
1197
  to_sql(A) {
1198
- let C, B;
1198
+ let C, Q;
1199
1199
  try {
1200
- const G = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
1201
- I.wasmupdatebuilder_to_sql(G, this.__wbg_ptr, h, R);
1202
- var Q = M().getInt32(G + 0, !0), E = M().getInt32(G + 4, !0), D = M().getInt32(G + 8, !0), i = M().getInt32(G + 12, !0), N = Q, y = E;
1200
+ const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
1201
+ I.wasmupdatebuilder_to_sql(K, this.__wbg_ptr, h, R);
1202
+ var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
1203
1203
  if (i)
1204
- throw N = 0, y = 0, F(D);
1205
- return C = N, B = y, c(N, y);
1204
+ throw k = 0, y = 0, F(D);
1205
+ return C = k, Q = y, U(k, y);
1206
1206
  } finally {
1207
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1207
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1208
1208
  }
1209
1209
  }
1210
1210
  /**
@@ -1212,11 +1212,11 @@ class kA {
1212
1212
  * @param {WasmExpr} condition
1213
1213
  */
1214
1214
  where_expr(A) {
1215
- S(A, K), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1215
+ S(A, G), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1216
1216
  }
1217
1217
  }
1218
- Symbol.dispose && (kA.prototype[Symbol.dispose] = kA.prototype.free);
1219
- class BA {
1218
+ Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
1219
+ class QA {
1220
1220
  __destroy_into_raw() {
1221
1221
  const A = this.__wbg_ptr;
1222
1222
  return this.__wbg_ptr = 0, nA.unregister(this), A;
@@ -1247,40 +1247,40 @@ class BA {
1247
1247
  S(A, T), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
1248
1248
  }
1249
1249
  }
1250
- Symbol.dispose && (BA.prototype[Symbol.dispose] = BA.prototype.free);
1251
- function yI(g, A, C) {
1252
- let B, Q;
1250
+ Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
1251
+ function GI(g, A, C) {
1252
+ let Q, B;
1253
1253
  try {
1254
- const i = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, G = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = k(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1255
- I.annotate_types(i, N, y, G, h, R, q);
1254
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1255
+ I.annotate_types(i, k, y, K, h, R, q);
1256
1256
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1257
- return B = E, Q = D, c(E, D);
1257
+ return Q = E, B = D, U(E, D);
1258
1258
  } finally {
1259
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1259
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1260
1260
  }
1261
1261
  }
1262
- function KI(g, A, C) {
1263
- const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = k(C, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = I.annotate_types_value(B, Q, E, D, i, N);
1262
+ function YI(g, A, C) {
1263
+ const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = I.annotate_types_value(Q, B, E, D, i, k);
1264
1264
  return F(y);
1265
1265
  }
1266
- function bA(g, A, C) {
1267
- let B, Q;
1266
+ function mA(g, A, C) {
1267
+ let Q, B;
1268
1268
  try {
1269
- const i = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, G = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = o;
1270
- I.ast_add_where(i, N, y, G, h, C);
1269
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o;
1270
+ I.ast_add_where(i, k, y, K, h, C);
1271
1271
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1272
- return B = E, Q = D, c(E, D);
1272
+ return Q = E, B = D, U(E, D);
1273
1273
  } finally {
1274
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1274
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1275
1275
  }
1276
1276
  }
1277
1277
  function vA(g) {
1278
1278
  let A, C;
1279
1279
  try {
1280
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1280
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1281
1281
  I.ast_get_aggregate_functions(E, D, i);
1282
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1283
- return A = B, C = Q, c(B, Q);
1282
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1283
+ return A = Q, C = B, U(Q, B);
1284
1284
  } finally {
1285
1285
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1286
1286
  }
@@ -1288,10 +1288,10 @@ function vA(g) {
1288
1288
  function XA(g) {
1289
1289
  let A, C;
1290
1290
  try {
1291
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1291
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1292
1292
  I.ast_get_column_names(E, D, i);
1293
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1294
- return A = B, C = Q, c(B, Q);
1293
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1294
+ return A = Q, C = B, U(Q, B);
1295
1295
  } finally {
1296
1296
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1297
1297
  }
@@ -1299,10 +1299,10 @@ function XA(g) {
1299
1299
  function _A(g) {
1300
1300
  let A, C;
1301
1301
  try {
1302
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1302
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1303
1303
  I.ast_get_functions(E, D, i);
1304
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1305
- return A = B, C = Q, c(B, Q);
1304
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1305
+ return A = Q, C = B, U(Q, B);
1306
1306
  } finally {
1307
1307
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1308
1308
  }
@@ -1310,10 +1310,10 @@ function _A(g) {
1310
1310
  function $A(g) {
1311
1311
  let A, C;
1312
1312
  try {
1313
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1313
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1314
1314
  I.ast_get_literals(E, D, i);
1315
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1316
- return A = B, C = Q, c(B, Q);
1315
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1316
+ return A = Q, C = B, U(Q, B);
1317
1317
  } finally {
1318
1318
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1319
1319
  }
@@ -1321,10 +1321,10 @@ function $A(g) {
1321
1321
  function Ag(g) {
1322
1322
  let A, C;
1323
1323
  try {
1324
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1324
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1325
1325
  I.ast_get_subqueries(E, D, i);
1326
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1327
- return A = B, C = Q, c(B, Q);
1326
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1327
+ return A = Q, C = B, U(Q, B);
1328
1328
  } finally {
1329
1329
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1330
1330
  }
@@ -1332,10 +1332,10 @@ function Ag(g) {
1332
1332
  function gg(g) {
1333
1333
  let A, C;
1334
1334
  try {
1335
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1335
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1336
1336
  I.ast_get_table_names(E, D, i);
1337
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1338
- return A = B, C = Q, c(B, Q);
1337
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1338
+ return A = Q, C = B, U(Q, B);
1339
1339
  } finally {
1340
1340
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1341
1341
  }
@@ -1343,10 +1343,10 @@ function gg(g) {
1343
1343
  function Ig(g) {
1344
1344
  let A, C;
1345
1345
  try {
1346
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1346
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1347
1347
  I.ast_get_window_functions(E, D, i);
1348
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1349
- return A = B, C = Q, c(B, Q);
1348
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1349
+ return A = Q, C = B, U(Q, B);
1350
1350
  } finally {
1351
1351
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1352
1352
  }
@@ -1354,595 +1354,617 @@ function Ig(g) {
1354
1354
  function Cg(g) {
1355
1355
  let A, C;
1356
1356
  try {
1357
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1357
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1358
1358
  I.ast_node_count(E, D, i);
1359
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1360
- return A = B, C = Q, c(B, Q);
1359
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1360
+ return A = Q, C = B, U(Q, B);
1361
1361
  } finally {
1362
1362
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1363
1363
  }
1364
1364
  }
1365
+ function Qg(g, A) {
1366
+ let C, Q;
1367
+ try {
1368
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1369
+ I.ast_qualify_columns(D, i, k, y, K);
1370
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1371
+ return C = B, Q = E, U(B, E);
1372
+ } finally {
1373
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1374
+ }
1375
+ }
1365
1376
  function Bg(g, A) {
1366
- let C, B;
1377
+ let C, Q;
1367
1378
  try {
1368
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1369
- I.ast_qualify_columns(D, i, N, y, G);
1370
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1371
- return C = Q, B = E, c(Q, E);
1379
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1380
+ I.ast_qualify_tables(D, i, k, y, K);
1381
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1382
+ return C = B, Q = E, U(B, E);
1372
1383
  } finally {
1373
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1384
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1374
1385
  }
1375
1386
  }
1376
- function Qg(g) {
1387
+ function Eg(g) {
1377
1388
  let A, C;
1378
1389
  try {
1379
- const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1390
+ const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1380
1391
  I.ast_remove_where(E, D, i);
1381
- var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1382
- return A = B, C = Q, c(B, Q);
1392
+ var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1393
+ return A = Q, C = B, U(Q, B);
1383
1394
  } finally {
1384
1395
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1385
1396
  }
1386
1397
  }
1387
- function Eg(g, A) {
1388
- let C, B;
1398
+ function Dg(g, A) {
1399
+ let C, Q;
1400
+ try {
1401
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1402
+ I.ast_rename_columns(D, i, k, y, K);
1403
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1404
+ return C = B, Q = E, U(B, E);
1405
+ } finally {
1406
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1407
+ }
1408
+ }
1409
+ function wg(g, A) {
1410
+ let C, Q;
1389
1411
  try {
1390
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1391
- I.ast_rename_columns(D, i, N, y, G);
1392
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1393
- return C = Q, B = E, c(Q, E);
1412
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1413
+ I.ast_rename_tables(D, i, k, y, K);
1414
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1415
+ return C = B, Q = E, U(B, E);
1394
1416
  } finally {
1395
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1417
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1396
1418
  }
1397
1419
  }
1398
- function Dg(g, A) {
1399
- let C, B;
1420
+ function Mg(g, A, C) {
1421
+ let Q, B;
1400
1422
  try {
1401
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1402
- I.ast_rename_tables(D, i, N, y, G);
1403
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1404
- return C = Q, B = E, c(Q, E);
1423
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1424
+ I.ast_rename_tables_with_options(i, k, y, K, h, R, q);
1425
+ var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1426
+ return Q = E, B = D, U(E, D);
1405
1427
  } finally {
1406
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1428
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1407
1429
  }
1408
1430
  }
1409
- function wg(g, A) {
1410
- let C, B;
1431
+ function ig(g, A) {
1432
+ let C, Q;
1411
1433
  try {
1412
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o;
1413
- I.ast_set_distinct(D, i, N, A);
1414
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1415
- return C = Q, B = E, c(Q, E);
1434
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o;
1435
+ I.ast_set_distinct(D, i, k, A);
1436
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1437
+ return C = B, Q = E, U(B, E);
1416
1438
  } finally {
1417
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1439
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1418
1440
  }
1419
1441
  }
1420
- function Mg(g, A) {
1421
- let C, B;
1442
+ function og(g, A) {
1443
+ let C, Q;
1422
1444
  try {
1423
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o;
1424
- I.ast_set_limit(D, i, N, A);
1425
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1426
- return C = Q, B = E, c(Q, E);
1445
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o;
1446
+ I.ast_set_limit(D, i, k, A);
1447
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1448
+ return C = B, Q = E, U(B, E);
1427
1449
  } finally {
1428
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1450
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1429
1451
  }
1430
1452
  }
1431
- function ig(g, A, C, B, Q, E) {
1453
+ function Ng(g, A, C, Q, B, E) {
1432
1454
  let D, i;
1433
1455
  try {
1434
- const G = I.__wbindgen_add_to_stack_pointer(-16), h = k(g, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = k(A, I.__wbindgen_export, I.__wbindgen_export2), j = o, u = k(C, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1435
- I.diff_sql(G, h, R, q, j, u, v, B, Q, E);
1436
- var N = M().getInt32(G + 0, !0), y = M().getInt32(G + 4, !0);
1437
- return D = N, i = y, c(N, y);
1456
+ const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(g, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = N(A, I.__wbindgen_export, I.__wbindgen_export2), j = o, l = N(C, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1457
+ I.diff_sql(K, h, R, q, j, l, v, Q, B, E);
1458
+ var k = M().getInt32(K + 0, !0), y = M().getInt32(K + 4, !0);
1459
+ return D = k, i = y, U(k, y);
1438
1460
  } finally {
1439
1461
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, i, 1);
1440
1462
  }
1441
1463
  }
1442
- function GI(g, A) {
1443
- let C, B;
1464
+ function SI(g, A) {
1465
+ let C, Q;
1444
1466
  try {
1445
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1446
- I.format_sql(D, i, N, y, G);
1447
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1448
- return C = Q, B = E, c(Q, E);
1467
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1468
+ I.format_sql(D, i, k, y, K);
1469
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1470
+ return C = B, Q = E, U(B, E);
1449
1471
  } finally {
1450
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1472
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1451
1473
  }
1452
1474
  }
1453
- function YI(g, A) {
1454
- const C = k(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = k(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.format_sql_value(C, B, Q, E);
1475
+ function hI(g, A) {
1476
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.format_sql_value(C, Q, B, E);
1455
1477
  return F(D);
1456
1478
  }
1457
- function SI(g, A, C) {
1458
- let B, Q;
1479
+ function HI(g, A, C) {
1480
+ let Q, B;
1459
1481
  try {
1460
- const i = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, G = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = k(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1461
- I.format_sql_with_options(i, N, y, G, h, R, q);
1482
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1483
+ I.format_sql_with_options(i, k, y, K, h, R, q);
1462
1484
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1463
- return B = E, Q = D, c(E, D);
1485
+ return Q = E, B = D, U(E, D);
1464
1486
  } finally {
1465
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1487
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1466
1488
  }
1467
1489
  }
1468
- function hI(g, A, C) {
1469
- const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = I.format_sql_with_options_value(B, Q, E, D, s(C));
1490
+ function LI(g, A, C) {
1491
+ const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = I.format_sql_with_options_value(Q, B, E, D, s(C));
1470
1492
  return F(i);
1471
1493
  }
1472
- function HI(g, A) {
1473
- let C, B;
1494
+ function UI(g, A) {
1495
+ let C, Q;
1474
1496
  try {
1475
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1476
- I.generate(D, i, N, y, G);
1477
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1478
- return C = Q, B = E, c(Q, E);
1497
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1498
+ I.generate(D, i, k, y, K);
1499
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1500
+ return C = B, Q = E, U(B, E);
1479
1501
  } finally {
1480
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1502
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1481
1503
  }
1482
1504
  }
1483
- function UI(g, A) {
1484
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.generate_value(s(g), C, B);
1485
- return F(Q);
1505
+ function cI(g, A) {
1506
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.generate_value(s(g), C, Q);
1507
+ return F(B);
1486
1508
  }
1487
- function LI() {
1509
+ function FI() {
1488
1510
  let g, A;
1489
1511
  try {
1490
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
1491
- I.get_dialects(Q);
1492
- var C = M().getInt32(Q + 0, !0), B = M().getInt32(Q + 4, !0);
1493
- return g = C, A = B, c(C, B);
1512
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
1513
+ I.get_dialects(B);
1514
+ var C = M().getInt32(B + 0, !0), Q = M().getInt32(B + 4, !0);
1515
+ return g = C, A = Q, U(C, Q);
1494
1516
  } finally {
1495
1517
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1496
1518
  }
1497
1519
  }
1498
- function FI() {
1520
+ function JI() {
1499
1521
  const g = I.get_dialects_value();
1500
1522
  return F(g);
1501
1523
  }
1502
- function og(g, A, C, B) {
1503
- let Q, E;
1524
+ function kg(g, A, C, Q) {
1525
+ let B, E;
1504
1526
  try {
1505
- const N = I.__wbindgen_add_to_stack_pointer(-16), y = k(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = k(C, I.__wbindgen_export, I.__wbindgen_export2), j = o;
1506
- I.lineage_sql(N, y, G, h, R, q, j, B);
1507
- var D = M().getInt32(N + 0, !0), i = M().getInt32(N + 4, !0);
1508
- return Q = D, E = i, c(D, i);
1527
+ const k = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), j = o;
1528
+ I.lineage_sql(k, y, K, h, R, q, j, Q);
1529
+ var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
1530
+ return B = D, E = i, U(D, i);
1509
1531
  } finally {
1510
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
1532
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
1511
1533
  }
1512
1534
  }
1513
- function kg(g, A, C, B, Q) {
1535
+ function yg(g, A, C, Q, B) {
1514
1536
  let E, D;
1515
1537
  try {
1516
- const y = I.__wbindgen_add_to_stack_pointer(-16), G = k(g, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = k(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, j = k(C, I.__wbindgen_export, I.__wbindgen_export2), u = o, v = k(B, I.__wbindgen_export, I.__wbindgen_export2), oI = o;
1517
- I.lineage_sql_with_schema(y, G, h, R, q, j, u, v, oI, Q);
1518
- var i = M().getInt32(y + 0, !0), N = M().getInt32(y + 4, !0);
1519
- return E = i, D = N, c(i, N);
1538
+ const y = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, j = N(C, I.__wbindgen_export, I.__wbindgen_export2), l = o, v = N(Q, I.__wbindgen_export, I.__wbindgen_export2), kI = o;
1539
+ I.lineage_sql_with_schema(y, K, h, R, q, j, l, v, kI, B);
1540
+ var i = M().getInt32(y + 0, !0), k = M().getInt32(y + 4, !0);
1541
+ return E = i, D = k, U(i, k);
1520
1542
  } finally {
1521
1543
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
1522
1544
  }
1523
1545
  }
1524
- function cI(g, A) {
1525
- let C, B;
1546
+ function RI(g, A) {
1547
+ let C, Q;
1526
1548
  try {
1527
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1528
- I.parse(D, i, N, y, G);
1529
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1530
- return C = Q, B = E, c(Q, E);
1549
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1550
+ I.parse(D, i, k, y, K);
1551
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1552
+ return C = B, Q = E, U(B, E);
1531
1553
  } finally {
1532
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1554
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1533
1555
  }
1534
1556
  }
1535
- function JI(g, A) {
1536
- const C = k(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = k(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.parse_value(C, B, Q, E);
1557
+ function sI(g, A) {
1558
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.parse_value(C, Q, B, E);
1537
1559
  return F(D);
1538
1560
  }
1539
- function Ng(g, A) {
1540
- let C, B;
1561
+ function Kg(g, A) {
1562
+ let C, Q;
1541
1563
  try {
1542
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1543
- I.plan(D, i, N, y, G);
1544
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1545
- return C = Q, B = E, c(Q, E);
1564
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1565
+ I.plan(D, i, k, y, K);
1566
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1567
+ return C = B, Q = E, U(B, E);
1546
1568
  } finally {
1547
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1569
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1548
1570
  }
1549
1571
  }
1550
- function yg(g, A, C) {
1551
- let B, Q;
1572
+ function Gg(g, A, C) {
1573
+ let Q, B;
1552
1574
  try {
1553
- const i = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, G = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = k(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1554
- I.source_tables(i, N, y, G, h, R, q);
1575
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1576
+ I.source_tables(i, k, y, K, h, R, q);
1555
1577
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1556
- return B = E, Q = D, c(E, D);
1578
+ return Q = E, B = D, U(E, D);
1557
1579
  } finally {
1558
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1580
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1559
1581
  }
1560
1582
  }
1561
- function RI(g, A) {
1562
- let C, B;
1583
+ function aI(g, A) {
1584
+ let C, Q;
1563
1585
  try {
1564
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1565
- I.tokenize(D, i, N, y, G);
1566
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1567
- return C = Q, B = E, c(Q, E);
1586
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1587
+ I.tokenize(D, i, k, y, K);
1588
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1589
+ return C = B, Q = E, U(B, E);
1568
1590
  } finally {
1569
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1591
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1570
1592
  }
1571
1593
  }
1572
- function sI(g, A) {
1573
- const C = k(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = k(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.tokenize_value(C, B, Q, E);
1594
+ function qI(g, A) {
1595
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.tokenize_value(C, Q, B, E);
1574
1596
  return F(D);
1575
1597
  }
1576
- function aI(g, A, C) {
1577
- let B, Q;
1598
+ function pI(g, A, C) {
1599
+ let Q, B;
1578
1600
  try {
1579
- const i = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, G = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = k(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1580
- I.transpile(i, N, y, G, h, R, q);
1601
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1602
+ I.transpile(i, k, y, K, h, R, q);
1581
1603
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1582
- return B = E, Q = D, c(E, D);
1604
+ return Q = E, B = D, U(E, D);
1583
1605
  } finally {
1584
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1606
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1585
1607
  }
1586
1608
  }
1587
- function qI(g, A, C) {
1588
- const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = k(C, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = I.transpile_value(B, Q, E, D, i, N);
1609
+ function TI(g, A, C) {
1610
+ const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = I.transpile_value(Q, B, E, D, i, k);
1589
1611
  return F(y);
1590
1612
  }
1591
- function pI(g, A) {
1592
- let C, B;
1613
+ function OI(g, A) {
1614
+ let C, Q;
1593
1615
  try {
1594
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = o, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), G = o;
1595
- I.validate(D, i, N, y, G);
1596
- var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1597
- return C = Q, B = E, c(Q, E);
1616
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1617
+ I.validate(D, i, k, y, K);
1618
+ var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1619
+ return C = B, Q = E, U(B, E);
1598
1620
  } finally {
1599
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1621
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1600
1622
  }
1601
1623
  }
1602
- function TI(g, A, C) {
1603
- let B, Q;
1624
+ function jI(g, A, C) {
1625
+ let Q, B;
1604
1626
  try {
1605
- const i = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, G = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = k(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1606
- I.validate_with_options(i, N, y, G, h, R, q);
1627
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1628
+ I.validate_with_options(i, k, y, K, h, R, q);
1607
1629
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1608
- return B = E, Q = D, c(E, D);
1630
+ return Q = E, B = D, U(E, D);
1609
1631
  } finally {
1610
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1632
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1611
1633
  }
1612
1634
  }
1613
- function Kg(g, A, C, B) {
1614
- let Q, E;
1635
+ function Yg(g, A, C, Q) {
1636
+ let B, E;
1615
1637
  try {
1616
- const N = I.__wbindgen_add_to_stack_pointer(-16), y = k(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, h = k(A, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = k(C, I.__wbindgen_export, I.__wbindgen_export2), j = o, u = k(B, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1617
- I.validate_with_schema(N, y, G, h, R, q, j, u, v);
1618
- var D = M().getInt32(N + 0, !0), i = M().getInt32(N + 4, !0);
1619
- return Q = D, E = i, c(D, i);
1638
+ const k = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), j = o, l = N(Q, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1639
+ I.validate_with_schema(k, y, K, h, R, q, j, l, v);
1640
+ var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
1641
+ return B = D, E = i, U(D, i);
1620
1642
  } finally {
1621
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
1643
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
1622
1644
  }
1623
1645
  }
1624
- function OI() {
1646
+ function PI() {
1625
1647
  let g, A;
1626
1648
  try {
1627
- const Q = I.__wbindgen_add_to_stack_pointer(-16);
1628
- I.version(Q);
1629
- var C = M().getInt32(Q + 0, !0), B = M().getInt32(Q + 4, !0);
1630
- return g = C, A = B, c(C, B);
1649
+ const B = I.__wbindgen_add_to_stack_pointer(-16);
1650
+ I.version(B);
1651
+ var C = M().getInt32(B + 0, !0), Q = M().getInt32(B + 4, !0);
1652
+ return g = C, A = Q, U(C, Q);
1631
1653
  } finally {
1632
1654
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1633
1655
  }
1634
1656
  }
1635
- function Gg(g, A) {
1636
- S(g, K);
1637
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasm_alias(g.__wbg_ptr, C, B);
1638
- return K.__wrap(Q);
1657
+ function Sg(g, A) {
1658
+ S(g, G);
1659
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasm_alias(g.__wbg_ptr, C, Q);
1660
+ return G.__wrap(B);
1639
1661
  }
1640
- function Yg(g, A) {
1641
- S(g, K), S(A, K);
1662
+ function hg(g, A) {
1663
+ S(g, G), S(A, G);
1642
1664
  const C = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
1643
- return K.__wrap(C);
1665
+ return G.__wrap(C);
1644
1666
  }
1645
- function Sg(g) {
1667
+ function Hg(g) {
1646
1668
  const A = I.wasm_boolean(g);
1647
- return K.__wrap(A);
1669
+ return G.__wrap(A);
1648
1670
  }
1649
- function hg(g) {
1650
- S(g, K);
1671
+ function Lg(g) {
1672
+ S(g, G);
1651
1673
  const A = I.wasm_case_of(g.__wbg_ptr);
1652
- return l.__wrap(A);
1674
+ return n.__wrap(A);
1653
1675
  }
1654
- function Hg(g, A) {
1655
- S(g, K);
1656
- const C = k(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasm_cast(g.__wbg_ptr, C, B);
1657
- return K.__wrap(Q);
1676
+ function Ug(g, A) {
1677
+ S(g, G);
1678
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasm_cast(g.__wbg_ptr, C, Q);
1679
+ return G.__wrap(B);
1658
1680
  }
1659
- function FA(g) {
1660
- const A = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_col(A, C);
1661
- return K.__wrap(B);
1681
+ function cA(g) {
1682
+ const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, Q = I.wasm_col(A, C);
1683
+ return G.__wrap(Q);
1662
1684
  }
1663
- function Ug(g) {
1664
- S(g, K);
1685
+ function cg(g) {
1686
+ S(g, G);
1665
1687
  const A = I.wasm_count_distinct(g.__wbg_ptr);
1666
- return K.__wrap(A);
1667
- }
1668
- function Lg(g, A) {
1669
- const C = k(g, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1670
- S(A, K);
1671
- const Q = I.wasm_extract(C, B, A.__wbg_ptr);
1672
- return K.__wrap(Q);
1688
+ return G.__wrap(A);
1673
1689
  }
1674
1690
  function Fg(g, A) {
1675
- const C = k(g, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1691
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1692
+ S(A, G);
1693
+ const B = I.wasm_extract(C, Q, A.__wbg_ptr);
1694
+ return G.__wrap(B);
1695
+ }
1696
+ function Jg(g, A) {
1697
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1676
1698
  S(A, T);
1677
- const Q = I.wasm_func(C, B, A.__wbg_ptr);
1678
- return K.__wrap(Q);
1699
+ const B = I.wasm_func(C, Q, A.__wbg_ptr);
1700
+ return G.__wrap(B);
1679
1701
  }
1680
- function NA(g) {
1702
+ function kA(g) {
1681
1703
  const A = I.wasm_lit(s(g));
1682
- return K.__wrap(A);
1704
+ return G.__wrap(A);
1683
1705
  }
1684
- function cg(g) {
1685
- S(g, K);
1706
+ function Rg(g) {
1707
+ S(g, G);
1686
1708
  const A = I.wasm_not(g.__wbg_ptr);
1687
- return K.__wrap(A);
1709
+ return G.__wrap(A);
1688
1710
  }
1689
1711
  function yA() {
1690
1712
  const g = I.wasm_null();
1691
- return K.__wrap(g);
1713
+ return G.__wrap(g);
1692
1714
  }
1693
- function Jg(g, A) {
1694
- S(g, K), S(A, K);
1715
+ function sg(g, A) {
1716
+ S(g, G), S(A, G);
1695
1717
  const C = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
1696
- return K.__wrap(C);
1718
+ return G.__wrap(C);
1697
1719
  }
1698
- function Rg(g) {
1699
- const A = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_sql_expr(A, C);
1700
- return K.__wrap(B);
1720
+ function ag(g) {
1721
+ const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, Q = I.wasm_sql_expr(A, C);
1722
+ return G.__wrap(Q);
1701
1723
  }
1702
- function sg() {
1724
+ function qg() {
1703
1725
  const g = I.wasm_star();
1704
- return K.__wrap(g);
1726
+ return G.__wrap(g);
1705
1727
  }
1706
- function ag(g, A) {
1728
+ function pg(g, A) {
1707
1729
  try {
1708
1730
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1709
1731
  S(g, P);
1710
- const D = k(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1732
+ const D = N(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1711
1733
  I.wasm_subquery(E, g.__wbg_ptr, D, i);
1712
- var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1713
- if (Q)
1714
- throw F(B);
1715
- return K.__wrap(C);
1734
+ var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
1735
+ if (B)
1736
+ throw F(Q);
1737
+ return G.__wrap(C);
1716
1738
  } finally {
1717
1739
  I.__wbindgen_add_to_stack_pointer(16);
1718
1740
  }
1719
1741
  }
1720
- function qg(g) {
1721
- const A = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_table(A, C);
1722
- return K.__wrap(B);
1723
- }
1724
- function jI(g, A) {
1725
- const C = Error(c(g, A));
1726
- return s(C);
1727
- }
1728
- function PI(g) {
1729
- return Number(U(g));
1742
+ function Tg(g) {
1743
+ const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, Q = I.wasm_table(A, C);
1744
+ return G.__wrap(Q);
1730
1745
  }
1731
1746
  function dI(g, A) {
1732
- const C = String(U(A)), B = k(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1733
- M().setInt32(g + 4, Q, !0), M().setInt32(g + 0, B, !0);
1747
+ const C = Error(U(g, A));
1748
+ return s(C);
1734
1749
  }
1735
- function tI(g, A) {
1736
- const C = U(A), B = typeof C == "bigint" ? C : void 0;
1737
- M().setBigInt64(g + 8, b(B) ? BigInt(0) : B, !0), M().setInt32(g + 0, !b(B), !0);
1750
+ function tI(g) {
1751
+ return Number(L(g));
1738
1752
  }
1739
- function ZI(g) {
1740
- const A = U(g), C = typeof A == "boolean" ? A : void 0;
1741
- return b(C) ? 16777215 : C ? 1 : 0;
1753
+ function ZI(g, A) {
1754
+ const C = String(L(A)), Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1755
+ M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
1742
1756
  }
1743
1757
  function VI(g, A) {
1744
- const C = UA(U(A)), B = k(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1745
- M().setInt32(g + 4, Q, !0), M().setInt32(g + 0, B, !0);
1758
+ const C = L(A), Q = typeof C == "bigint" ? C : void 0;
1759
+ M().setBigInt64(g + 8, m(Q) ? BigInt(0) : Q, !0), M().setInt32(g + 0, !m(Q), !0);
1746
1760
  }
1747
- function zI(g, A) {
1748
- return U(g) in U(A);
1761
+ function zI(g) {
1762
+ const A = L(g), C = typeof A == "boolean" ? A : void 0;
1763
+ return m(C) ? 16777215 : C ? 1 : 0;
1749
1764
  }
1750
- function xI(g) {
1751
- return typeof U(g) == "bigint";
1765
+ function xI(g, A) {
1766
+ const C = LA(L(A)), Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1767
+ M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
1752
1768
  }
1753
- function fI(g) {
1754
- return typeof U(g) == "function";
1769
+ function fI(g, A) {
1770
+ return L(g) in L(A);
1755
1771
  }
1756
1772
  function WI(g) {
1757
- return U(g) === null;
1773
+ return typeof L(g) == "bigint";
1758
1774
  }
1759
1775
  function eI(g) {
1760
- const A = U(g);
1761
- return typeof A == "object" && A !== null;
1776
+ return typeof L(g) == "function";
1762
1777
  }
1763
1778
  function uI(g) {
1764
- return typeof U(g) == "string";
1779
+ return L(g) === null;
1780
+ }
1781
+ function lI(g) {
1782
+ const A = L(g);
1783
+ return typeof A == "object" && A !== null;
1765
1784
  }
1766
1785
  function rI(g) {
1767
- return U(g) === void 0;
1786
+ return typeof L(g) == "string";
1768
1787
  }
1769
- function lI(g, A) {
1770
- return U(g) === U(A);
1788
+ function nI(g) {
1789
+ return L(g) === void 0;
1771
1790
  }
1772
- function nI(g, A) {
1773
- return U(g) == U(A);
1791
+ function bI(g, A) {
1792
+ return L(g) === L(A);
1774
1793
  }
1775
1794
  function mI(g, A) {
1776
- const C = U(A), B = typeof C == "number" ? C : void 0;
1777
- M().setFloat64(g + 8, b(B) ? 0 : B, !0), M().setInt32(g + 0, !b(B), !0);
1778
- }
1779
- function bI(g, A) {
1780
- const C = U(A), B = typeof C == "string" ? C : void 0;
1781
- var Q = b(B) ? 0 : k(B, I.__wbindgen_export, I.__wbindgen_export2), E = o;
1782
- M().setInt32(g + 4, E, !0), M().setInt32(g + 0, Q, !0);
1795
+ return L(g) == L(A);
1783
1796
  }
1784
1797
  function vI(g, A) {
1785
- throw new Error(c(g, A));
1798
+ const C = L(A), Q = typeof C == "number" ? C : void 0;
1799
+ M().setFloat64(g + 8, m(Q) ? 0 : Q, !0), M().setInt32(g + 0, !m(Q), !0);
1786
1800
  }
1787
- function XI() {
1801
+ function XI(g, A) {
1802
+ const C = L(A), Q = typeof C == "string" ? C : void 0;
1803
+ var B = m(Q) ? 0 : N(Q, I.__wbindgen_export, I.__wbindgen_export2), E = o;
1804
+ M().setInt32(g + 4, E, !0), M().setInt32(g + 0, B, !0);
1805
+ }
1806
+ function _I(g, A) {
1807
+ throw new Error(U(g, A));
1808
+ }
1809
+ function $I() {
1788
1810
  return KA(function(g, A) {
1789
- const C = U(g).call(U(A));
1811
+ const C = L(g).call(L(A));
1790
1812
  return s(C);
1791
1813
  }, arguments);
1792
1814
  }
1793
- function _I(g, A) {
1794
- const C = U(g).codePointAt(A >>> 0);
1815
+ function AC(g, A) {
1816
+ const C = L(g).codePointAt(A >>> 0);
1795
1817
  return s(C);
1796
1818
  }
1797
- function $I(g) {
1798
- return U(g).done;
1819
+ function gC(g) {
1820
+ return L(g).done;
1799
1821
  }
1800
- function AC(g) {
1801
- const A = Object.entries(U(g));
1822
+ function IC(g) {
1823
+ const A = Object.entries(L(g));
1802
1824
  return s(A);
1803
1825
  }
1804
- function gC(g, A) {
1805
- let C, B;
1826
+ function CC(g, A) {
1827
+ let C, Q;
1806
1828
  try {
1807
- C = g, B = A, console.error(c(g, A));
1829
+ C = g, Q = A, console.error(U(g, A));
1808
1830
  } finally {
1809
- I.__wbindgen_export4(C, B, 1);
1831
+ I.__wbindgen_export4(C, Q, 1);
1810
1832
  }
1811
1833
  }
1812
- function IC() {
1834
+ function QC() {
1813
1835
  return KA(function(g) {
1814
1836
  const A = String.fromCodePoint(g >>> 0);
1815
1837
  return s(A);
1816
1838
  }, arguments);
1817
1839
  }
1818
- function CC(g, A) {
1819
- const C = U(g)[A >>> 0];
1840
+ function BC(g, A) {
1841
+ const C = L(g)[A >>> 0];
1820
1842
  return s(C);
1821
1843
  }
1822
- function BC() {
1844
+ function EC() {
1823
1845
  return KA(function(g, A) {
1824
- const C = Reflect.get(U(g), U(A));
1846
+ const C = Reflect.get(L(g), L(A));
1825
1847
  return s(C);
1826
1848
  }, arguments);
1827
1849
  }
1828
- function QC(g, A) {
1829
- const C = U(g)[U(A)];
1850
+ function DC(g, A) {
1851
+ const C = L(g)[L(A)];
1830
1852
  return s(C);
1831
1853
  }
1832
- function EC(g) {
1854
+ function wC(g) {
1833
1855
  let A;
1834
1856
  try {
1835
- A = U(g) instanceof ArrayBuffer;
1857
+ A = L(g) instanceof ArrayBuffer;
1836
1858
  } catch {
1837
1859
  A = !1;
1838
1860
  }
1839
1861
  return A;
1840
1862
  }
1841
- function DC(g) {
1863
+ function MC(g) {
1842
1864
  let A;
1843
1865
  try {
1844
- A = U(g) instanceof Map;
1866
+ A = L(g) instanceof Map;
1845
1867
  } catch {
1846
1868
  A = !1;
1847
1869
  }
1848
1870
  return A;
1849
1871
  }
1850
- function wC(g) {
1872
+ function iC(g) {
1851
1873
  let A;
1852
1874
  try {
1853
- A = U(g) instanceof Uint8Array;
1875
+ A = L(g) instanceof Uint8Array;
1854
1876
  } catch {
1855
1877
  A = !1;
1856
1878
  }
1857
1879
  return A;
1858
1880
  }
1859
- function MC(g) {
1860
- return Array.isArray(U(g));
1881
+ function oC(g) {
1882
+ return Array.isArray(L(g));
1861
1883
  }
1862
- function iC(g) {
1863
- return Number.isSafeInteger(U(g));
1884
+ function NC(g) {
1885
+ return Number.isSafeInteger(L(g));
1864
1886
  }
1865
- function oC() {
1887
+ function kC() {
1866
1888
  return s(Symbol.iterator);
1867
1889
  }
1868
- function kC(g) {
1869
- return U(g).length;
1890
+ function yC(g) {
1891
+ return L(g).length;
1870
1892
  }
1871
- function NC(g) {
1872
- return U(g).length;
1893
+ function KC(g) {
1894
+ return L(g).length;
1873
1895
  }
1874
- function yC(g) {
1875
- return U(g).length;
1896
+ function GC(g) {
1897
+ return L(g).length;
1876
1898
  }
1877
- function KC() {
1899
+ function YC() {
1878
1900
  const g = new Object();
1879
1901
  return s(g);
1880
1902
  }
1881
- function GC() {
1903
+ function SC() {
1882
1904
  const g = new Array();
1883
1905
  return s(g);
1884
1906
  }
1885
- function YC() {
1907
+ function hC() {
1886
1908
  const g = new Error();
1887
1909
  return s(g);
1888
1910
  }
1889
- function SC() {
1911
+ function HC() {
1890
1912
  return s(/* @__PURE__ */ new Map());
1891
1913
  }
1892
- function hC(g) {
1893
- const A = new Uint8Array(U(g));
1914
+ function LC(g) {
1915
+ const A = new Uint8Array(L(g));
1894
1916
  return s(A);
1895
1917
  }
1896
- function HC() {
1918
+ function UC() {
1897
1919
  return KA(function(g) {
1898
- const A = U(g).next();
1920
+ const A = L(g).next();
1899
1921
  return s(A);
1900
1922
  }, arguments);
1901
1923
  }
1902
- function UC(g) {
1903
- const A = U(g).next;
1924
+ function cC(g) {
1925
+ const A = L(g).next;
1904
1926
  return s(A);
1905
1927
  }
1906
- function LC(g, A, C) {
1907
- Uint8Array.prototype.set.call(dC(g, A), U(C));
1908
- }
1909
1928
  function FC(g, A, C) {
1910
- const B = U(g).set(U(A), U(C));
1911
- return s(B);
1912
- }
1913
- function cC(g, A, C) {
1914
- U(g)[F(A)] = F(C);
1929
+ Uint8Array.prototype.set.call(ZC(g, A), L(C));
1915
1930
  }
1916
1931
  function JC(g, A, C) {
1917
- U(g)[A >>> 0] = F(C);
1932
+ const Q = L(g).set(L(A), L(C));
1933
+ return s(Q);
1934
+ }
1935
+ function RC(g, A, C) {
1936
+ L(g)[F(A)] = F(C);
1918
1937
  }
1919
- function RC(g, A) {
1920
- const C = U(A).stack, B = k(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1921
- M().setInt32(g + 4, Q, !0), M().setInt32(g + 0, B, !0);
1938
+ function sC(g, A, C) {
1939
+ L(g)[A >>> 0] = F(C);
1922
1940
  }
1923
- function sC(g) {
1924
- const A = U(g).value;
1941
+ function aC(g, A) {
1942
+ const C = L(A).stack, Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1943
+ M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
1944
+ }
1945
+ function qC(g) {
1946
+ const A = L(g).value;
1925
1947
  return s(A);
1926
1948
  }
1927
- function aC(g) {
1949
+ function pC(g) {
1928
1950
  return s(g);
1929
1951
  }
1930
- function qC(g) {
1952
+ function TC(g) {
1931
1953
  return s(g);
1932
1954
  }
1933
- function pC(g, A) {
1934
- const C = c(g, A);
1955
+ function OC(g, A) {
1956
+ const C = U(g, A);
1935
1957
  return s(C);
1936
1958
  }
1937
- function TC(g) {
1959
+ function jC(g) {
1938
1960
  const A = BigInt.asUintN(64, g);
1939
1961
  return s(A);
1940
1962
  }
1941
- function OC(g) {
1942
- const A = U(g);
1963
+ function PC(g) {
1964
+ const A = L(g);
1943
1965
  return s(A);
1944
1966
  }
1945
- function jC(g) {
1967
+ function dC(g) {
1946
1968
  F(g);
1947
1969
  }
1948
1970
  const VA = typeof FinalizationRegistry > "u" ? { register: () => {
@@ -1961,78 +1983,78 @@ const VA = typeof FinalizationRegistry > "u" ? { register: () => {
1961
1983
  }, unregister: () => {
1962
1984
  } } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)), uA = typeof FinalizationRegistry > "u" ? { register: () => {
1963
1985
  }, unregister: () => {
1964
- } } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
1986
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
1965
1987
  }, unregister: () => {
1966
- } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
1988
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
1967
1989
  }, unregister: () => {
1968
1990
  } } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
1969
1991
  }, unregister: () => {
1970
1992
  } } : new FinalizationRegistry((g) => I.__wbg_wasmwindowdefbuilder_free(g >>> 0, 1));
1971
1993
  function s(g) {
1972
- AA === V.length && V.push(V.length + 1);
1994
+ AA === z.length && z.push(z.length + 1);
1973
1995
  const A = AA;
1974
- return AA = V[A], V[A] = g, A;
1996
+ return AA = z[A], z[A] = g, A;
1975
1997
  }
1976
1998
  function S(g, A) {
1977
1999
  if (!(g instanceof A))
1978
2000
  throw new Error(`expected instance of ${A.name}`);
1979
2001
  }
1980
- function UA(g) {
2002
+ function LA(g) {
1981
2003
  const A = typeof g;
1982
2004
  if (A == "number" || A == "boolean" || g == null)
1983
2005
  return `${g}`;
1984
2006
  if (A == "string")
1985
2007
  return `"${g}"`;
1986
2008
  if (A == "symbol") {
1987
- const Q = g.description;
1988
- return Q == null ? "Symbol" : `Symbol(${Q})`;
2009
+ const B = g.description;
2010
+ return B == null ? "Symbol" : `Symbol(${B})`;
1989
2011
  }
1990
2012
  if (A == "function") {
1991
- const Q = g.name;
1992
- return typeof Q == "string" && Q.length > 0 ? `Function(${Q})` : "Function";
2013
+ const B = g.name;
2014
+ return typeof B == "string" && B.length > 0 ? `Function(${B})` : "Function";
1993
2015
  }
1994
2016
  if (Array.isArray(g)) {
1995
- const Q = g.length;
2017
+ const B = g.length;
1996
2018
  let E = "[";
1997
- Q > 0 && (E += UA(g[0]));
1998
- for (let D = 1; D < Q; D++)
1999
- E += ", " + UA(g[D]);
2019
+ B > 0 && (E += LA(g[0]));
2020
+ for (let D = 1; D < B; D++)
2021
+ E += ", " + LA(g[D]);
2000
2022
  return E += "]", E;
2001
2023
  }
2002
2024
  const C = /\[object ([^\]]+)\]/.exec(toString.call(g));
2003
- let B;
2025
+ let Q;
2004
2026
  if (C && C.length > 1)
2005
- B = C[1];
2027
+ Q = C[1];
2006
2028
  else
2007
2029
  return toString.call(g);
2008
- if (B == "Object")
2030
+ if (Q == "Object")
2009
2031
  try {
2010
2032
  return "Object(" + JSON.stringify(g) + ")";
2011
2033
  } catch {
2012
2034
  return "Object";
2013
2035
  }
2014
2036
  return g instanceof Error ? `${g.name}: ${g.message}
2015
- ${g.stack}` : B;
2037
+ ${g.stack}` : Q;
2016
2038
  }
2017
- function PC(g) {
2018
- g < 132 || (V[g] = AA, AA = g);
2039
+ function tC(g) {
2040
+ g < 132 || (z[g] = AA, AA = g);
2019
2041
  }
2020
- function dC(g, A) {
2042
+ function ZC(g, A) {
2021
2043
  return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
2022
2044
  }
2023
- let m = null;
2045
+ let b = null;
2024
2046
  function M() {
2025
- return (m === null || m.buffer.detached === !0 || m.buffer.detached === void 0 && m.buffer !== I.memory.buffer) && (m = new DataView(I.memory.buffer)), m;
2047
+ return (b === null || b.buffer.detached === !0 || b.buffer.detached === void 0 && b.buffer !== I.memory.buffer) && (b = new DataView(I.memory.buffer)), b;
2026
2048
  }
2027
- function c(g, A) {
2028
- return g = g >>> 0, ZC(g, A);
2049
+ function U(g, A) {
2050
+ return g = g >>> 0, zC(g, A);
2029
2051
  }
2030
2052
  let EA = null;
2031
2053
  function $() {
2032
2054
  return (EA === null || EA.byteLength === 0) && (EA = new Uint8Array(I.memory.buffer)), EA;
2033
2055
  }
2034
- function U(g) {
2035
- return V[g];
2056
+ function L(g) {
2057
+ return z[g];
2036
2058
  }
2037
2059
  function KA(g, A) {
2038
2060
  try {
@@ -2041,48 +2063,48 @@ function KA(g, A) {
2041
2063
  I.__wbindgen_export3(s(C));
2042
2064
  }
2043
2065
  }
2044
- let V = new Array(128).fill(void 0);
2045
- V.push(void 0, null, !0, !1);
2046
- let AA = V.length;
2047
- function b(g) {
2066
+ let z = new Array(128).fill(void 0);
2067
+ z.push(void 0, null, !0, !1);
2068
+ let AA = z.length;
2069
+ function m(g) {
2048
2070
  return g == null;
2049
2071
  }
2050
- function cA(g, A) {
2051
- const C = A(g.length * 4, 4) >>> 0, B = M();
2052
- for (let Q = 0; Q < g.length; Q++)
2053
- B.setUint32(C + 4 * Q, s(g[Q]), !0);
2072
+ function FA(g, A) {
2073
+ const C = A(g.length * 4, 4) >>> 0, Q = M();
2074
+ for (let B = 0; B < g.length; B++)
2075
+ Q.setUint32(C + 4 * B, s(g[B]), !0);
2054
2076
  return o = g.length, C;
2055
2077
  }
2056
- function k(g, A, C) {
2078
+ function N(g, A, C) {
2057
2079
  if (C === void 0) {
2058
- const i = gA.encode(g), N = A(i.length, 1) >>> 0;
2059
- return $().subarray(N, N + i.length).set(i), o = i.length, N;
2080
+ const i = gA.encode(g), k = A(i.length, 1) >>> 0;
2081
+ return $().subarray(k, k + i.length).set(i), o = i.length, k;
2060
2082
  }
2061
- let B = g.length, Q = A(B, 1) >>> 0;
2083
+ let Q = g.length, B = A(Q, 1) >>> 0;
2062
2084
  const E = $();
2063
2085
  let D = 0;
2064
- for (; D < B; D++) {
2086
+ for (; D < Q; D++) {
2065
2087
  const i = g.charCodeAt(D);
2066
2088
  if (i > 127) break;
2067
- E[Q + D] = i;
2089
+ E[B + D] = i;
2068
2090
  }
2069
- if (D !== B) {
2070
- D !== 0 && (g = g.slice(D)), Q = C(Q, B, B = D + g.length * 3, 1) >>> 0;
2071
- const i = $().subarray(Q + D, Q + B), N = gA.encodeInto(g, i);
2072
- D += N.written, Q = C(Q, B, D, 1) >>> 0;
2091
+ if (D !== Q) {
2092
+ D !== 0 && (g = g.slice(D)), B = C(B, Q, Q = D + g.length * 3, 1) >>> 0;
2093
+ const i = $().subarray(B + D, B + Q), k = gA.encodeInto(g, i);
2094
+ D += k.written, B = C(B, Q, D, 1) >>> 0;
2073
2095
  }
2074
- return o = D, Q;
2096
+ return o = D, B;
2075
2097
  }
2076
2098
  function F(g) {
2077
- const A = U(g);
2078
- return PC(g), A;
2099
+ const A = L(g);
2100
+ return tC(g), A;
2079
2101
  }
2080
2102
  let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
2081
2103
  DA.decode();
2082
- const tC = 2146435072;
2104
+ const VC = 2146435072;
2083
2105
  let HA = 0;
2084
- function ZC(g, A) {
2085
- return HA += A, HA >= tC && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), HA = A), DA.decode($().subarray(g, g + A));
2106
+ function zC(g, A) {
2107
+ return HA += A, HA >= VC && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), HA = A), DA.decode($().subarray(g, g + A));
2086
2108
  }
2087
2109
  const gA = new TextEncoder();
2088
2110
  "encodeInto" in gA || (gA.encodeInto = function(g, A) {
@@ -2093,268 +2115,270 @@ const gA = new TextEncoder();
2093
2115
  };
2094
2116
  });
2095
2117
  let o = 0, I;
2096
- function VC(g) {
2118
+ function xC(g) {
2097
2119
  I = g;
2098
2120
  }
2099
2121
  URL = globalThis.URL;
2100
- const w = await NI({ "./polyglot_sql_wasm_bg.js": {
2101
- __wbindgen_object_drop_ref: jC,
2102
- __wbindgen_object_clone_ref: OC,
2103
- __wbg_new_8a6f238a6ece86ea: YC,
2104
- __wbg_stack_0ed75d68575b0f3c: RC,
2105
- __wbg_error_7534b8e9a36f1ab4: gC,
2106
- __wbg_get_with_ref_key_1dc361bd10053bfe: QC,
2107
- __wbg_set_3f1d0b984ed272ed: cC,
2108
- __wbg_String_8f0eb39a4a4c2f66: dI,
2109
- __wbg_new_dd2b680c8bf6ae29: hC,
2110
- __wbg_length_32ed9a279acd054c: kC,
2111
- __wbg_prototypesetcall_bdcdcc5842e4d77d: LC,
2112
- __wbg_done_57b39ecd9addfe81: $I,
2113
- __wbg_value_0546255b415e96c1: sC,
2114
- __wbg_instanceof_Map_53af74335dec57f4: DC,
2115
- __wbg_instanceof_Uint8Array_9b9075935c74707c: wC,
2116
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: EC,
2117
- __wbg_new_dca287b076112a51: SC,
2118
- __wbg_set_1eb0999cf5d27fc8: FC,
2119
- __wbg_get_9b94d73e6221f75c: CC,
2120
- __wbg_new_3eb36ae241fe6f44: GC,
2121
- __wbg_set_f43e577aea94465b: JC,
2122
- __wbg_length_35a7bace40f36eac: NC,
2123
- __wbg_isArray_d314bb98fcf08331: MC,
2124
- __wbg_isSafeInteger_bfbc7332a9768d2a: iC,
2125
- __wbg_new_361308b2356cecd0: KC,
2126
- __wbg_entries_58c7934c745daac7: AC,
2127
- __wbg_iterator_6ff6560ca1568e55: oC,
2128
- __wbg_get_b3ed3ad4be2bc8ac: BC,
2129
- __wbg_call_389efe28435a9388: XI,
2130
- __wbg_next_418f80d8f5303233: UC,
2131
- __wbg_next_3482f54c49e8af19: HC,
2132
- __wbg_codePointAt_bf59dbf74d8db275: _I,
2133
- __wbg_fromCodePoint_22365db7b7d6ac39: IC,
2134
- __wbg_length_68dc7c5cf1b6d349: yC,
2135
- __wbg___wbindgen_in_47fa6863be6f2f25: zI,
2136
- __wbg___wbindgen_throw_be289d5034ed271b: vI,
2137
- __wbg___wbindgen_is_null_ac34f5003991759a: WI,
2138
- __wbg___wbindgen_jsval_eq_11888390b0186270: lI,
2139
- __wbg_Number_04624de7d0e8332d: PI,
2140
- __wbg_Error_8c4e43fe74559d73: jI,
2141
- __wbg___wbindgen_is_bigint_31b12575b56f32fc: xI,
2142
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: eI,
2143
- __wbg___wbindgen_is_string_cd444516edc5b180: uI,
2144
- __wbg___wbindgen_number_get_8ff4255516ccad3e: mI,
2145
- __wbg___wbindgen_string_get_72fb696202c56729: bI,
2146
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: ZI,
2147
- __wbg___wbindgen_is_function_0095a73b8b156f76: fI,
2148
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: rI,
2149
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: nI,
2150
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: tI,
2151
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: VI,
2152
- __wbindgen_cast_0000000000000001: aC,
2153
- __wbindgen_cast_0000000000000002: qC,
2154
- __wbindgen_cast_0000000000000003: pC,
2155
- __wbindgen_cast_0000000000000004: TC
2156
- } }, kI), zC = w.memory, xC = w.__wbg_wasmassignmentarray_free, fC = w.__wbg_wasmcasebuilder_free, WC = w.__wbg_wasmdeletebuilder_free, eC = w.__wbg_wasmexpr_free, uC = w.__wbg_wasmexprarray_free, rC = w.__wbg_wasminsertbuilder_free, lC = w.__wbg_wasmmergebuilder_free, nC = w.__wbg_wasmselectbuilder_free, mC = w.__wbg_wasmsetopbuilder_free, bC = w.__wbg_wasmupdatebuilder_free, vC = w.__wbg_wasmwindowdefbuilder_free, XC = w.annotate_types, _C = w.annotate_types_value, $C = w.ast_add_where, AB = w.ast_get_aggregate_functions, gB = w.ast_get_column_names, IB = w.ast_get_functions, CB = w.ast_get_literals, BB = w.ast_get_subqueries, QB = w.ast_get_table_names, EB = w.ast_get_window_functions, DB = w.ast_node_count, wB = w.ast_qualify_columns, MB = w.ast_remove_where, iB = w.ast_rename_columns, oB = w.ast_rename_tables, kB = w.ast_set_distinct, NB = w.ast_set_limit, yB = w.diff_sql, KB = w.format_sql, GB = w.format_sql_value, YB = w.format_sql_with_options, SB = w.format_sql_with_options_value, hB = w.generate, HB = w.generate_value, UB = w.get_dialects, LB = w.get_dialects_value, FB = w.lineage_sql, cB = w.lineage_sql_with_schema, JB = w.parse, RB = w.parse_value, sB = w.plan, aB = w.source_tables, qB = w.tokenize, pB = w.tokenize_value, TB = w.transpile, OB = w.transpile_value, jB = w.validate, PB = w.validate_with_options, dB = w.validate_with_schema, tB = w.version, ZB = w.wasm_alias, VB = w.wasm_and, zB = w.wasm_boolean, xB = w.wasm_case_of, fB = w.wasm_cast, WB = w.wasm_col, eB = w.wasm_count_distinct, uB = w.wasm_extract, rB = w.wasm_func, lB = w.wasm_lit, nB = w.wasm_not, mB = w.wasm_null, bB = w.wasm_or, vB = w.wasm_sql_expr, XB = w.wasm_star, _B = w.wasm_subquery, $B = w.wasm_table, AQ = w.wasmassignmentarray_len, gQ = w.wasmassignmentarray_new, IQ = w.wasmassignmentarray_push, CQ = w.wasmcasebuilder_build_expr, BQ = w.wasmcasebuilder_else_, QQ = w.wasmcasebuilder_new, EQ = w.wasmcasebuilder_to_sql, DQ = w.wasmcasebuilder_when, wQ = w.wasmdeletebuilder_build, MQ = w.wasmdeletebuilder_new, iQ = w.wasmdeletebuilder_to_sql, oQ = w.wasmdeletebuilder_where_expr, kQ = w.wasmexpr_add, NQ = w.wasmexpr_alias, yQ = w.wasmexpr_and, KQ = w.wasmexpr_asc, GQ = w.wasmexpr_between, YQ = w.wasmexpr_cast, SQ = w.wasmexpr_desc, hQ = w.wasmexpr_div, HQ = w.wasmexpr_eq, UQ = w.wasmexpr_gt, LQ = w.wasmexpr_gte, FQ = w.wasmexpr_ilike, cQ = w.wasmexpr_in_list, JQ = w.wasmexpr_is_not_null, RQ = w.wasmexpr_is_null, sQ = w.wasmexpr_like, aQ = w.wasmexpr_lt, qQ = w.wasmexpr_lte, pQ = w.wasmexpr_mul, TQ = w.wasmexpr_neq, OQ = w.wasmexpr_not, jQ = w.wasmexpr_not_in, PQ = w.wasmexpr_or, dQ = w.wasmexpr_rlike, tQ = w.wasmexpr_sub, ZQ = w.wasmexpr_to_json, VQ = w.wasmexpr_to_sql, zQ = w.wasmexpr_xor, xQ = w.wasmexprarray_len, fQ = w.wasmexprarray_push, WQ = w.wasmexprarray_push_col, eQ = w.wasmexprarray_push_float, uQ = w.wasmexprarray_push_int, rQ = w.wasmexprarray_push_star, lQ = w.wasmexprarray_push_str, nQ = w.wasminsertbuilder_build, mQ = w.wasminsertbuilder_columns, bQ = w.wasminsertbuilder_new, vQ = w.wasminsertbuilder_query, XQ = w.wasminsertbuilder_to_sql, _Q = w.wasminsertbuilder_values, $Q = w.wasmmergebuilder_build, AE = w.wasmmergebuilder_new, gE = w.wasmmergebuilder_to_sql, IE = w.wasmmergebuilder_using, CE = w.wasmmergebuilder_when_matched_delete, BE = w.wasmmergebuilder_when_matched_update, QE = w.wasmmergebuilder_when_not_matched_insert, EE = w.wasmselectbuilder_build, DE = w.wasmselectbuilder_cross_join, wE = w.wasmselectbuilder_ctas, ME = w.wasmselectbuilder_ctas_sql, iE = w.wasmselectbuilder_distinct, oE = w.wasmselectbuilder_except_, kE = w.wasmselectbuilder_for_update, NE = w.wasmselectbuilder_from, yE = w.wasmselectbuilder_from_expr, KE = w.wasmselectbuilder_group_by_cols, GE = w.wasmselectbuilder_having, YE = w.wasmselectbuilder_hint, SE = w.wasmselectbuilder_intersect, hE = w.wasmselectbuilder_join, HE = w.wasmselectbuilder_lateral_view, UE = w.wasmselectbuilder_left_join, LE = w.wasmselectbuilder_limit, FE = w.wasmselectbuilder_new, cE = w.wasmselectbuilder_offset, JE = w.wasmselectbuilder_order_by_exprs, RE = w.wasmselectbuilder_qualify, sE = w.wasmselectbuilder_right_join, aE = w.wasmselectbuilder_select_col, qE = w.wasmselectbuilder_select_expr, pE = w.wasmselectbuilder_select_exprs, TE = w.wasmselectbuilder_select_star, OE = w.wasmselectbuilder_sort_by_exprs, jE = w.wasmselectbuilder_to_sql, PE = w.wasmselectbuilder_union, dE = w.wasmselectbuilder_union_all, tE = w.wasmselectbuilder_where_expr, ZE = w.wasmselectbuilder_where_sql, VE = w.wasmselectbuilder_window, zE = w.wasmsetopbuilder_build, xE = w.wasmsetopbuilder_limit, fE = w.wasmsetopbuilder_offset, WE = w.wasmsetopbuilder_order_by_exprs, eE = w.wasmsetopbuilder_to_sql, uE = w.wasmupdatebuilder_build, rE = w.wasmupdatebuilder_from, lE = w.wasmupdatebuilder_new, nE = w.wasmupdatebuilder_set, mE = w.wasmupdatebuilder_to_sql, bE = w.wasmupdatebuilder_where_expr, vE = w.wasmwindowdefbuilder_new, XE = w.wasmwindowdefbuilder_order_by, _E = w.wasmwindowdefbuilder_partition_by, $E = w.wasmexprarray_new, AD = w.__wbindgen_export, gD = w.__wbindgen_export2, ID = w.__wbindgen_export3, CD = w.__wbindgen_export4, BD = w.__wbindgen_add_to_stack_pointer, QD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2122
+ const w = await KI({ "./polyglot_sql_wasm_bg.js": {
2123
+ __wbindgen_object_drop_ref: dC,
2124
+ __wbindgen_object_clone_ref: PC,
2125
+ __wbg_new_8a6f238a6ece86ea: hC,
2126
+ __wbg_stack_0ed75d68575b0f3c: aC,
2127
+ __wbg_error_7534b8e9a36f1ab4: CC,
2128
+ __wbg_get_with_ref_key_1dc361bd10053bfe: DC,
2129
+ __wbg_set_3f1d0b984ed272ed: RC,
2130
+ __wbg_String_8f0eb39a4a4c2f66: ZI,
2131
+ __wbg_new_dd2b680c8bf6ae29: LC,
2132
+ __wbg_length_32ed9a279acd054c: yC,
2133
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: FC,
2134
+ __wbg_done_57b39ecd9addfe81: gC,
2135
+ __wbg_value_0546255b415e96c1: qC,
2136
+ __wbg_instanceof_Map_53af74335dec57f4: MC,
2137
+ __wbg_instanceof_Uint8Array_9b9075935c74707c: iC,
2138
+ __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: wC,
2139
+ __wbg_new_dca287b076112a51: HC,
2140
+ __wbg_set_1eb0999cf5d27fc8: JC,
2141
+ __wbg_get_9b94d73e6221f75c: BC,
2142
+ __wbg_new_3eb36ae241fe6f44: SC,
2143
+ __wbg_set_f43e577aea94465b: sC,
2144
+ __wbg_length_35a7bace40f36eac: KC,
2145
+ __wbg_isArray_d314bb98fcf08331: oC,
2146
+ __wbg_isSafeInteger_bfbc7332a9768d2a: NC,
2147
+ __wbg_new_361308b2356cecd0: YC,
2148
+ __wbg_entries_58c7934c745daac7: IC,
2149
+ __wbg_iterator_6ff6560ca1568e55: kC,
2150
+ __wbg_get_b3ed3ad4be2bc8ac: EC,
2151
+ __wbg_call_389efe28435a9388: $I,
2152
+ __wbg_next_418f80d8f5303233: cC,
2153
+ __wbg_next_3482f54c49e8af19: UC,
2154
+ __wbg_codePointAt_bf59dbf74d8db275: AC,
2155
+ __wbg_fromCodePoint_22365db7b7d6ac39: QC,
2156
+ __wbg_length_68dc7c5cf1b6d349: GC,
2157
+ __wbg___wbindgen_in_47fa6863be6f2f25: fI,
2158
+ __wbg___wbindgen_throw_be289d5034ed271b: _I,
2159
+ __wbg___wbindgen_is_null_ac34f5003991759a: uI,
2160
+ __wbg___wbindgen_jsval_eq_11888390b0186270: bI,
2161
+ __wbg_Number_04624de7d0e8332d: tI,
2162
+ __wbg_Error_8c4e43fe74559d73: dI,
2163
+ __wbg___wbindgen_is_bigint_31b12575b56f32fc: WI,
2164
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: lI,
2165
+ __wbg___wbindgen_is_string_cd444516edc5b180: rI,
2166
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: vI,
2167
+ __wbg___wbindgen_string_get_72fb696202c56729: XI,
2168
+ __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: zI,
2169
+ __wbg___wbindgen_is_function_0095a73b8b156f76: eI,
2170
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: nI,
2171
+ __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: mI,
2172
+ __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: VI,
2173
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: xI,
2174
+ __wbindgen_cast_0000000000000001: pC,
2175
+ __wbindgen_cast_0000000000000002: TC,
2176
+ __wbindgen_cast_0000000000000003: OC,
2177
+ __wbindgen_cast_0000000000000004: jC
2178
+ } }, yI), fC = w.memory, WC = w.__wbg_wasmassignmentarray_free, eC = w.__wbg_wasmcasebuilder_free, uC = w.__wbg_wasmdeletebuilder_free, lC = w.__wbg_wasmexpr_free, rC = w.__wbg_wasmexprarray_free, nC = w.__wbg_wasminsertbuilder_free, bC = w.__wbg_wasmmergebuilder_free, mC = w.__wbg_wasmselectbuilder_free, vC = w.__wbg_wasmsetopbuilder_free, XC = w.__wbg_wasmupdatebuilder_free, _C = w.__wbg_wasmwindowdefbuilder_free, $C = w.annotate_types, AQ = w.annotate_types_value, gQ = w.ast_add_where, IQ = w.ast_get_aggregate_functions, CQ = w.ast_get_column_names, QQ = w.ast_get_functions, BQ = w.ast_get_literals, EQ = w.ast_get_subqueries, DQ = w.ast_get_table_names, wQ = w.ast_get_window_functions, MQ = w.ast_node_count, iQ = w.ast_qualify_columns, oQ = w.ast_qualify_tables, NQ = w.ast_remove_where, kQ = w.ast_rename_columns, yQ = w.ast_rename_tables, KQ = w.ast_rename_tables_with_options, GQ = w.ast_set_distinct, YQ = w.ast_set_limit, SQ = w.diff_sql, hQ = w.format_sql, HQ = w.format_sql_value, LQ = w.format_sql_with_options, UQ = w.format_sql_with_options_value, cQ = w.generate, FQ = w.generate_value, JQ = w.get_dialects, RQ = w.get_dialects_value, sQ = w.lineage_sql, aQ = w.lineage_sql_with_schema, qQ = w.parse, pQ = w.parse_value, TQ = w.plan, OQ = w.source_tables, jQ = w.tokenize, PQ = w.tokenize_value, dQ = w.transpile, tQ = w.transpile_value, ZQ = w.validate, VQ = w.validate_with_options, zQ = w.validate_with_schema, xQ = w.version, fQ = w.wasm_alias, WQ = w.wasm_and, eQ = w.wasm_boolean, uQ = w.wasm_case_of, lQ = w.wasm_cast, rQ = w.wasm_col, nQ = w.wasm_count_distinct, bQ = w.wasm_extract, mQ = w.wasm_func, vQ = w.wasm_lit, XQ = w.wasm_not, _Q = w.wasm_null, $Q = w.wasm_or, AB = w.wasm_sql_expr, gB = w.wasm_star, IB = w.wasm_subquery, CB = w.wasm_table, QB = w.wasmassignmentarray_len, BB = w.wasmassignmentarray_new, EB = w.wasmassignmentarray_push, DB = w.wasmcasebuilder_build_expr, wB = w.wasmcasebuilder_else_, MB = w.wasmcasebuilder_new, iB = w.wasmcasebuilder_to_sql, oB = w.wasmcasebuilder_when, NB = w.wasmdeletebuilder_build, kB = w.wasmdeletebuilder_new, yB = w.wasmdeletebuilder_to_sql, KB = w.wasmdeletebuilder_where_expr, GB = w.wasmexpr_add, YB = w.wasmexpr_alias, SB = w.wasmexpr_and, hB = w.wasmexpr_asc, HB = w.wasmexpr_between, LB = w.wasmexpr_cast, UB = w.wasmexpr_desc, cB = w.wasmexpr_div, FB = w.wasmexpr_eq, JB = w.wasmexpr_gt, RB = w.wasmexpr_gte, sB = w.wasmexpr_ilike, aB = w.wasmexpr_in_list, qB = w.wasmexpr_is_not_null, pB = w.wasmexpr_is_null, TB = w.wasmexpr_like, OB = w.wasmexpr_lt, jB = w.wasmexpr_lte, PB = w.wasmexpr_mul, dB = w.wasmexpr_neq, tB = w.wasmexpr_not, ZB = w.wasmexpr_not_in, VB = w.wasmexpr_or, zB = w.wasmexpr_rlike, xB = w.wasmexpr_sub, fB = w.wasmexpr_to_json, WB = w.wasmexpr_to_sql, eB = w.wasmexpr_xor, uB = w.wasmexprarray_len, lB = w.wasmexprarray_push, rB = w.wasmexprarray_push_col, nB = w.wasmexprarray_push_float, bB = w.wasmexprarray_push_int, mB = w.wasmexprarray_push_star, vB = w.wasmexprarray_push_str, XB = w.wasminsertbuilder_build, _B = w.wasminsertbuilder_columns, $B = w.wasminsertbuilder_new, AE = w.wasminsertbuilder_query, gE = w.wasminsertbuilder_to_sql, IE = w.wasminsertbuilder_values, CE = w.wasmmergebuilder_build, QE = w.wasmmergebuilder_new, BE = w.wasmmergebuilder_to_sql, EE = w.wasmmergebuilder_using, DE = w.wasmmergebuilder_when_matched_delete, wE = w.wasmmergebuilder_when_matched_update, ME = w.wasmmergebuilder_when_not_matched_insert, iE = w.wasmselectbuilder_build, oE = w.wasmselectbuilder_cross_join, NE = w.wasmselectbuilder_ctas, kE = w.wasmselectbuilder_ctas_sql, yE = w.wasmselectbuilder_distinct, KE = w.wasmselectbuilder_except_, GE = w.wasmselectbuilder_for_update, YE = w.wasmselectbuilder_from, SE = w.wasmselectbuilder_from_expr, hE = w.wasmselectbuilder_group_by_cols, HE = w.wasmselectbuilder_having, LE = w.wasmselectbuilder_hint, UE = w.wasmselectbuilder_intersect, cE = w.wasmselectbuilder_join, FE = w.wasmselectbuilder_lateral_view, JE = w.wasmselectbuilder_left_join, RE = w.wasmselectbuilder_limit, sE = w.wasmselectbuilder_new, aE = w.wasmselectbuilder_offset, qE = w.wasmselectbuilder_order_by_exprs, pE = w.wasmselectbuilder_qualify, TE = w.wasmselectbuilder_right_join, OE = w.wasmselectbuilder_select_col, jE = w.wasmselectbuilder_select_expr, PE = w.wasmselectbuilder_select_exprs, dE = w.wasmselectbuilder_select_star, tE = w.wasmselectbuilder_sort_by_exprs, ZE = w.wasmselectbuilder_to_sql, VE = w.wasmselectbuilder_union, zE = w.wasmselectbuilder_union_all, xE = w.wasmselectbuilder_where_expr, fE = w.wasmselectbuilder_where_sql, WE = w.wasmselectbuilder_window, eE = w.wasmsetopbuilder_build, uE = w.wasmsetopbuilder_limit, lE = w.wasmsetopbuilder_offset, rE = w.wasmsetopbuilder_order_by_exprs, nE = w.wasmsetopbuilder_to_sql, bE = w.wasmupdatebuilder_build, mE = w.wasmupdatebuilder_from, vE = w.wasmupdatebuilder_new, XE = w.wasmupdatebuilder_set, _E = w.wasmupdatebuilder_to_sql, $E = w.wasmupdatebuilder_where_expr, AD = w.wasmwindowdefbuilder_new, gD = w.wasmwindowdefbuilder_order_by, ID = w.wasmwindowdefbuilder_partition_by, CD = w.wasmexprarray_new, QD = w.__wbindgen_export, BD = w.__wbindgen_export2, ED = w.__wbindgen_export3, DD = w.__wbindgen_export4, wD = w.__wbindgen_add_to_stack_pointer, MD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2157
2179
  __proto__: null,
2158
- __wbg_wasmassignmentarray_free: xC,
2159
- __wbg_wasmcasebuilder_free: fC,
2160
- __wbg_wasmdeletebuilder_free: WC,
2161
- __wbg_wasmexpr_free: eC,
2162
- __wbg_wasmexprarray_free: uC,
2163
- __wbg_wasminsertbuilder_free: rC,
2164
- __wbg_wasmmergebuilder_free: lC,
2165
- __wbg_wasmselectbuilder_free: nC,
2166
- __wbg_wasmsetopbuilder_free: mC,
2167
- __wbg_wasmupdatebuilder_free: bC,
2168
- __wbg_wasmwindowdefbuilder_free: vC,
2169
- __wbindgen_add_to_stack_pointer: BD,
2170
- __wbindgen_export: AD,
2171
- __wbindgen_export2: gD,
2172
- __wbindgen_export3: ID,
2173
- __wbindgen_export4: CD,
2174
- annotate_types: XC,
2175
- annotate_types_value: _C,
2176
- ast_add_where: $C,
2177
- ast_get_aggregate_functions: AB,
2178
- ast_get_column_names: gB,
2179
- ast_get_functions: IB,
2180
- ast_get_literals: CB,
2181
- ast_get_subqueries: BB,
2182
- ast_get_table_names: QB,
2183
- ast_get_window_functions: EB,
2184
- ast_node_count: DB,
2185
- ast_qualify_columns: wB,
2186
- ast_remove_where: MB,
2187
- ast_rename_columns: iB,
2188
- ast_rename_tables: oB,
2189
- ast_set_distinct: kB,
2190
- ast_set_limit: NB,
2191
- diff_sql: yB,
2192
- format_sql: KB,
2193
- format_sql_value: GB,
2194
- format_sql_with_options: YB,
2195
- format_sql_with_options_value: SB,
2196
- generate: hB,
2197
- generate_value: HB,
2198
- get_dialects: UB,
2199
- get_dialects_value: LB,
2200
- lineage_sql: FB,
2201
- lineage_sql_with_schema: cB,
2202
- memory: zC,
2203
- parse: JB,
2204
- parse_value: RB,
2205
- plan: sB,
2206
- source_tables: aB,
2207
- tokenize: qB,
2208
- tokenize_value: pB,
2209
- transpile: TB,
2210
- transpile_value: OB,
2211
- validate: jB,
2212
- validate_with_options: PB,
2213
- validate_with_schema: dB,
2214
- version: tB,
2215
- wasm_alias: ZB,
2216
- wasm_and: VB,
2217
- wasm_boolean: zB,
2218
- wasm_case_of: xB,
2219
- wasm_cast: fB,
2220
- wasm_col: WB,
2221
- wasm_count_distinct: eB,
2222
- wasm_extract: uB,
2223
- wasm_func: rB,
2224
- wasm_lit: lB,
2225
- wasm_not: nB,
2226
- wasm_null: mB,
2227
- wasm_or: bB,
2228
- wasm_sql_expr: vB,
2229
- wasm_star: XB,
2230
- wasm_subquery: _B,
2231
- wasm_table: $B,
2232
- wasmassignmentarray_len: AQ,
2233
- wasmassignmentarray_new: gQ,
2234
- wasmassignmentarray_push: IQ,
2235
- wasmcasebuilder_build_expr: CQ,
2236
- wasmcasebuilder_else_: BQ,
2237
- wasmcasebuilder_new: QQ,
2238
- wasmcasebuilder_to_sql: EQ,
2239
- wasmcasebuilder_when: DQ,
2240
- wasmdeletebuilder_build: wQ,
2241
- wasmdeletebuilder_new: MQ,
2242
- wasmdeletebuilder_to_sql: iQ,
2243
- wasmdeletebuilder_where_expr: oQ,
2244
- wasmexpr_add: kQ,
2245
- wasmexpr_alias: NQ,
2246
- wasmexpr_and: yQ,
2247
- wasmexpr_asc: KQ,
2248
- wasmexpr_between: GQ,
2249
- wasmexpr_cast: YQ,
2250
- wasmexpr_desc: SQ,
2251
- wasmexpr_div: hQ,
2252
- wasmexpr_eq: HQ,
2253
- wasmexpr_gt: UQ,
2254
- wasmexpr_gte: LQ,
2255
- wasmexpr_ilike: FQ,
2256
- wasmexpr_in_list: cQ,
2257
- wasmexpr_is_not_null: JQ,
2258
- wasmexpr_is_null: RQ,
2259
- wasmexpr_like: sQ,
2260
- wasmexpr_lt: aQ,
2261
- wasmexpr_lte: qQ,
2262
- wasmexpr_mul: pQ,
2263
- wasmexpr_neq: TQ,
2264
- wasmexpr_not: OQ,
2265
- wasmexpr_not_in: jQ,
2266
- wasmexpr_or: PQ,
2267
- wasmexpr_rlike: dQ,
2268
- wasmexpr_sub: tQ,
2269
- wasmexpr_to_json: ZQ,
2270
- wasmexpr_to_sql: VQ,
2271
- wasmexpr_xor: zQ,
2272
- wasmexprarray_len: xQ,
2273
- wasmexprarray_new: $E,
2274
- wasmexprarray_push: fQ,
2275
- wasmexprarray_push_col: WQ,
2276
- wasmexprarray_push_float: eQ,
2277
- wasmexprarray_push_int: uQ,
2278
- wasmexprarray_push_star: rQ,
2279
- wasmexprarray_push_str: lQ,
2280
- wasminsertbuilder_build: nQ,
2281
- wasminsertbuilder_columns: mQ,
2282
- wasminsertbuilder_new: bQ,
2283
- wasminsertbuilder_query: vQ,
2284
- wasminsertbuilder_to_sql: XQ,
2285
- wasminsertbuilder_values: _Q,
2286
- wasmmergebuilder_build: $Q,
2287
- wasmmergebuilder_new: AE,
2288
- wasmmergebuilder_to_sql: gE,
2289
- wasmmergebuilder_using: IE,
2290
- wasmmergebuilder_when_matched_delete: CE,
2291
- wasmmergebuilder_when_matched_update: BE,
2292
- wasmmergebuilder_when_not_matched_insert: QE,
2293
- wasmselectbuilder_build: EE,
2294
- wasmselectbuilder_cross_join: DE,
2295
- wasmselectbuilder_ctas: wE,
2296
- wasmselectbuilder_ctas_sql: ME,
2297
- wasmselectbuilder_distinct: iE,
2298
- wasmselectbuilder_except_: oE,
2299
- wasmselectbuilder_for_update: kE,
2300
- wasmselectbuilder_from: NE,
2301
- wasmselectbuilder_from_expr: yE,
2302
- wasmselectbuilder_group_by_cols: KE,
2303
- wasmselectbuilder_having: GE,
2304
- wasmselectbuilder_hint: YE,
2305
- wasmselectbuilder_intersect: SE,
2306
- wasmselectbuilder_join: hE,
2307
- wasmselectbuilder_lateral_view: HE,
2308
- wasmselectbuilder_left_join: UE,
2309
- wasmselectbuilder_limit: LE,
2310
- wasmselectbuilder_new: FE,
2311
- wasmselectbuilder_offset: cE,
2312
- wasmselectbuilder_order_by_exprs: JE,
2313
- wasmselectbuilder_qualify: RE,
2314
- wasmselectbuilder_right_join: sE,
2315
- wasmselectbuilder_select_col: aE,
2316
- wasmselectbuilder_select_expr: qE,
2317
- wasmselectbuilder_select_exprs: pE,
2318
- wasmselectbuilder_select_star: TE,
2319
- wasmselectbuilder_sort_by_exprs: OE,
2320
- wasmselectbuilder_to_sql: jE,
2321
- wasmselectbuilder_union: PE,
2322
- wasmselectbuilder_union_all: dE,
2323
- wasmselectbuilder_where_expr: tE,
2324
- wasmselectbuilder_where_sql: ZE,
2325
- wasmselectbuilder_window: VE,
2326
- wasmsetopbuilder_build: zE,
2327
- wasmsetopbuilder_limit: xE,
2328
- wasmsetopbuilder_offset: fE,
2329
- wasmsetopbuilder_order_by_exprs: WE,
2330
- wasmsetopbuilder_to_sql: eE,
2331
- wasmupdatebuilder_build: uE,
2332
- wasmupdatebuilder_from: rE,
2333
- wasmupdatebuilder_new: lE,
2334
- wasmupdatebuilder_set: nE,
2335
- wasmupdatebuilder_to_sql: mE,
2336
- wasmupdatebuilder_where_expr: bE,
2337
- wasmwindowdefbuilder_new: vE,
2338
- wasmwindowdefbuilder_order_by: XE,
2339
- wasmwindowdefbuilder_partition_by: _E
2180
+ __wbg_wasmassignmentarray_free: WC,
2181
+ __wbg_wasmcasebuilder_free: eC,
2182
+ __wbg_wasmdeletebuilder_free: uC,
2183
+ __wbg_wasmexpr_free: lC,
2184
+ __wbg_wasmexprarray_free: rC,
2185
+ __wbg_wasminsertbuilder_free: nC,
2186
+ __wbg_wasmmergebuilder_free: bC,
2187
+ __wbg_wasmselectbuilder_free: mC,
2188
+ __wbg_wasmsetopbuilder_free: vC,
2189
+ __wbg_wasmupdatebuilder_free: XC,
2190
+ __wbg_wasmwindowdefbuilder_free: _C,
2191
+ __wbindgen_add_to_stack_pointer: wD,
2192
+ __wbindgen_export: QD,
2193
+ __wbindgen_export2: BD,
2194
+ __wbindgen_export3: ED,
2195
+ __wbindgen_export4: DD,
2196
+ annotate_types: $C,
2197
+ annotate_types_value: AQ,
2198
+ ast_add_where: gQ,
2199
+ ast_get_aggregate_functions: IQ,
2200
+ ast_get_column_names: CQ,
2201
+ ast_get_functions: QQ,
2202
+ ast_get_literals: BQ,
2203
+ ast_get_subqueries: EQ,
2204
+ ast_get_table_names: DQ,
2205
+ ast_get_window_functions: wQ,
2206
+ ast_node_count: MQ,
2207
+ ast_qualify_columns: iQ,
2208
+ ast_qualify_tables: oQ,
2209
+ ast_remove_where: NQ,
2210
+ ast_rename_columns: kQ,
2211
+ ast_rename_tables: yQ,
2212
+ ast_rename_tables_with_options: KQ,
2213
+ ast_set_distinct: GQ,
2214
+ ast_set_limit: YQ,
2215
+ diff_sql: SQ,
2216
+ format_sql: hQ,
2217
+ format_sql_value: HQ,
2218
+ format_sql_with_options: LQ,
2219
+ format_sql_with_options_value: UQ,
2220
+ generate: cQ,
2221
+ generate_value: FQ,
2222
+ get_dialects: JQ,
2223
+ get_dialects_value: RQ,
2224
+ lineage_sql: sQ,
2225
+ lineage_sql_with_schema: aQ,
2226
+ memory: fC,
2227
+ parse: qQ,
2228
+ parse_value: pQ,
2229
+ plan: TQ,
2230
+ source_tables: OQ,
2231
+ tokenize: jQ,
2232
+ tokenize_value: PQ,
2233
+ transpile: dQ,
2234
+ transpile_value: tQ,
2235
+ validate: ZQ,
2236
+ validate_with_options: VQ,
2237
+ validate_with_schema: zQ,
2238
+ version: xQ,
2239
+ wasm_alias: fQ,
2240
+ wasm_and: WQ,
2241
+ wasm_boolean: eQ,
2242
+ wasm_case_of: uQ,
2243
+ wasm_cast: lQ,
2244
+ wasm_col: rQ,
2245
+ wasm_count_distinct: nQ,
2246
+ wasm_extract: bQ,
2247
+ wasm_func: mQ,
2248
+ wasm_lit: vQ,
2249
+ wasm_not: XQ,
2250
+ wasm_null: _Q,
2251
+ wasm_or: $Q,
2252
+ wasm_sql_expr: AB,
2253
+ wasm_star: gB,
2254
+ wasm_subquery: IB,
2255
+ wasm_table: CB,
2256
+ wasmassignmentarray_len: QB,
2257
+ wasmassignmentarray_new: BB,
2258
+ wasmassignmentarray_push: EB,
2259
+ wasmcasebuilder_build_expr: DB,
2260
+ wasmcasebuilder_else_: wB,
2261
+ wasmcasebuilder_new: MB,
2262
+ wasmcasebuilder_to_sql: iB,
2263
+ wasmcasebuilder_when: oB,
2264
+ wasmdeletebuilder_build: NB,
2265
+ wasmdeletebuilder_new: kB,
2266
+ wasmdeletebuilder_to_sql: yB,
2267
+ wasmdeletebuilder_where_expr: KB,
2268
+ wasmexpr_add: GB,
2269
+ wasmexpr_alias: YB,
2270
+ wasmexpr_and: SB,
2271
+ wasmexpr_asc: hB,
2272
+ wasmexpr_between: HB,
2273
+ wasmexpr_cast: LB,
2274
+ wasmexpr_desc: UB,
2275
+ wasmexpr_div: cB,
2276
+ wasmexpr_eq: FB,
2277
+ wasmexpr_gt: JB,
2278
+ wasmexpr_gte: RB,
2279
+ wasmexpr_ilike: sB,
2280
+ wasmexpr_in_list: aB,
2281
+ wasmexpr_is_not_null: qB,
2282
+ wasmexpr_is_null: pB,
2283
+ wasmexpr_like: TB,
2284
+ wasmexpr_lt: OB,
2285
+ wasmexpr_lte: jB,
2286
+ wasmexpr_mul: PB,
2287
+ wasmexpr_neq: dB,
2288
+ wasmexpr_not: tB,
2289
+ wasmexpr_not_in: ZB,
2290
+ wasmexpr_or: VB,
2291
+ wasmexpr_rlike: zB,
2292
+ wasmexpr_sub: xB,
2293
+ wasmexpr_to_json: fB,
2294
+ wasmexpr_to_sql: WB,
2295
+ wasmexpr_xor: eB,
2296
+ wasmexprarray_len: uB,
2297
+ wasmexprarray_new: CD,
2298
+ wasmexprarray_push: lB,
2299
+ wasmexprarray_push_col: rB,
2300
+ wasmexprarray_push_float: nB,
2301
+ wasmexprarray_push_int: bB,
2302
+ wasmexprarray_push_star: mB,
2303
+ wasmexprarray_push_str: vB,
2304
+ wasminsertbuilder_build: XB,
2305
+ wasminsertbuilder_columns: _B,
2306
+ wasminsertbuilder_new: $B,
2307
+ wasminsertbuilder_query: AE,
2308
+ wasminsertbuilder_to_sql: gE,
2309
+ wasminsertbuilder_values: IE,
2310
+ wasmmergebuilder_build: CE,
2311
+ wasmmergebuilder_new: QE,
2312
+ wasmmergebuilder_to_sql: BE,
2313
+ wasmmergebuilder_using: EE,
2314
+ wasmmergebuilder_when_matched_delete: DE,
2315
+ wasmmergebuilder_when_matched_update: wE,
2316
+ wasmmergebuilder_when_not_matched_insert: ME,
2317
+ wasmselectbuilder_build: iE,
2318
+ wasmselectbuilder_cross_join: oE,
2319
+ wasmselectbuilder_ctas: NE,
2320
+ wasmselectbuilder_ctas_sql: kE,
2321
+ wasmselectbuilder_distinct: yE,
2322
+ wasmselectbuilder_except_: KE,
2323
+ wasmselectbuilder_for_update: GE,
2324
+ wasmselectbuilder_from: YE,
2325
+ wasmselectbuilder_from_expr: SE,
2326
+ wasmselectbuilder_group_by_cols: hE,
2327
+ wasmselectbuilder_having: HE,
2328
+ wasmselectbuilder_hint: LE,
2329
+ wasmselectbuilder_intersect: UE,
2330
+ wasmselectbuilder_join: cE,
2331
+ wasmselectbuilder_lateral_view: FE,
2332
+ wasmselectbuilder_left_join: JE,
2333
+ wasmselectbuilder_limit: RE,
2334
+ wasmselectbuilder_new: sE,
2335
+ wasmselectbuilder_offset: aE,
2336
+ wasmselectbuilder_order_by_exprs: qE,
2337
+ wasmselectbuilder_qualify: pE,
2338
+ wasmselectbuilder_right_join: TE,
2339
+ wasmselectbuilder_select_col: OE,
2340
+ wasmselectbuilder_select_expr: jE,
2341
+ wasmselectbuilder_select_exprs: PE,
2342
+ wasmselectbuilder_select_star: dE,
2343
+ wasmselectbuilder_sort_by_exprs: tE,
2344
+ wasmselectbuilder_to_sql: ZE,
2345
+ wasmselectbuilder_union: VE,
2346
+ wasmselectbuilder_union_all: zE,
2347
+ wasmselectbuilder_where_expr: xE,
2348
+ wasmselectbuilder_where_sql: fE,
2349
+ wasmselectbuilder_window: WE,
2350
+ wasmsetopbuilder_build: eE,
2351
+ wasmsetopbuilder_limit: uE,
2352
+ wasmsetopbuilder_offset: lE,
2353
+ wasmsetopbuilder_order_by_exprs: rE,
2354
+ wasmsetopbuilder_to_sql: nE,
2355
+ wasmupdatebuilder_build: bE,
2356
+ wasmupdatebuilder_from: mE,
2357
+ wasmupdatebuilder_new: vE,
2358
+ wasmupdatebuilder_set: XE,
2359
+ wasmupdatebuilder_to_sql: _E,
2360
+ wasmupdatebuilder_where_expr: $E,
2361
+ wasmwindowdefbuilder_new: AD,
2362
+ wasmwindowdefbuilder_order_by: gD,
2363
+ wasmwindowdefbuilder_partition_by: ID
2340
2364
  }, Symbol.toStringTag, { value: "Module" }));
2341
- VC(QD);
2342
- const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2365
+ xC(MD);
2366
+ const Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2343
2367
  __proto__: null,
2344
2368
  WasmAssignmentArray: CA,
2345
- WasmCaseBuilder: l,
2369
+ WasmCaseBuilder: n,
2346
2370
  WasmDeleteBuilder: MA,
2347
- WasmExpr: K,
2371
+ WasmExpr: G,
2348
2372
  WasmExprArray: T,
2349
2373
  WasmInsertBuilder: iA,
2350
2374
  WasmMergeBuilder: oA,
2351
2375
  WasmSelectBuilder: P,
2352
- WasmSetOpBuilder: z,
2353
- WasmUpdateBuilder: kA,
2354
- WasmWindowDefBuilder: BA,
2355
- annotate_types: yI,
2356
- annotate_types_value: KI,
2357
- ast_add_where: bA,
2376
+ WasmSetOpBuilder: x,
2377
+ WasmUpdateBuilder: NA,
2378
+ WasmWindowDefBuilder: QA,
2379
+ annotate_types: GI,
2380
+ annotate_types_value: YI,
2381
+ ast_add_where: mA,
2358
2382
  ast_get_aggregate_functions: vA,
2359
2383
  ast_get_column_names: XA,
2360
2384
  ast_get_functions: _A,
@@ -2363,52 +2387,54 @@ const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2363
2387
  ast_get_table_names: gg,
2364
2388
  ast_get_window_functions: Ig,
2365
2389
  ast_node_count: Cg,
2366
- ast_qualify_columns: Bg,
2367
- ast_remove_where: Qg,
2368
- ast_rename_columns: Eg,
2369
- ast_rename_tables: Dg,
2370
- ast_set_distinct: wg,
2371
- ast_set_limit: Mg,
2372
- diff_sql: ig,
2373
- format_sql: GI,
2374
- format_sql_value: YI,
2375
- format_sql_with_options: SI,
2376
- format_sql_with_options_value: hI,
2377
- generate: HI,
2378
- generate_value: UI,
2379
- get_dialects: LI,
2380
- get_dialects_value: FI,
2381
- lineage_sql: og,
2382
- lineage_sql_with_schema: kg,
2383
- parse: cI,
2384
- parse_value: JI,
2385
- plan: Ng,
2386
- source_tables: yg,
2387
- tokenize: RI,
2388
- tokenize_value: sI,
2389
- transpile: aI,
2390
- transpile_value: qI,
2391
- validate: pI,
2392
- validate_with_options: TI,
2393
- validate_with_schema: Kg,
2394
- version: OI,
2395
- wasm_alias: Gg,
2396
- wasm_and: Yg,
2397
- wasm_boolean: Sg,
2398
- wasm_case_of: hg,
2399
- wasm_cast: Hg,
2400
- wasm_col: FA,
2401
- wasm_count_distinct: Ug,
2402
- wasm_extract: Lg,
2403
- wasm_func: Fg,
2404
- wasm_lit: NA,
2405
- wasm_not: cg,
2390
+ ast_qualify_columns: Qg,
2391
+ ast_qualify_tables: Bg,
2392
+ ast_remove_where: Eg,
2393
+ ast_rename_columns: Dg,
2394
+ ast_rename_tables: wg,
2395
+ ast_rename_tables_with_options: Mg,
2396
+ ast_set_distinct: ig,
2397
+ ast_set_limit: og,
2398
+ diff_sql: Ng,
2399
+ format_sql: SI,
2400
+ format_sql_value: hI,
2401
+ format_sql_with_options: HI,
2402
+ format_sql_with_options_value: LI,
2403
+ generate: UI,
2404
+ generate_value: cI,
2405
+ get_dialects: FI,
2406
+ get_dialects_value: JI,
2407
+ lineage_sql: kg,
2408
+ lineage_sql_with_schema: yg,
2409
+ parse: RI,
2410
+ parse_value: sI,
2411
+ plan: Kg,
2412
+ source_tables: Gg,
2413
+ tokenize: aI,
2414
+ tokenize_value: qI,
2415
+ transpile: pI,
2416
+ transpile_value: TI,
2417
+ validate: OI,
2418
+ validate_with_options: jI,
2419
+ validate_with_schema: Yg,
2420
+ version: PI,
2421
+ wasm_alias: Sg,
2422
+ wasm_and: hg,
2423
+ wasm_boolean: Hg,
2424
+ wasm_case_of: Lg,
2425
+ wasm_cast: Ug,
2426
+ wasm_col: cA,
2427
+ wasm_count_distinct: cg,
2428
+ wasm_extract: Fg,
2429
+ wasm_func: Jg,
2430
+ wasm_lit: kA,
2431
+ wasm_not: Rg,
2406
2432
  wasm_null: yA,
2407
- wasm_or: Jg,
2408
- wasm_sql_expr: Rg,
2409
- wasm_star: sg,
2410
- wasm_subquery: ag,
2411
- wasm_table: qg
2433
+ wasm_or: sg,
2434
+ wasm_sql_expr: ag,
2435
+ wasm_star: qg,
2436
+ wasm_subquery: pg,
2437
+ wasm_table: Tg
2412
2438
  }, Symbol.toStringTag, { value: "Module" }));
2413
2439
  function p(g) {
2414
2440
  return Object.keys(g)[0];
@@ -2417,7 +2443,7 @@ function O(g) {
2417
2443
  const A = Object.keys(g)[0];
2418
2444
  return g[A];
2419
2445
  }
2420
- function x(g) {
2446
+ function f(g) {
2421
2447
  if (typeof g != "object" || g === null || Array.isArray(g))
2422
2448
  return !1;
2423
2449
  const A = Object.keys(g);
@@ -2428,7 +2454,7 @@ function x(g) {
2428
2454
  function Z(g, A) {
2429
2455
  return { [g]: A };
2430
2456
  }
2431
- function Tg(g) {
2457
+ function jg(g) {
2432
2458
  const A = O(g);
2433
2459
  if (A && typeof A == "object" && "inferred_type" in A) {
2434
2460
  const C = A.inferred_type;
@@ -2439,133 +2465,142 @@ function Tg(g) {
2439
2465
  function Y(g) {
2440
2466
  return (A) => g in A;
2441
2467
  }
2442
- const Og = Y("select"), ED = Y("insert"), DD = Y("update"), wD = Y("delete"), MD = Y("union"), iD = Y("intersect"), oD = Y("except"), kD = Y("subquery"), ND = Y("identifier"), jg = Y("column"), yD = Y("table"), KD = Y("star"), Pg = Y("literal"), GD = Y("boolean"), YD = Y("null"), SD = Y("and"), hD = Y("or"), HD = Y("not"), UD = Y("eq"), LD = Y("neq"), FD = Y("lt"), cD = Y("lte"), JD = Y("gt"), RD = Y("gte"), sD = Y("like"), aD = Y("i_like"), qD = Y("add"), pD = Y("sub"), TD = Y("mul"), OD = Y("div"), jD = Y("mod"), PD = Y("concat"), dD = Y("in"), tD = Y("between"), ZD = Y("is_null"), VD = Y("exists"), dg = Y("function"), zD = Y("aggregate_function"), xD = Y("window_function"), fD = Y("count"), WD = Y("sum"), eD = Y("avg"), uD = Y("min"), rD = Y("max"), lD = Y("coalesce"), nD = Y("null_if"), mD = Y("cast"), bD = Y("try_cast"), vD = Y("safe_cast"), XD = Y("case"), _D = Y("from"), $D = Y("join"), Aw = Y("where"), gw = Y("group_by"), Iw = Y("having"), Cw = Y("order_by"), Bw = Y("limit"), Qw = Y("offset"), Ew = Y("with"), Dw = Y("cte"), ww = Y("alias"), Mw = Y("paren"), iw = Y("ordered"), ow = Y("create_table"), kw = Y("drop_table"), Nw = Y("alter_table"), yw = Y("create_index"), Kw = Y("drop_index"), Gw = Y("create_view"), Yw = Y("drop_view");
2443
- function Sw(g) {
2468
+ const Pg = Y("select"), iD = Y("insert"), oD = Y("update"), ND = Y("delete"), kD = Y("union"), yD = Y("intersect"), KD = Y("except"), GD = Y("subquery"), YD = Y("identifier"), dg = Y("column"), SD = Y("table"), hD = Y("star"), tg = Y("literal"), HD = Y("boolean"), LD = Y("null"), UD = Y("and"), cD = Y("or"), FD = Y("not"), JD = Y("eq"), RD = Y("neq"), sD = Y("lt"), aD = Y("lte"), qD = Y("gt"), pD = Y("gte"), TD = Y("like"), OD = Y("i_like"), jD = Y("add"), PD = Y("sub"), dD = Y("mul"), tD = Y("div"), ZD = Y("mod"), VD = Y("concat"), zD = Y("in"), xD = Y("between"), fD = Y("is_null"), WD = Y("exists"), Zg = Y("function"), eD = Y("aggregate_function"), uD = Y("window_function"), lD = Y("count"), rD = Y("sum"), nD = Y("avg"), bD = Y("min"), mD = Y("max"), vD = Y("coalesce"), XD = Y("null_if"), _D = Y("cast"), $D = Y("try_cast"), Aw = Y("safe_cast"), gw = Y("case"), Iw = Y("from"), Cw = Y("join"), Qw = Y("where"), Bw = Y("group_by"), Ew = Y("having"), Dw = Y("order_by"), ww = Y("limit"), Mw = Y("offset"), iw = Y("with"), ow = Y("cte"), Nw = Y("alias"), kw = Y("paren"), yw = Y("ordered"), Kw = Y("create_table"), Gw = Y("drop_table"), Yw = Y("alter_table"), Sw = Y("create_index"), hw = Y("drop_index"), Hw = Y("create_view"), Lw = Y("drop_view");
2469
+ function Uw(g) {
2444
2470
  const A = p(g);
2445
2471
  return A === "select" || A === "insert" || A === "update" || A === "delete";
2446
2472
  }
2447
- function hw(g) {
2473
+ function cw(g) {
2448
2474
  const A = p(g);
2449
2475
  return A === "union" || A === "intersect" || A === "except";
2450
2476
  }
2451
- function Hw(g) {
2477
+ function Fw(g) {
2452
2478
  const A = p(g);
2453
2479
  return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
2454
2480
  }
2455
- function Uw(g) {
2481
+ function Jw(g) {
2456
2482
  const A = p(g);
2457
2483
  return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
2458
2484
  }
2459
- function Lw(g) {
2485
+ function Rw(g) {
2460
2486
  const A = p(g);
2461
2487
  return A === "and" || A === "or" || A === "not";
2462
2488
  }
2463
- function Fw(g) {
2489
+ function sw(g) {
2464
2490
  const A = p(g);
2465
2491
  return A === "create_table" || A === "drop_table" || A === "alter_table" || A === "create_index" || A === "drop_index" || A === "create_view" || A === "drop_view" || A === "create_schema" || A === "drop_schema" || A === "create_database" || A === "drop_database" || A === "create_function" || A === "drop_function" || A === "create_procedure" || A === "drop_procedure" || A === "create_sequence" || A === "drop_sequence" || A === "alter_sequence" || A === "create_trigger" || A === "drop_trigger" || A === "create_type" || A === "drop_type";
2466
2492
  }
2467
- function f(g) {
2493
+ function V(g) {
2468
2494
  return JSON.stringify(g);
2469
2495
  }
2470
- function n(g) {
2496
+ function e(g) {
2471
2497
  const A = JSON.parse(g);
2472
2498
  return A.success ? JSON.parse(A.ast) : null;
2473
2499
  }
2474
- function tg(g, A, C) {
2500
+ function Vg(g, A, C) {
2475
2501
  if (g == null) return g;
2476
2502
  if (Array.isArray(g))
2477
- return g.length > 0 && x(g[0]) ? g.map(
2478
- (B, Q) => wA(B, A, C, null, Q)
2479
- ) : g.length > 0 && Array.isArray(g[0]) ? g.map((B) => Array.isArray(B) ? B.map((Q, E) => x(Q) ? wA(Q, A, C, null, E) : Q) : B) : g;
2480
- if (x(g))
2503
+ return g.length > 0 && f(g[0]) ? g.map(
2504
+ (Q, B) => wA(Q, A, C, null, B)
2505
+ ) : g.length > 0 && Array.isArray(g[0]) ? g.map((Q) => Array.isArray(Q) ? Q.map((B, E) => f(B) ? wA(B, A, C, null, E) : B) : Q) : g;
2506
+ if (f(g))
2481
2507
  return wA(g, A, C, null, null);
2482
2508
  if (typeof g == "object") {
2483
- const Q = { ...g };
2509
+ const B = { ...g };
2484
2510
  let E = !1;
2485
- for (const [D, i] of Object.entries(Q)) {
2486
- const N = tg(i, A, C);
2487
- N !== i && (Q[D] = N, E = !0);
2511
+ for (const [D, i] of Object.entries(B)) {
2512
+ const k = Vg(i, A, C);
2513
+ k !== i && (B[D] = k, E = !0);
2488
2514
  }
2489
- return E ? Q : g;
2515
+ return E ? B : g;
2490
2516
  }
2491
2517
  return g;
2492
2518
  }
2493
- function wA(g, A, C, B, Q) {
2519
+ function wA(g, A, C, Q, B) {
2494
2520
  let E = g;
2495
2521
  if (A.enter) {
2496
- const h = A.enter(E, C, B, Q);
2522
+ const h = A.enter(E, C, Q, B);
2497
2523
  if (h === null)
2498
2524
  return E;
2499
2525
  h !== void 0 && (E = h);
2500
2526
  }
2501
2527
  const D = p(E), i = A[D];
2502
2528
  if (i) {
2503
- const h = i(E, C, B, Q);
2529
+ const h = i(E, C, Q, B);
2504
2530
  if (h === null)
2505
2531
  return E;
2506
2532
  h !== void 0 && (E = h);
2507
2533
  }
2508
- const N = p(E), y = O(E);
2509
- let G;
2534
+ const k = p(E), y = O(E);
2535
+ let K;
2510
2536
  if (y == null)
2511
- G = Z(N, y);
2537
+ K = Z(k, y);
2512
2538
  else {
2513
2539
  const h = { ...y };
2514
2540
  for (const [R, q] of Object.entries(h)) {
2515
- const j = tg(q, A, E);
2541
+ const j = Vg(q, A, E);
2516
2542
  j !== q && (h[R] = j);
2517
2543
  }
2518
- G = Z(N, h);
2544
+ K = Z(k, h);
2519
2545
  }
2520
2546
  if (A.leave) {
2521
- const h = A.leave(G, C, B, Q);
2547
+ const h = A.leave(K, C, Q, B);
2522
2548
  if (h != null)
2523
2549
  return h;
2524
2550
  }
2525
- return G;
2551
+ return K;
2526
2552
  }
2527
2553
  function GA(g, A) {
2528
2554
  return wA(g, A, null, null, null);
2529
2555
  }
2530
- function Zg(g, A, C) {
2556
+ function zg(g, A, C) {
2531
2557
  return GA(g, {
2532
- enter: (B, Q) => {
2533
- if (A(B, Q))
2534
- return typeof C == "function" ? C(B) : C;
2558
+ enter: (Q, B) => {
2559
+ if (A(Q, B))
2560
+ return typeof C == "function" ? C(Q) : C;
2535
2561
  }
2536
2562
  });
2537
2563
  }
2538
- function cw(g, A, C) {
2539
- return Zg(
2564
+ function aw(g, A, C) {
2565
+ return zg(
2540
2566
  g,
2541
- (B) => p(B) === A,
2542
- typeof C == "function" ? (B) => C(B) : C
2567
+ (Q) => p(Q) === A,
2568
+ typeof C == "function" ? (Q) => C(Q) : C
2543
2569
  );
2544
2570
  }
2545
- function Vg(g, A) {
2546
- return n(
2547
- Eg(f(g), JSON.stringify(A))
2571
+ function xg(g, A) {
2572
+ return e(
2573
+ Dg(V(g), JSON.stringify(A))
2574
+ ) ?? g;
2575
+ }
2576
+ function qw(g, A, C) {
2577
+ return e(
2578
+ C ? Mg(
2579
+ V(g),
2580
+ JSON.stringify(A),
2581
+ JSON.stringify(C)
2582
+ ) : wg(V(g), JSON.stringify(A))
2548
2583
  ) ?? g;
2549
2584
  }
2550
- function Jw(g, A) {
2551
- return n(
2552
- Dg(f(g), JSON.stringify(A))
2585
+ function pw(g, A) {
2586
+ return e(
2587
+ Qg(V(g), A)
2553
2588
  ) ?? g;
2554
2589
  }
2555
- function Rw(g, A) {
2556
- return n(
2557
- Bg(f(g), A)
2590
+ function Tw(g, A = {}) {
2591
+ return e(
2592
+ Bg(V(g), JSON.stringify(A))
2558
2593
  ) ?? g;
2559
2594
  }
2560
- function sw(g, A, C = "and") {
2561
- return n(
2562
- bA(f(g), f(A), C === "or")
2595
+ function Ow(g, A, C = "and") {
2596
+ return e(
2597
+ mA(V(g), V(A), C === "or")
2563
2598
  ) ?? g;
2564
2599
  }
2565
- function aw(g) {
2566
- return n(Qg(f(g))) ?? g;
2600
+ function jw(g) {
2601
+ return e(Eg(V(g))) ?? g;
2567
2602
  }
2568
- function qw(g, ...A) {
2603
+ function Pw(g, ...A) {
2569
2604
  if (p(g) !== "select")
2570
2605
  return g;
2571
2606
  const C = O(g);
@@ -2574,18 +2609,18 @@ function qw(g, ...A) {
2574
2609
  expressions: [...C.expressions, ...A]
2575
2610
  });
2576
2611
  }
2577
- function pw(g, A) {
2612
+ function dw(g, A) {
2578
2613
  if (p(g) !== "select")
2579
2614
  return g;
2580
2615
  const C = O(g);
2581
2616
  return Z("select", {
2582
2617
  ...C,
2583
- expressions: C.expressions.filter((B) => !A(B))
2618
+ expressions: C.expressions.filter((Q) => !A(Q))
2584
2619
  });
2585
2620
  }
2586
- function Tw(g, A) {
2621
+ function tw(g, A) {
2587
2622
  if (typeof A == "number")
2588
- return n(Mg(f(g), A)) ?? g;
2623
+ return e(og(V(g), A)) ?? g;
2589
2624
  if (p(g) !== "select")
2590
2625
  return g;
2591
2626
  const C = O(g);
@@ -2594,16 +2629,16 @@ function Tw(g, A) {
2594
2629
  limit: { this: A }
2595
2630
  });
2596
2631
  }
2597
- function Ow(g, A) {
2632
+ function Zw(g, A) {
2598
2633
  if (p(g) !== "select")
2599
2634
  return g;
2600
- const C = O(g), B = typeof A == "number" ? Z("literal", { literal_type: "number", value: String(A) }) : A;
2635
+ const C = O(g), Q = typeof A == "number" ? Z("literal", { literal_type: "number", value: String(A) }) : A;
2601
2636
  return Z("select", {
2602
2637
  ...C,
2603
- offset: { this: B }
2638
+ offset: { this: Q }
2604
2639
  });
2605
2640
  }
2606
- function jw(g) {
2641
+ function Vw(g) {
2607
2642
  if (p(g) !== "select")
2608
2643
  return g;
2609
2644
  const A = O(g);
@@ -2613,158 +2648,158 @@ function jw(g) {
2613
2648
  offset: null
2614
2649
  });
2615
2650
  }
2616
- function Pw(g, A = !0) {
2617
- return n(wg(f(g), A)) ?? g;
2651
+ function zw(g, A = !0) {
2652
+ return e(ig(V(g), A)) ?? g;
2618
2653
  }
2619
- function dw(g) {
2654
+ function xw(g) {
2620
2655
  return GA(g, {});
2621
2656
  }
2622
- function zg(g, A, C) {
2657
+ function fg(g, A, C) {
2623
2658
  if (g == null) return g;
2624
2659
  if (Array.isArray(g))
2625
- return g.length > 0 && x(g[0]) ? g.filter((B) => !A(B, C)).map((B) => LA(B, A)) : g;
2626
- if (x(g))
2627
- return LA(g, A);
2660
+ return g.length > 0 && f(g[0]) ? g.filter((Q) => !A(Q, C)).map((Q) => UA(Q, A)) : g;
2661
+ if (f(g))
2662
+ return UA(g, A);
2628
2663
  if (typeof g == "object") {
2629
- const Q = { ...g };
2664
+ const B = { ...g };
2630
2665
  let E = !1;
2631
- for (const [D, i] of Object.entries(Q)) {
2632
- const N = zg(i, A, C);
2633
- N !== i && (Q[D] = N, E = !0);
2666
+ for (const [D, i] of Object.entries(B)) {
2667
+ const k = fg(i, A, C);
2668
+ k !== i && (B[D] = k, E = !0);
2634
2669
  }
2635
- return E ? Q : g;
2670
+ return E ? B : g;
2636
2671
  }
2637
2672
  return g;
2638
2673
  }
2639
- function LA(g, A) {
2640
- const C = p(g), Q = { ...O(g) };
2641
- for (const [E, D] of Object.entries(Q)) {
2642
- const i = zg(D, A, g);
2643
- i !== D && (Q[E] = i);
2674
+ function UA(g, A) {
2675
+ const C = p(g), B = { ...O(g) };
2676
+ for (const [E, D] of Object.entries(B)) {
2677
+ const i = fg(D, A, g);
2678
+ i !== D && (B[E] = i);
2644
2679
  }
2645
- return Z(C, Q);
2680
+ return Z(C, B);
2646
2681
  }
2647
- function e(g) {
2682
+ function u(g) {
2648
2683
  return JSON.stringify(g);
2649
2684
  }
2650
- function xg(g, A, C) {
2685
+ function Wg(g, A, C) {
2651
2686
  if (g != null) {
2652
2687
  if (Array.isArray(g)) {
2653
- if (g.length > 0 && x(g[0]))
2688
+ if (g.length > 0 && f(g[0]))
2654
2689
  C.push({ key: A, value: g });
2655
2690
  else if (g.length > 0 && Array.isArray(g[0])) {
2656
- for (const B of g)
2657
- if (Array.isArray(B))
2658
- for (const Q of B)
2659
- x(Q) && C.push({ key: A, value: Q });
2691
+ for (const Q of g)
2692
+ if (Array.isArray(Q))
2693
+ for (const B of Q)
2694
+ f(B) && C.push({ key: A, value: B });
2660
2695
  }
2661
- } else if (x(g))
2696
+ } else if (f(g))
2662
2697
  C.push({ key: A, value: g });
2663
2698
  else if (typeof g == "object")
2664
- for (const [, B] of Object.entries(
2699
+ for (const [, Q] of Object.entries(
2665
2700
  g
2666
2701
  ))
2667
- xg(B, A, C);
2702
+ Wg(Q, A, C);
2668
2703
  }
2669
2704
  }
2670
- function fg(g) {
2705
+ function eg(g) {
2671
2706
  const A = [], C = O(g);
2672
2707
  if (!C || typeof C != "object") return A;
2673
- for (const [B, Q] of Object.entries(C))
2674
- xg(Q, B, A);
2708
+ for (const [Q, B] of Object.entries(C))
2709
+ Wg(B, Q, A);
2675
2710
  return A;
2676
2711
  }
2677
- function t(g, A, C = null, B = null, Q = null) {
2678
- A.enter && A.enter(g, C, B, Q);
2712
+ function t(g, A, C = null, Q = null, B = null) {
2713
+ A.enter && A.enter(g, C, Q, B);
2679
2714
  const E = p(g), D = A[E];
2680
- D && D(g, C, B, Q);
2681
- const i = fg(g);
2682
- for (const N of i)
2683
- Array.isArray(N.value) ? N.value.forEach((y, G) => {
2684
- t(y, A, g, N.key, G);
2685
- }) : t(N.value, A, g, N.key, null);
2686
- A.leave && A.leave(g, C, B, Q);
2715
+ D && D(g, C, Q, B);
2716
+ const i = eg(g);
2717
+ for (const k of i)
2718
+ Array.isArray(k.value) ? k.value.forEach((y, K) => {
2719
+ t(y, A, g, k.key, K);
2720
+ }) : t(k.value, A, g, k.key, null);
2721
+ A.leave && A.leave(g, C, Q, B);
2687
2722
  }
2688
2723
  function YA(g, A) {
2689
2724
  const C = [];
2690
2725
  return t(g, {
2691
- enter: (B, Q) => {
2692
- A(B, Q) && C.push(B);
2726
+ enter: (Q, B) => {
2727
+ A(Q, B) && C.push(Q);
2693
2728
  }
2694
2729
  }), C;
2695
2730
  }
2696
- function QA(g, A) {
2731
+ function BA(g, A) {
2697
2732
  return YA(g, (C) => p(C) === A);
2698
2733
  }
2699
- function Wg(g, A) {
2700
- let C, B = !1;
2734
+ function ug(g, A) {
2735
+ let C, Q = !1;
2701
2736
  return t(g, {
2702
- enter: (Q, E) => {
2703
- !B && A(Q, E) && (C = Q, B = !0);
2737
+ enter: (B, E) => {
2738
+ !Q && A(B, E) && (C = B, Q = !0);
2704
2739
  }
2705
2740
  }), C;
2706
2741
  }
2707
- function tw(g, A) {
2708
- return Wg(g, A) !== void 0;
2742
+ function fw(g, A) {
2743
+ return ug(g, A) !== void 0;
2709
2744
  }
2710
- function Zw(g, A) {
2745
+ function Ww(g, A) {
2711
2746
  let C = !0;
2712
2747
  return t(g, {
2713
- enter: (B, Q) => {
2714
- A(B, Q) || (C = !1);
2748
+ enter: (Q, B) => {
2749
+ A(Q, B) || (C = !1);
2715
2750
  }
2716
2751
  }), C;
2717
2752
  }
2718
- function Vw(g, A) {
2753
+ function ew(g, A) {
2719
2754
  return YA(g, A).length;
2720
2755
  }
2721
- function eg(g) {
2722
- return QA(g, "column");
2756
+ function lg(g) {
2757
+ return BA(g, "column");
2723
2758
  }
2724
- function zw(g) {
2725
- return QA(g, "table");
2759
+ function uw(g) {
2760
+ return BA(g, "table");
2726
2761
  }
2727
- function xw(g) {
2728
- return QA(g, "identifier");
2762
+ function lw(g) {
2763
+ return BA(g, "identifier");
2729
2764
  }
2730
- function fw(g) {
2731
- const A = JSON.parse(_A(e(g)));
2765
+ function rw(g) {
2766
+ const A = JSON.parse(_A(u(g)));
2732
2767
  return A.success ? JSON.parse(A.ast) : [];
2733
2768
  }
2734
2769
  function IA(g) {
2735
- const A = JSON.parse(vA(e(g)));
2770
+ const A = JSON.parse(vA(u(g)));
2736
2771
  return A.success ? JSON.parse(A.ast) : [];
2737
2772
  }
2738
- function ug(g) {
2739
- const A = JSON.parse(Ig(e(g)));
2773
+ function rg(g) {
2774
+ const A = JSON.parse(Ig(u(g)));
2740
2775
  return A.success ? JSON.parse(A.ast) : [];
2741
2776
  }
2742
- function rg(g) {
2743
- const A = JSON.parse(Ag(e(g)));
2777
+ function ng(g) {
2778
+ const A = JSON.parse(Ag(u(g)));
2744
2779
  return A.success ? JSON.parse(A.ast) : [];
2745
2780
  }
2746
- function Ww(g) {
2747
- const A = JSON.parse($A(e(g)));
2781
+ function nw(g) {
2782
+ const A = JSON.parse($A(u(g)));
2748
2783
  return A.success ? JSON.parse(A.ast) : [];
2749
2784
  }
2750
- function ew(g) {
2751
- const A = JSON.parse(XA(e(g)));
2785
+ function bw(g) {
2786
+ const A = JSON.parse(XA(u(g)));
2752
2787
  return A.success ? A.result : [];
2753
2788
  }
2754
- function uw(g) {
2755
- const A = JSON.parse(gg(e(g)));
2789
+ function mw(g) {
2790
+ const A = JSON.parse(gg(u(g)));
2756
2791
  return A.success ? A.result : [];
2757
2792
  }
2758
- function lg(g) {
2793
+ function bg(g) {
2759
2794
  return IA(g).length > 0;
2760
2795
  }
2761
- function rw(g) {
2762
- return ug(g).length > 0;
2763
- }
2764
- function lw(g) {
2796
+ function vw(g) {
2765
2797
  return rg(g).length > 0;
2766
2798
  }
2767
- function nw(g) {
2799
+ function Xw(g) {
2800
+ return ng(g).length > 0;
2801
+ }
2802
+ function _w(g) {
2768
2803
  let A = 0, C = 0;
2769
2804
  return t(g, {
2770
2805
  enter: () => {
@@ -2775,184 +2810,185 @@ function nw(g) {
2775
2810
  }
2776
2811
  }), A;
2777
2812
  }
2778
- function mw(g) {
2779
- const A = JSON.parse(Cg(e(g)));
2813
+ function $w(g) {
2814
+ const A = JSON.parse(Cg(u(g)));
2780
2815
  return A.success ? A.result : 0;
2781
2816
  }
2782
- function bw(g, A) {
2817
+ function AM(g, A) {
2783
2818
  let C = null;
2784
2819
  return t(g, {
2785
- enter: (B, Q) => {
2786
- B === A && (C = Q);
2820
+ enter: (Q, B) => {
2821
+ Q === A && (C = B);
2787
2822
  }
2788
2823
  }), C;
2789
2824
  }
2790
- function vw(g, A, C) {
2791
- const B = [];
2792
- let Q = null;
2825
+ function gM(g, A, C) {
2826
+ const Q = [];
2827
+ let B = null;
2793
2828
  return t(g, {
2794
2829
  enter: (E) => {
2795
- if (Q === null) {
2830
+ if (B === null) {
2796
2831
  if (E === A)
2797
- for (let D = B.length - 1; D >= 0; D--) {
2798
- const i = D > 0 ? B[D - 1] : null;
2799
- if (C(B[D], i)) {
2800
- Q = B[D];
2832
+ for (let D = Q.length - 1; D >= 0; D--) {
2833
+ const i = D > 0 ? Q[D - 1] : null;
2834
+ if (C(Q[D], i)) {
2835
+ B = Q[D];
2801
2836
  break;
2802
2837
  }
2803
2838
  }
2804
- B.push(E);
2839
+ Q.push(E);
2805
2840
  }
2806
2841
  },
2807
2842
  leave: () => {
2808
- B.pop();
2843
+ Q.pop();
2809
2844
  }
2810
- }), Q;
2845
+ }), B;
2811
2846
  }
2812
- function Xw(g, A) {
2813
- let C = 0, B = 0;
2847
+ function IM(g, A) {
2848
+ let C = 0, Q = 0;
2814
2849
  return t(g, {
2815
- enter: (Q) => {
2816
- B++, Q === A && (C = B);
2850
+ enter: (B) => {
2851
+ Q++, B === A && (C = Q);
2817
2852
  },
2818
2853
  leave: () => {
2819
- B--;
2854
+ Q--;
2820
2855
  }
2821
2856
  }), C;
2822
2857
  }
2823
- const _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2858
+ const CM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2824
2859
  __proto__: null,
2825
- addSelectColumns: qw,
2826
- addWhere: sw,
2827
- clone: dw,
2828
- countNodes: Vw,
2829
- every: Zw,
2860
+ addSelectColumns: Pw,
2861
+ addWhere: Ow,
2862
+ clone: xw,
2863
+ countNodes: ew,
2864
+ every: Ww,
2830
2865
  findAll: YA,
2831
- findAncestor: vw,
2832
- findByType: QA,
2833
- findFirst: Wg,
2866
+ findAncestor: gM,
2867
+ findByType: BA,
2868
+ findFirst: ug,
2834
2869
  getAggregateFunctions: IA,
2835
- getChildren: fg,
2836
- getColumnNames: ew,
2837
- getColumns: eg,
2838
- getDepth: nw,
2870
+ getChildren: eg,
2871
+ getColumnNames: bw,
2872
+ getColumns: lg,
2873
+ getDepth: _w,
2839
2874
  getExprData: O,
2840
2875
  getExprType: p,
2841
- getFunctions: fw,
2842
- getIdentifiers: xw,
2843
- getInferredType: Tg,
2844
- getLiterals: Ww,
2845
- getNodeDepth: Xw,
2846
- getParent: bw,
2847
- getSubqueries: rg,
2848
- getTableNames: uw,
2849
- getTables: zw,
2850
- getWindowFunctions: ug,
2851
- hasAggregates: lg,
2852
- hasSubqueries: lw,
2853
- hasWindowFunctions: rw,
2854
- isAdd: qD,
2855
- isAggregateFunction: zD,
2856
- isAlias: ww,
2857
- isAlterTable: Nw,
2858
- isAnd: SD,
2859
- isArithmetic: Uw,
2860
- isAvg: eD,
2861
- isBetween: tD,
2862
- isBoolean: GD,
2863
- isCase: XD,
2864
- isCast: mD,
2865
- isCoalesce: lD,
2866
- isColumn: jg,
2867
- isComparison: Hw,
2868
- isConcat: PD,
2869
- isCount: fD,
2870
- isCreateIndex: yw,
2871
- isCreateTable: ow,
2872
- isCreateView: Gw,
2873
- isCte: Dw,
2874
- isDDL: Fw,
2875
- isDelete: wD,
2876
- isDiv: OD,
2877
- isDropIndex: Kw,
2878
- isDropTable: kw,
2879
- isDropView: Yw,
2880
- isEq: UD,
2881
- isExcept: oD,
2882
- isExists: VD,
2883
- isExpressionValue: x,
2884
- isFrom: _D,
2885
- isFunction: dg,
2886
- isGroupBy: gw,
2887
- isGt: JD,
2888
- isGte: RD,
2889
- isHaving: Iw,
2890
- isILike: aD,
2891
- isIdentifier: ND,
2892
- isIn: dD,
2893
- isInsert: ED,
2894
- isIntersect: iD,
2895
- isIsNull: ZD,
2896
- isJoin: $D,
2897
- isLike: sD,
2898
- isLimit: Bw,
2899
- isLiteral: Pg,
2900
- isLogical: Lw,
2901
- isLt: FD,
2902
- isLte: cD,
2903
- isMax: rD,
2904
- isMin: uD,
2905
- isMod: jD,
2906
- isMul: TD,
2907
- isNeq: LD,
2908
- isNot: HD,
2909
- isNullIf: nD,
2910
- isNullLiteral: YD,
2911
- isOffset: Qw,
2912
- isOr: hD,
2913
- isOrderBy: Cw,
2914
- isOrdered: iw,
2915
- isParen: Mw,
2916
- isQuery: Sw,
2917
- isSafeCast: vD,
2918
- isSelect: Og,
2919
- isSetOperation: hw,
2920
- isStar: KD,
2921
- isSub: pD,
2922
- isSubquery: kD,
2923
- isSum: WD,
2924
- isTable: yD,
2925
- isTryCast: bD,
2926
- isUnion: MD,
2927
- isUpdate: DD,
2928
- isWhere: Aw,
2929
- isWindowFunction: xD,
2930
- isWith: Ew,
2876
+ getFunctions: rw,
2877
+ getIdentifiers: lw,
2878
+ getInferredType: jg,
2879
+ getLiterals: nw,
2880
+ getNodeDepth: IM,
2881
+ getParent: AM,
2882
+ getSubqueries: ng,
2883
+ getTableNames: mw,
2884
+ getTables: uw,
2885
+ getWindowFunctions: rg,
2886
+ hasAggregates: bg,
2887
+ hasSubqueries: Xw,
2888
+ hasWindowFunctions: vw,
2889
+ isAdd: jD,
2890
+ isAggregateFunction: eD,
2891
+ isAlias: Nw,
2892
+ isAlterTable: Yw,
2893
+ isAnd: UD,
2894
+ isArithmetic: Jw,
2895
+ isAvg: nD,
2896
+ isBetween: xD,
2897
+ isBoolean: HD,
2898
+ isCase: gw,
2899
+ isCast: _D,
2900
+ isCoalesce: vD,
2901
+ isColumn: dg,
2902
+ isComparison: Fw,
2903
+ isConcat: VD,
2904
+ isCount: lD,
2905
+ isCreateIndex: Sw,
2906
+ isCreateTable: Kw,
2907
+ isCreateView: Hw,
2908
+ isCte: ow,
2909
+ isDDL: sw,
2910
+ isDelete: ND,
2911
+ isDiv: tD,
2912
+ isDropIndex: hw,
2913
+ isDropTable: Gw,
2914
+ isDropView: Lw,
2915
+ isEq: JD,
2916
+ isExcept: KD,
2917
+ isExists: WD,
2918
+ isExpressionValue: f,
2919
+ isFrom: Iw,
2920
+ isFunction: Zg,
2921
+ isGroupBy: Bw,
2922
+ isGt: qD,
2923
+ isGte: pD,
2924
+ isHaving: Ew,
2925
+ isILike: OD,
2926
+ isIdentifier: YD,
2927
+ isIn: zD,
2928
+ isInsert: iD,
2929
+ isIntersect: yD,
2930
+ isIsNull: fD,
2931
+ isJoin: Cw,
2932
+ isLike: TD,
2933
+ isLimit: ww,
2934
+ isLiteral: tg,
2935
+ isLogical: Rw,
2936
+ isLt: sD,
2937
+ isLte: aD,
2938
+ isMax: mD,
2939
+ isMin: bD,
2940
+ isMod: ZD,
2941
+ isMul: dD,
2942
+ isNeq: RD,
2943
+ isNot: FD,
2944
+ isNullIf: XD,
2945
+ isNullLiteral: LD,
2946
+ isOffset: Mw,
2947
+ isOr: cD,
2948
+ isOrderBy: Dw,
2949
+ isOrdered: yw,
2950
+ isParen: kw,
2951
+ isQuery: Uw,
2952
+ isSafeCast: Aw,
2953
+ isSelect: Pg,
2954
+ isSetOperation: cw,
2955
+ isStar: hD,
2956
+ isSub: PD,
2957
+ isSubquery: GD,
2958
+ isSum: rD,
2959
+ isTable: SD,
2960
+ isTryCast: $D,
2961
+ isUnion: kD,
2962
+ isUpdate: oD,
2963
+ isWhere: Qw,
2964
+ isWindowFunction: uD,
2965
+ isWith: iw,
2931
2966
  makeExpr: Z,
2932
- nodeCount: mw,
2933
- qualifyColumns: Rw,
2934
- remove: LA,
2935
- removeLimitOffset: jw,
2936
- removeSelectColumns: pw,
2937
- removeWhere: aw,
2938
- renameColumns: Vg,
2939
- renameTables: Jw,
2940
- replaceByType: cw,
2941
- replaceNodes: Zg,
2942
- setDistinct: Pw,
2943
- setLimit: Tw,
2944
- setOffset: Ow,
2945
- some: tw,
2967
+ nodeCount: $w,
2968
+ qualifyColumns: pw,
2969
+ qualifyTables: Tw,
2970
+ remove: UA,
2971
+ removeLimitOffset: Vw,
2972
+ removeSelectColumns: dw,
2973
+ removeWhere: jw,
2974
+ renameColumns: xg,
2975
+ renameTables: qw,
2976
+ replaceByType: aw,
2977
+ replaceNodes: zg,
2978
+ setDistinct: zw,
2979
+ setLimit: tw,
2980
+ setOffset: Zw,
2981
+ some: fw,
2946
2982
  transform: GA,
2947
2983
  walk: t
2948
2984
  }, Symbol.toStringTag, { value: "Module" }));
2949
- function L(g) {
2950
- return g instanceof H ? g._w : typeof g == "string" ? FA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? NA(g) : yA();
2985
+ function c(g) {
2986
+ return g instanceof H ? g._w : typeof g == "string" ? cA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : yA();
2951
2987
  }
2952
2988
  function d(g) {
2953
2989
  const A = new T();
2954
2990
  for (const C of g)
2955
- C instanceof H ? A.push(C._w) : typeof C == "string" ? A.push_col(C) : typeof C == "number" ? Number.isInteger(C) ? A.push_int(C) : A.push_float(C) : typeof C == "boolean" || C === null ? A.push(NA(C)) : A.push(yA());
2991
+ C instanceof H ? A.push(C._w) : typeof C == "string" ? A.push_col(C) : typeof C == "number" ? Number.isInteger(C) ? A.push_int(C) : A.push_float(C) : typeof C == "boolean" || C === null ? A.push(kA(C)) : A.push(yA());
2956
2992
  return A;
2957
2993
  }
2958
2994
  class H {
@@ -2964,58 +3000,58 @@ class H {
2964
3000
  }
2965
3001
  // -- Comparison --
2966
3002
  eq(A) {
2967
- return new H(this._w.eq(L(A)));
3003
+ return new H(this._w.eq(c(A)));
2968
3004
  }
2969
3005
  neq(A) {
2970
- return new H(this._w.neq(L(A)));
3006
+ return new H(this._w.neq(c(A)));
2971
3007
  }
2972
3008
  lt(A) {
2973
- return new H(this._w.lt(L(A)));
3009
+ return new H(this._w.lt(c(A)));
2974
3010
  }
2975
3011
  lte(A) {
2976
- return new H(this._w.lte(L(A)));
3012
+ return new H(this._w.lte(c(A)));
2977
3013
  }
2978
3014
  gt(A) {
2979
- return new H(this._w.gt(L(A)));
3015
+ return new H(this._w.gt(c(A)));
2980
3016
  }
2981
3017
  gte(A) {
2982
- return new H(this._w.gte(L(A)));
3018
+ return new H(this._w.gte(c(A)));
2983
3019
  }
2984
3020
  // -- Logical --
2985
3021
  and(A) {
2986
- return new H(this._w.and(L(A)));
3022
+ return new H(this._w.and(c(A)));
2987
3023
  }
2988
3024
  or(A) {
2989
- return new H(this._w.or(L(A)));
3025
+ return new H(this._w.or(c(A)));
2990
3026
  }
2991
3027
  not() {
2992
3028
  return new H(this._w.not());
2993
3029
  }
2994
3030
  xor(A) {
2995
- return new H(this._w.xor(L(A)));
3031
+ return new H(this._w.xor(c(A)));
2996
3032
  }
2997
3033
  // -- Arithmetic --
2998
3034
  add(A) {
2999
- return new H(this._w.add(L(A)));
3035
+ return new H(this._w.add(c(A)));
3000
3036
  }
3001
3037
  sub(A) {
3002
- return new H(this._w.sub(L(A)));
3038
+ return new H(this._w.sub(c(A)));
3003
3039
  }
3004
3040
  mul(A) {
3005
- return new H(this._w.mul(L(A)));
3041
+ return new H(this._w.mul(c(A)));
3006
3042
  }
3007
3043
  div(A) {
3008
- return new H(this._w.div(L(A)));
3044
+ return new H(this._w.div(c(A)));
3009
3045
  }
3010
3046
  // -- Pattern matching --
3011
3047
  like(A) {
3012
- return new H(this._w.like(L(A)));
3048
+ return new H(this._w.like(c(A)));
3013
3049
  }
3014
3050
  ilike(A) {
3015
- return new H(this._w.ilike(L(A)));
3051
+ return new H(this._w.ilike(c(A)));
3016
3052
  }
3017
3053
  rlike(A) {
3018
- return new H(this._w.rlike(L(A)));
3054
+ return new H(this._w.rlike(c(A)));
3019
3055
  }
3020
3056
  // -- Predicates --
3021
3057
  isNull() {
@@ -3025,7 +3061,7 @@ class H {
3025
3061
  return new H(this._w.is_not_null());
3026
3062
  }
3027
3063
  between(A, C) {
3028
- return new H(this._w.between(L(A), L(C)));
3064
+ return new H(this._w.between(c(A), c(C)));
3029
3065
  }
3030
3066
  inList(...A) {
3031
3067
  return new H(this._w.in_list(d(A)));
@@ -3063,11 +3099,11 @@ class H {
3063
3099
  this._w.free();
3064
3100
  }
3065
3101
  }
3066
- class $w {
3102
+ class QM {
3067
3103
  /** @internal WASM handle */
3068
3104
  _w;
3069
3105
  constructor() {
3070
- this._w = new BA();
3106
+ this._w = new QA();
3071
3107
  }
3072
3108
  /** Set the PARTITION BY expressions. */
3073
3109
  partitionBy(...A) {
@@ -3082,178 +3118,178 @@ class $w {
3082
3118
  this._w.free();
3083
3119
  }
3084
3120
  }
3085
- function AM(g) {
3086
- return new H(FA(g));
3121
+ function BM(g) {
3122
+ return new H(cA(g));
3087
3123
  }
3088
- function gM(g) {
3089
- return new H(NA(g));
3124
+ function EM(g) {
3125
+ return new H(kA(g));
3090
3126
  }
3091
- function ng() {
3092
- return new H(sg());
3127
+ function mg() {
3128
+ return new H(qg());
3093
3129
  }
3094
- function IM() {
3130
+ function DM() {
3095
3131
  return new H(yA());
3096
3132
  }
3097
3133
  function JA(g) {
3098
- return new H(Sg(g));
3134
+ return new H(Hg(g));
3099
3135
  }
3100
- function CM(g) {
3101
- return new H(qg(g));
3136
+ function wM(g) {
3137
+ return new H(Tg(g));
3102
3138
  }
3103
- function mg(g) {
3104
- return new H(Rg(g));
3139
+ function vg(g) {
3140
+ return new H(ag(g));
3105
3141
  }
3106
- function BM(g) {
3107
- return mg(g);
3142
+ function MM(g) {
3143
+ return vg(g);
3108
3144
  }
3109
3145
  function J(g, ...A) {
3110
- return new H(Fg(g, d(A)));
3146
+ return new H(Jg(g, d(A)));
3111
3147
  }
3112
- function QM(g) {
3113
- return new H(cg(L(g)));
3148
+ function iM(g) {
3149
+ return new H(Rg(c(g)));
3114
3150
  }
3115
- function EM(g, A) {
3116
- return new H(Hg(L(g), A));
3151
+ function oM(g, A) {
3152
+ return new H(Ug(c(g), A));
3117
3153
  }
3118
- function DM(g, A) {
3119
- return new H(Gg(L(g), A));
3154
+ function NM(g, A) {
3155
+ return new H(Sg(c(g), A));
3120
3156
  }
3121
- function wM(g, A) {
3122
- return new H(ag(g._w, A));
3157
+ function kM(g, A) {
3158
+ return new H(pg(g._w, A));
3123
3159
  }
3124
- function MM(...g) {
3160
+ function yM(...g) {
3125
3161
  if (g.length === 0) return JA(!0);
3126
3162
  if (g.length === 1)
3127
- return g[0] instanceof H ? g[0] : new H(L(g[0]));
3128
- let A = L(g[0]);
3163
+ return g[0] instanceof H ? g[0] : new H(c(g[0]));
3164
+ let A = c(g[0]);
3129
3165
  for (let C = 1; C < g.length; C++)
3130
- A = Yg(A, L(g[C]));
3166
+ A = hg(A, c(g[C]));
3131
3167
  return new H(A);
3132
3168
  }
3133
- function iM(...g) {
3169
+ function KM(...g) {
3134
3170
  if (g.length === 0) return JA(!1);
3135
3171
  if (g.length === 1)
3136
- return g[0] instanceof H ? g[0] : new H(L(g[0]));
3137
- let A = L(g[0]);
3172
+ return g[0] instanceof H ? g[0] : new H(c(g[0]));
3173
+ let A = c(g[0]);
3138
3174
  for (let C = 1; C < g.length; C++)
3139
- A = Jg(A, L(g[C]));
3175
+ A = sg(A, c(g[C]));
3140
3176
  return new H(A);
3141
3177
  }
3142
- function oM(g) {
3143
- return g !== void 0 ? J("COUNT", g) : J("COUNT", ng());
3178
+ function GM(g) {
3179
+ return g !== void 0 ? J("COUNT", g) : J("COUNT", mg());
3144
3180
  }
3145
- function kM(g) {
3146
- return new H(Ug(L(g)));
3181
+ function YM(g) {
3182
+ return new H(cg(c(g)));
3147
3183
  }
3148
- function NM(g) {
3184
+ function SM(g) {
3149
3185
  return J("SUM", g);
3150
3186
  }
3151
- function yM(g) {
3187
+ function hM(g) {
3152
3188
  return J("AVG", g);
3153
3189
  }
3154
- function KM(g) {
3190
+ function HM(g) {
3155
3191
  return J("MIN", g);
3156
3192
  }
3157
- function GM(g) {
3193
+ function LM(g) {
3158
3194
  return J("MAX", g);
3159
3195
  }
3160
- function YM(g) {
3196
+ function UM(g) {
3161
3197
  return J("UPPER", g);
3162
3198
  }
3163
- function SM(g) {
3199
+ function cM(g) {
3164
3200
  return J("LOWER", g);
3165
3201
  }
3166
- function hM(g) {
3202
+ function FM(g) {
3167
3203
  return J("LENGTH", g);
3168
3204
  }
3169
- function HM(g) {
3205
+ function JM(g) {
3170
3206
  return J("TRIM", g);
3171
3207
  }
3172
- function UM(g) {
3208
+ function RM(g) {
3173
3209
  return J("LTRIM", g);
3174
3210
  }
3175
- function LM(g) {
3211
+ function sM(g) {
3176
3212
  return J("RTRIM", g);
3177
3213
  }
3178
- function FM(g) {
3214
+ function aM(g) {
3179
3215
  return J("REVERSE", g);
3180
3216
  }
3181
- function cM(g) {
3217
+ function qM(g) {
3182
3218
  return J("INITCAP", g);
3183
3219
  }
3184
- function JM(g, A, C) {
3220
+ function pM(g, A, C) {
3185
3221
  return C !== void 0 ? J("SUBSTRING", g, A, C) : J("SUBSTRING", g, A);
3186
3222
  }
3187
- function RM(g, A, C) {
3223
+ function TM(g, A, C) {
3188
3224
  return J("REPLACE", g, A, C);
3189
3225
  }
3190
- function sM(g, ...A) {
3226
+ function OM(g, ...A) {
3191
3227
  return J("CONCAT_WS", g, ...A);
3192
3228
  }
3193
- function aM(...g) {
3229
+ function jM(...g) {
3194
3230
  return J("COALESCE", ...g);
3195
3231
  }
3196
- function qM(g, A) {
3232
+ function PM(g, A) {
3197
3233
  return J("NULLIF", g, A);
3198
3234
  }
3199
- function pM(g, A) {
3235
+ function dM(g, A) {
3200
3236
  return J("IFNULL", g, A);
3201
3237
  }
3202
- function TM(g) {
3238
+ function tM(g) {
3203
3239
  return J("ABS", g);
3204
3240
  }
3205
- function OM(g, A) {
3241
+ function ZM(g, A) {
3206
3242
  return A !== void 0 ? J("ROUND", g, A) : J("ROUND", g);
3207
3243
  }
3208
- function jM(g) {
3244
+ function VM(g) {
3209
3245
  return J("FLOOR", g);
3210
3246
  }
3211
- function PM(g) {
3247
+ function zM(g) {
3212
3248
  return J("CEIL", g);
3213
3249
  }
3214
- function dM(g, A) {
3250
+ function xM(g, A) {
3215
3251
  return J("POWER", g, A);
3216
3252
  }
3217
- function tM(g) {
3253
+ function fM(g) {
3218
3254
  return J("SQRT", g);
3219
3255
  }
3220
- function ZM(g) {
3256
+ function WM(g) {
3221
3257
  return J("LN", g);
3222
3258
  }
3223
- function VM(g) {
3259
+ function eM(g) {
3224
3260
  return J("EXP", g);
3225
3261
  }
3226
- function zM(g) {
3262
+ function uM(g) {
3227
3263
  return J("SIGN", g);
3228
3264
  }
3229
- function xM(...g) {
3265
+ function lM(...g) {
3230
3266
  return J("GREATEST", ...g);
3231
3267
  }
3232
- function fM(...g) {
3268
+ function rM(...g) {
3233
3269
  return J("LEAST", ...g);
3234
3270
  }
3235
- function WM() {
3271
+ function nM() {
3236
3272
  return J("CURRENT_DATE");
3237
3273
  }
3238
- function eM() {
3274
+ function bM() {
3239
3275
  return J("CURRENT_TIME");
3240
3276
  }
3241
- function uM() {
3277
+ function mM() {
3242
3278
  return J("CURRENT_TIMESTAMP");
3243
3279
  }
3244
- function rM(g, A) {
3245
- return new H(Lg(g, L(A)));
3280
+ function vM(g, A) {
3281
+ return new H(Fg(g, c(A)));
3246
3282
  }
3247
- function lM() {
3283
+ function XM() {
3248
3284
  return J("ROW_NUMBER");
3249
3285
  }
3250
- function nM() {
3286
+ function _M() {
3251
3287
  return J("RANK");
3252
3288
  }
3253
- function mM() {
3289
+ function $M() {
3254
3290
  return J("DENSE_RANK");
3255
3291
  }
3256
- class bg {
3292
+ class Xg {
3257
3293
  /** @internal */
3258
3294
  _w;
3259
3295
  constructor() {
@@ -3262,7 +3298,7 @@ class bg {
3262
3298
  /** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
3263
3299
  select(...A) {
3264
3300
  for (const C of A)
3265
- C === "*" ? this._w.select_star() : C instanceof H ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(L(C));
3301
+ C === "*" ? this._w.select_star() : C instanceof H ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(c(C));
3266
3302
  return this;
3267
3303
  }
3268
3304
  /** Set the FROM clause. */
@@ -3271,15 +3307,15 @@ class bg {
3271
3307
  }
3272
3308
  /** Add an INNER JOIN. */
3273
3309
  join(A, C) {
3274
- return this._w.join(A, L(C)), this;
3310
+ return this._w.join(A, c(C)), this;
3275
3311
  }
3276
3312
  /** Add a LEFT JOIN. */
3277
3313
  leftJoin(A, C) {
3278
- return this._w.left_join(A, L(C)), this;
3314
+ return this._w.left_join(A, c(C)), this;
3279
3315
  }
3280
3316
  /** Add a RIGHT JOIN. */
3281
3317
  rightJoin(A, C) {
3282
- return this._w.right_join(A, L(C)), this;
3318
+ return this._w.right_join(A, c(C)), this;
3283
3319
  }
3284
3320
  /** Add a CROSS JOIN. */
3285
3321
  crossJoin(A) {
@@ -3287,7 +3323,7 @@ class bg {
3287
3323
  }
3288
3324
  /** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
3289
3325
  where(A) {
3290
- return typeof A == "string" ? this._w.where_sql(A) : A instanceof H ? this._w.where_expr(A._w) : this._w.where_expr(L(A)), this;
3326
+ return typeof A == "string" ? this._w.where_sql(A) : A instanceof H ? this._w.where_expr(A._w) : this._w.where_expr(c(A)), this;
3291
3327
  }
3292
3328
  /** Set the GROUP BY clause. */
3293
3329
  groupBy(...A) {
@@ -3295,7 +3331,7 @@ class bg {
3295
3331
  }
3296
3332
  /** Set the HAVING clause. */
3297
3333
  having(A) {
3298
- return this._w.having(L(A)), this;
3334
+ return this._w.having(c(A)), this;
3299
3335
  }
3300
3336
  /** Set the ORDER BY clause. */
3301
3337
  orderBy(...A) {
@@ -3315,7 +3351,7 @@ class bg {
3315
3351
  }
3316
3352
  /** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
3317
3353
  qualify(A) {
3318
- return this._w.qualify(L(A)), this;
3354
+ return this._w.qualify(c(A)), this;
3319
3355
  }
3320
3356
  /** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
3321
3357
  sortBy(...A) {
@@ -3326,8 +3362,8 @@ class bg {
3326
3362
  return this._w.window(A, C._w), this;
3327
3363
  }
3328
3364
  /** Add a LATERAL VIEW clause (Hive/Spark UDTF expansion). */
3329
- lateral(A, C, B) {
3330
- return this._w.lateral_view(A._w, C, B), this;
3365
+ lateral(A, C, Q) {
3366
+ return this._w.lateral_view(A._w, C, Q), this;
3331
3367
  }
3332
3368
  /** Add a query hint (e.g. Oracle hint expressions). */
3333
3369
  hint(A) {
@@ -3380,11 +3416,11 @@ class bg {
3380
3416
  this._w.free();
3381
3417
  }
3382
3418
  }
3383
- function bM(...g) {
3384
- const A = new bg();
3419
+ function Ai(...g) {
3420
+ const A = new Xg();
3385
3421
  return g.length > 0 && A.select(...g), A;
3386
3422
  }
3387
- class vg {
3423
+ class _g {
3388
3424
  /** @internal */
3389
3425
  _w;
3390
3426
  constructor(A) {
@@ -3415,25 +3451,25 @@ class vg {
3415
3451
  this._w.free();
3416
3452
  }
3417
3453
  }
3418
- function Xg(g) {
3419
- return new vg(g);
3454
+ function $g(g) {
3455
+ return new _g(g);
3420
3456
  }
3421
- function vM(g) {
3422
- return Xg(g);
3457
+ function gi(g) {
3458
+ return $g(g);
3423
3459
  }
3424
- class _g {
3460
+ class AI {
3425
3461
  /** @internal */
3426
3462
  _w;
3427
3463
  constructor(A) {
3428
- this._w = new kA(A);
3464
+ this._w = new NA(A);
3429
3465
  }
3430
3466
  /** Add a SET column = value assignment. */
3431
3467
  set(A, C) {
3432
- return this._w.set(A, L(C)), this;
3468
+ return this._w.set(A, c(C)), this;
3433
3469
  }
3434
3470
  /** Set the WHERE clause. */
3435
3471
  where(A) {
3436
- return this._w.where_expr(L(A)), this;
3472
+ return this._w.where_expr(c(A)), this;
3437
3473
  }
3438
3474
  /** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
3439
3475
  from(A) {
@@ -3452,10 +3488,10 @@ class _g {
3452
3488
  this._w.free();
3453
3489
  }
3454
3490
  }
3455
- function XM(g) {
3456
- return new _g(g);
3491
+ function Ii(g) {
3492
+ return new AI(g);
3457
3493
  }
3458
- class $g {
3494
+ class gI {
3459
3495
  /** @internal */
3460
3496
  _w;
3461
3497
  constructor(A) {
@@ -3463,7 +3499,7 @@ class $g {
3463
3499
  }
3464
3500
  /** Set the WHERE clause. */
3465
3501
  where(A) {
3466
- return this._w.where_expr(L(A)), this;
3502
+ return this._w.where_expr(c(A)), this;
3467
3503
  }
3468
3504
  /** Generate SQL string. Defaults to generic dialect. */
3469
3505
  toSql(A = "generic") {
@@ -3478,13 +3514,13 @@ class $g {
3478
3514
  this._w.free();
3479
3515
  }
3480
3516
  }
3481
- function AI(g) {
3482
- return new $g(g);
3517
+ function II(g) {
3518
+ return new gI(g);
3483
3519
  }
3484
- function _M(g) {
3485
- return AI(g);
3520
+ function Ci(g) {
3521
+ return II(g);
3486
3522
  }
3487
- class gI {
3523
+ class CI {
3488
3524
  /** @internal */
3489
3525
  _w;
3490
3526
  constructor(A) {
@@ -3492,13 +3528,13 @@ class gI {
3492
3528
  }
3493
3529
  /** Set the source table and ON condition. */
3494
3530
  using(A, C) {
3495
- return this._w.using(A, L(C)), this;
3531
+ return this._w.using(A, c(C)), this;
3496
3532
  }
3497
3533
  /** Add a WHEN MATCHED THEN UPDATE SET clause. */
3498
3534
  whenMatchedUpdate(A) {
3499
3535
  const C = new CA();
3500
- for (const [B, Q] of Object.entries(A))
3501
- C.push(B, L(Q));
3536
+ for (const [Q, B] of Object.entries(A))
3537
+ C.push(Q, c(B));
3502
3538
  return this._w.when_matched_update(C), this;
3503
3539
  }
3504
3540
  /** Add a WHEN MATCHED THEN DELETE clause. */
@@ -3522,8 +3558,8 @@ class gI {
3522
3558
  this._w.free();
3523
3559
  }
3524
3560
  }
3525
- function $M(g) {
3526
- return new gI(g);
3561
+ function Qi(g) {
3562
+ return new CI(g);
3527
3563
  }
3528
3564
  class RA {
3529
3565
  /** @internal */
@@ -3534,11 +3570,11 @@ class RA {
3534
3570
  }
3535
3571
  /** Add a WHEN condition THEN result branch. */
3536
3572
  when(A, C) {
3537
- return this._w.when(L(A), L(C)), this;
3573
+ return this._w.when(c(A), c(C)), this;
3538
3574
  }
3539
3575
  /** Set the ELSE result. */
3540
3576
  else_(A) {
3541
- return this._w.else_(L(A)), this;
3577
+ return this._w.else_(c(A)), this;
3542
3578
  }
3543
3579
  /** Build the CASE expression as an Expr. */
3544
3580
  build() {
@@ -3549,11 +3585,11 @@ class RA {
3549
3585
  return this._w.to_sql();
3550
3586
  }
3551
3587
  }
3552
- function Ai() {
3553
- return new RA(new l());
3588
+ function Bi() {
3589
+ return new RA(new n());
3554
3590
  }
3555
- function gi(g) {
3556
- return new RA(hg(L(g)));
3591
+ function Ei(g) {
3592
+ return new RA(Lg(c(g)));
3557
3593
  }
3558
3594
  class _ {
3559
3595
  /** @internal */
@@ -3587,26 +3623,26 @@ class _ {
3587
3623
  this._w.free();
3588
3624
  }
3589
3625
  }
3590
- function Ii(g, A) {
3626
+ function Di(g, A) {
3591
3627
  return g.union(A);
3592
3628
  }
3593
- function Ci(g, A) {
3629
+ function wi(g, A) {
3594
3630
  return g.unionAll(A);
3595
3631
  }
3596
- function Bi(g, A) {
3632
+ function Mi(g, A) {
3597
3633
  return g.intersect(A);
3598
3634
  }
3599
- function Qi(g, A) {
3635
+ function ii(g, A) {
3600
3636
  return g.except(A);
3601
3637
  }
3602
- function Ei(g, A) {
3638
+ function oi(g, A) {
3603
3639
  const C = [];
3604
- return p(g) === "select" && C.push(...Di(g)), C;
3640
+ return p(g) === "select" && C.push(...Ni(g)), C;
3605
3641
  }
3606
- function Di(g, A) {
3607
- const C = [], B = QA(g, "star");
3608
- if (B.length > 0) {
3609
- const D = O(B[0])?.span;
3642
+ function Ni(g, A) {
3643
+ const C = [], Q = BA(g, "star");
3644
+ if (Q.length > 0) {
3645
+ const D = O(Q[0])?.span;
3610
3646
  C.push({
3611
3647
  message: "SELECT * is discouraged; specify columns explicitly for better performance and maintainability",
3612
3648
  severity: "warning",
@@ -3617,17 +3653,17 @@ function Di(g, A) {
3617
3653
  end: D?.end
3618
3654
  });
3619
3655
  }
3620
- const Q = O(g);
3621
- if (lg(g) && !Q.group_by) {
3622
- const E = IA(g), D = Q.expressions || [];
3623
- if (D.some((N) => {
3624
- const y = p(N);
3625
- return y === "column" || y === "identifier" ? IA(N).length === 0 : !1;
3656
+ const B = O(g);
3657
+ if (bg(g) && !B.group_by) {
3658
+ const E = IA(g), D = B.expressions || [];
3659
+ if (D.some((k) => {
3660
+ const y = p(k);
3661
+ return y === "column" || y === "identifier" ? IA(k).length === 0 : !1;
3626
3662
  }) && E.length > 0) {
3627
- const N = D.find((G) => {
3628
- const h = p(G);
3629
- return h === "column" || h === "identifier" ? IA(G).length === 0 : !1;
3630
- }), y = N ? O(N)?.span : void 0;
3663
+ const k = D.find((K) => {
3664
+ const h = p(K);
3665
+ return h === "column" || h === "identifier" ? IA(K).length === 0 : !1;
3666
+ }), y = k ? O(k)?.span : void 0;
3631
3667
  C.push({
3632
3668
  message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
3633
3669
  severity: "warning",
@@ -3639,12 +3675,12 @@ function Di(g, A) {
3639
3675
  });
3640
3676
  }
3641
3677
  }
3642
- if (Q.distinct && Q.order_by && C.push({
3678
+ if (B.distinct && B.order_by && C.push({
3643
3679
  message: "DISTINCT with ORDER BY: ensure ORDER BY columns are in SELECT list",
3644
3680
  severity: "warning",
3645
3681
  code: "W003"
3646
- }), Q.limit && !Q.order_by) {
3647
- const E = Q.limit, D = E ? O(E)?.span : void 0;
3682
+ }), B.limit && !B.order_by) {
3683
+ const E = B.limit, D = E ? O(E)?.span : void 0;
3648
3684
  C.push({
3649
3685
  message: "LIMIT without ORDER BY produces non-deterministic results",
3650
3686
  severity: "warning",
@@ -3657,7 +3693,7 @@ function Di(g, A) {
3657
3693
  }
3658
3694
  return C;
3659
3695
  }
3660
- function wi(g) {
3696
+ function ki(g) {
3661
3697
  try {
3662
3698
  return JSON.parse(g);
3663
3699
  } catch {
@@ -3673,87 +3709,87 @@ function wi(g) {
3673
3709
  };
3674
3710
  }
3675
3711
  }
3676
- function Mi(g, A, C = "generic", B = {}) {
3677
- const Q = B.strict ?? A.strict ?? !0, E = {
3678
- check_types: B.checkTypes ?? !1,
3679
- check_references: B.checkReferences ?? !1,
3680
- strict: Q,
3681
- semantic: B.semantic ?? !1,
3682
- strict_syntax: B.strictSyntax ?? !1
3683
- }, D = Kg(
3712
+ function yi(g, A, C = "generic", Q = {}) {
3713
+ const B = Q.strict ?? A.strict ?? !0, E = {
3714
+ check_types: Q.checkTypes ?? !1,
3715
+ check_references: Q.checkReferences ?? !1,
3716
+ strict: B,
3717
+ semantic: Q.semantic ?? !1,
3718
+ strict_syntax: Q.strictSyntax ?? !1
3719
+ }, D = Yg(
3684
3720
  g,
3685
3721
  JSON.stringify(A),
3686
3722
  C,
3687
3723
  JSON.stringify(E)
3688
3724
  );
3689
- return wi(D);
3725
+ return ki(D);
3690
3726
  }
3691
- const ii = {
3727
+ const Ki = {
3692
3728
  Error: "error",
3693
3729
  Warning: "warning"
3694
- }, X = pg;
3695
- function mA(g) {
3730
+ }, X = Og;
3731
+ function bA(g) {
3696
3732
  return typeof g == "string" ? JSON.parse(g) : g;
3697
3733
  }
3698
- function oi(g, A = "generic", C = {}) {
3699
- const B = C.strictSyntax ? X.validate_with_options(
3734
+ function Gi(g, A = "generic", C = {}) {
3735
+ const Q = C.strictSyntax ? X.validate_with_options(
3700
3736
  g,
3701
3737
  A,
3702
3738
  JSON.stringify({ strictSyntax: !0 })
3703
- ) : X.validate(g, A), Q = JSON.parse(B);
3704
- if (!Q.valid || !C.semantic)
3705
- return Q;
3706
- const E = typeof X.parse_value == "function" ? mA(
3739
+ ) : X.validate(g, A), B = JSON.parse(Q);
3740
+ if (!B.valid || !C.semantic)
3741
+ return B;
3742
+ const E = typeof X.parse_value == "function" ? bA(
3707
3743
  X.parse_value(g, A)
3708
- ) : mA(
3744
+ ) : bA(
3709
3745
  X.parse(g, A)
3710
3746
  );
3711
3747
  if (!E.success || !E.ast)
3712
- return Q;
3713
- const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, i = [...Q.errors];
3748
+ return B;
3749
+ const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, i = [...B.errors];
3714
3750
  for (const y of D) {
3715
- const G = Ei(y);
3716
- i.push(...G);
3751
+ const K = oi(y);
3752
+ i.push(...K);
3717
3753
  }
3718
3754
  return {
3719
3755
  valid: !i.some((y) => y.severity === "error"),
3720
3756
  errors: i
3721
3757
  };
3722
3758
  }
3723
- function II(g, A, C = "generic", B = !1) {
3724
- const Q = og(A, g, C, B);
3725
- return JSON.parse(Q);
3759
+ function QI(g, A, C = "generic", Q = !1) {
3760
+ const B = kg(A, g, C, Q);
3761
+ return JSON.parse(B);
3726
3762
  }
3727
- function CI(g, A, C, B = "generic", Q = !1) {
3728
- const E = kg(
3763
+ function BI(g, A, C, Q = "generic", B = !1) {
3764
+ const E = yg(
3729
3765
  A,
3730
3766
  g,
3731
3767
  JSON.stringify(C),
3732
- B,
3733
- Q
3768
+ Q,
3769
+ B
3734
3770
  );
3735
3771
  return JSON.parse(E);
3736
3772
  }
3737
- function BI(g, A, C = "generic") {
3738
- const B = yg(A, g, C);
3739
- return JSON.parse(B);
3773
+ function EI(g, A, C = "generic") {
3774
+ const Q = Gg(A, g, C);
3775
+ return JSON.parse(Q);
3740
3776
  }
3741
- function QI(g, A, C = "generic", B = {}) {
3742
- const { deltaOnly: Q = !1, f: E = 0.6, t: D = 0.6 } = B, i = ig(g, A, C, Q, E, D);
3777
+ function DI(g, A, C = "generic", Q = {}) {
3778
+ const { deltaOnly: B = !1, f: E = 0.6, t: D = 0.6 } = Q, i = Ng(g, A, C, B, E, D);
3743
3779
  return JSON.parse(i);
3744
3780
  }
3745
- function EI(g) {
3781
+ function wI(g) {
3746
3782
  return g.some((A) => A.type !== "keep");
3747
3783
  }
3748
- function DI(g) {
3784
+ function MI(g) {
3749
3785
  return g.filter((A) => A.type !== "keep");
3750
3786
  }
3751
- function wI(g, A = "generic") {
3752
- const C = Ng(g, A);
3787
+ function iI(g, A = "generic") {
3788
+ const C = Kg(g, A);
3753
3789
  return JSON.parse(C);
3754
3790
  }
3755
3791
  var sA = /* @__PURE__ */ ((g) => (g.Generic = "generic", g.PostgreSQL = "postgresql", g.MySQL = "mysql", g.BigQuery = "bigquery", g.Snowflake = "snowflake", g.DuckDB = "duckdb", g.SQLite = "sqlite", g.Hive = "hive", g.Spark = "spark", g.Trino = "trino", g.Presto = "presto", g.Redshift = "redshift", g.TSQL = "tsql", g.Oracle = "oracle", g.ClickHouse = "clickhouse", g.Databricks = "databricks", g.Athena = "athena", g.Teradata = "teradata", g.Doris = "doris", g.StarRocks = "starrocks", g.Materialize = "materialize", g.RisingWave = "risingwave", g.SingleStore = "singlestore", g.CockroachDB = "cockroachdb", g.TiDB = "tidb", g.Druid = "druid", g.Solr = "solr", g.Tableau = "tableau", g.Dune = "dune", g.Fabric = "fabric", g.Drill = "drill", g.Dremio = "dremio", g.Exasol = "exasol", g.DataFusion = "datafusion", g))(sA || {});
3756
- const a = pg;
3792
+ const a = Og;
3757
3793
  function SA(g) {
3758
3794
  return g instanceof Error && g.message ? g.message : typeof g == "string" ? g : String(g);
3759
3795
  }
@@ -3766,7 +3802,7 @@ function aA(g, A) {
3766
3802
  errorColumn: void 0
3767
3803
  };
3768
3804
  }
3769
- function ki(g, A) {
3805
+ function Yi(g, A) {
3770
3806
  return {
3771
3807
  success: !1,
3772
3808
  ast: void 0,
@@ -3778,10 +3814,10 @@ function ki(g, A) {
3778
3814
  function W(g) {
3779
3815
  return typeof g == "string" ? JSON.parse(g) : g;
3780
3816
  }
3781
- async function MI() {
3817
+ async function oI() {
3782
3818
  return Promise.resolve();
3783
3819
  }
3784
- function iI() {
3820
+ function NI() {
3785
3821
  return !0;
3786
3822
  }
3787
3823
  function qA(g, A, C) {
@@ -3789,8 +3825,8 @@ function qA(g, A, C) {
3789
3825
  return typeof a.transpile_value == "function" ? W(
3790
3826
  a.transpile_value(g, A, C)
3791
3827
  ) : JSON.parse(a.transpile(g, A, C));
3792
- } catch (B) {
3793
- return aA("transpile", B);
3828
+ } catch (Q) {
3829
+ return aA("transpile", Q);
3794
3830
  }
3795
3831
  }
3796
3832
  function pA(g, A = "generic") {
@@ -3800,7 +3836,7 @@ function pA(g, A = "generic") {
3800
3836
  const C = JSON.parse(a.parse(g, A));
3801
3837
  return C.success && typeof C.ast == "string" && (C.ast = JSON.parse(C.ast)), C;
3802
3838
  } catch (C) {
3803
- return ki("parse", C);
3839
+ return Yi("parse", C);
3804
3840
  }
3805
3841
  }
3806
3842
  function TA(g, A = "generic") {
@@ -3840,8 +3876,8 @@ function PA(g, A = "generic", C = {}) {
3840
3876
  ) : typeof a.format_sql_value == "function" ? W(
3841
3877
  a.format_sql_value(g, A)
3842
3878
  ) : JSON.parse(a.format_sql(g, A));
3843
- } catch (B) {
3844
- return aA("format", B);
3879
+ } catch (Q) {
3880
+ return aA("format", Q);
3845
3881
  }
3846
3882
  }
3847
3883
  function dA() {
@@ -3852,19 +3888,19 @@ function tA() {
3852
3888
  }
3853
3889
  function ZA(g, A = "generic", C) {
3854
3890
  try {
3855
- const B = C ? JSON.stringify(C) : "";
3891
+ const Q = C ? JSON.stringify(C) : "";
3856
3892
  return typeof a.annotate_types_value == "function" ? W(
3857
- a.annotate_types_value(g, A, B)
3893
+ a.annotate_types_value(g, A, Q)
3858
3894
  ) : typeof a.annotate_types == "function" ? JSON.parse(
3859
- a.annotate_types(g, A, B)
3895
+ a.annotate_types(g, A, Q)
3860
3896
  ) : {
3861
3897
  success: !1,
3862
3898
  error: "annotate_types not available in this WASM build"
3863
3899
  };
3864
- } catch (B) {
3900
+ } catch (Q) {
3865
3901
  return {
3866
3902
  success: !1,
3867
- error: `WASM annotate_types failed: ${SA(B)}`
3903
+ error: `WASM annotate_types failed: ${SA(Q)}`
3868
3904
  };
3869
3905
  }
3870
3906
  }
@@ -3886,8 +3922,8 @@ class r {
3886
3922
  * Per-dialect builds only support same-dialect and to/from Generic transpilation.
3887
3923
  * Use {@link Polyglot.getDialects} to check available dialects.
3888
3924
  */
3889
- transpile(A, C, B) {
3890
- return qA(A, C, B);
3925
+ transpile(A, C, Q) {
3926
+ return qA(A, C, Q);
3891
3927
  }
3892
3928
  /**
3893
3929
  * Parse SQL into an AST.
@@ -3916,8 +3952,8 @@ class r {
3916
3952
  /**
3917
3953
  * Format SQL with explicit guard limits.
3918
3954
  */
3919
- formatWithOptions(A, C = "generic", B = {}) {
3920
- return PA(A, C, B);
3955
+ formatWithOptions(A, C = "generic", Q = {}) {
3956
+ return PA(A, C, Q);
3921
3957
  }
3922
3958
  /**
3923
3959
  * Get supported dialects in this build.
@@ -3935,13 +3971,13 @@ class r {
3935
3971
  /**
3936
3972
  * Parse SQL and annotate the AST with inferred type information.
3937
3973
  */
3938
- annotateTypes(A, C = "generic", B) {
3939
- return ZA(A, C, B);
3974
+ annotateTypes(A, C = "generic", Q) {
3975
+ return ZA(A, C, Q);
3940
3976
  }
3941
3977
  }
3942
- const Ni = {
3943
- init: MI,
3944
- isInitialized: iI,
3978
+ const Si = {
3979
+ init: oI,
3980
+ isInitialized: NI,
3945
3981
  transpile: qA,
3946
3982
  parse: pA,
3947
3983
  tokenize: TA,
@@ -3950,227 +3986,227 @@ const Ni = {
3950
3986
  annotateTypes: ZA,
3951
3987
  getDialects: dA,
3952
3988
  getVersion: tA,
3953
- lineage: II,
3954
- lineageWithSchema: CI,
3955
- getSourceTables: BI,
3956
- diff: QI,
3957
- hasChanges: EI,
3958
- changesOnly: DI,
3959
- plan: wI,
3989
+ lineage: QI,
3990
+ lineageWithSchema: BI,
3991
+ getSourceTables: EI,
3992
+ diff: DI,
3993
+ hasChanges: wI,
3994
+ changesOnly: MI,
3995
+ plan: iI,
3960
3996
  Dialect: sA,
3961
3997
  Polyglot: r
3962
- }, yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3998
+ }, hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3963
3999
  __proto__: null,
3964
4000
  CaseBuilder: RA,
3965
- DeleteBuilder: $g,
4001
+ DeleteBuilder: gI,
3966
4002
  Dialect: sA,
3967
4003
  Expr: H,
3968
- InsertBuilder: vg,
3969
- MergeBuilder: gI,
4004
+ InsertBuilder: _g,
4005
+ MergeBuilder: CI,
3970
4006
  Polyglot: r,
3971
- SelectBuilder: bg,
4007
+ SelectBuilder: Xg,
3972
4008
  SetOpBuilder: _,
3973
- UpdateBuilder: _g,
3974
- ValidationSeverity: ii,
3975
- WindowDefBuilder: $w,
3976
- abs: TM,
3977
- alias: DM,
3978
- and: MM,
4009
+ UpdateBuilder: AI,
4010
+ ValidationSeverity: Ki,
4011
+ WindowDefBuilder: QM,
4012
+ abs: tM,
4013
+ alias: NM,
4014
+ and: yM,
3979
4015
  annotateTypes: ZA,
3980
- ast: _w,
3981
- avg: yM,
4016
+ ast: CM,
4017
+ avg: hM,
3982
4018
  boolean: JA,
3983
- caseOf: gi,
3984
- caseWhen: Ai,
3985
- cast: EM,
3986
- ceil: PM,
3987
- changesOnly: DI,
3988
- coalesce: aM,
3989
- col: AM,
3990
- concatWs: sM,
3991
- condition: BM,
3992
- count: oM,
3993
- countDistinct: kM,
3994
- currentDate: WM,
3995
- currentTime: eM,
3996
- currentTimestamp: uM,
3997
- default: Ni,
3998
- del: _M,
3999
- deleteFrom: AI,
4000
- denseRank: mM,
4001
- diff: QI,
4002
- except: Qi,
4003
- exp: VM,
4004
- extract: rM,
4019
+ caseOf: Ei,
4020
+ caseWhen: Bi,
4021
+ cast: oM,
4022
+ ceil: zM,
4023
+ changesOnly: MI,
4024
+ coalesce: jM,
4025
+ col: BM,
4026
+ concatWs: OM,
4027
+ condition: MM,
4028
+ count: GM,
4029
+ countDistinct: YM,
4030
+ currentDate: nM,
4031
+ currentTime: bM,
4032
+ currentTimestamp: mM,
4033
+ default: Si,
4034
+ del: Ci,
4035
+ deleteFrom: II,
4036
+ denseRank: $M,
4037
+ diff: DI,
4038
+ except: ii,
4039
+ exp: eM,
4040
+ extract: vM,
4005
4041
  findAll: YA,
4006
- floor: jM,
4042
+ floor: VM,
4007
4043
  format: jA,
4008
4044
  formatWithOptions: PA,
4009
4045
  func: J,
4010
4046
  generate: OA,
4011
- getColumns: eg,
4047
+ getColumns: lg,
4012
4048
  getDialects: dA,
4013
- getInferredType: Tg,
4014
- getSourceTables: BI,
4049
+ getInferredType: jg,
4050
+ getSourceTables: EI,
4015
4051
  getVersion: tA,
4016
- greatest: xM,
4017
- hasChanges: EI,
4018
- ifNull: pM,
4019
- init: MI,
4020
- initcap: cM,
4021
- insert: vM,
4022
- insertInto: Xg,
4023
- intersect: Bi,
4024
- isColumn: jg,
4025
- isFunction: dg,
4026
- isInitialized: iI,
4027
- isLiteral: Pg,
4028
- isSelect: Og,
4029
- least: fM,
4030
- length: hM,
4031
- lineage: II,
4032
- lineageWithSchema: CI,
4033
- lit: gM,
4034
- ln: ZM,
4035
- lower: SM,
4036
- ltrim: UM,
4037
- max: GM,
4038
- mergeInto: $M,
4039
- min: KM,
4040
- not: QM,
4041
- nullIf: qM,
4042
- or: iM,
4052
+ greatest: lM,
4053
+ hasChanges: wI,
4054
+ ifNull: dM,
4055
+ init: oI,
4056
+ initcap: qM,
4057
+ insert: gi,
4058
+ insertInto: $g,
4059
+ intersect: Mi,
4060
+ isColumn: dg,
4061
+ isFunction: Zg,
4062
+ isInitialized: NI,
4063
+ isLiteral: tg,
4064
+ isSelect: Pg,
4065
+ least: rM,
4066
+ length: FM,
4067
+ lineage: QI,
4068
+ lineageWithSchema: BI,
4069
+ lit: EM,
4070
+ ln: WM,
4071
+ lower: cM,
4072
+ ltrim: RM,
4073
+ max: LM,
4074
+ mergeInto: Qi,
4075
+ min: HM,
4076
+ not: iM,
4077
+ nullIf: PM,
4078
+ or: KM,
4043
4079
  parse: pA,
4044
- plan: wI,
4045
- power: dM,
4046
- rank: nM,
4047
- renameColumns: Vg,
4048
- replace: RM,
4049
- reverse: FM,
4050
- round: OM,
4051
- rowNumber: lM,
4052
- rtrim: LM,
4053
- select: bM,
4054
- sign: zM,
4055
- sqlExpr: mg,
4056
- sqlNull: IM,
4057
- sqrt: tM,
4058
- star: ng,
4059
- subquery: wM,
4060
- substring: JM,
4061
- sum: NM,
4062
- table: CM,
4080
+ plan: iI,
4081
+ power: xM,
4082
+ rank: _M,
4083
+ renameColumns: xg,
4084
+ replace: TM,
4085
+ reverse: aM,
4086
+ round: ZM,
4087
+ rowNumber: XM,
4088
+ rtrim: sM,
4089
+ select: Ai,
4090
+ sign: uM,
4091
+ sqlExpr: vg,
4092
+ sqlNull: DM,
4093
+ sqrt: fM,
4094
+ star: mg,
4095
+ subquery: kM,
4096
+ substring: pM,
4097
+ sum: SM,
4098
+ table: wM,
4063
4099
  tokenize: TA,
4064
4100
  transform: GA,
4065
4101
  transpile: qA,
4066
- trim: HM,
4067
- union: Ii,
4068
- unionAll: Ci,
4069
- update: XM,
4070
- upper: YM,
4071
- validate: oi,
4072
- validateWithSchema: Mi,
4102
+ trim: JM,
4103
+ union: Di,
4104
+ unionAll: wi,
4105
+ update: Ii,
4106
+ upper: UM,
4107
+ validate: Gi,
4108
+ validateWithSchema: yi,
4073
4109
  walk: t
4074
4110
  }, Symbol.toStringTag, { value: "Module" }));
4075
4111
  export {
4076
4112
  RA as CaseBuilder,
4077
- $g as DeleteBuilder,
4113
+ gI as DeleteBuilder,
4078
4114
  sA as Dialect,
4079
4115
  H as Expr,
4080
- vg as InsertBuilder,
4081
- gI as MergeBuilder,
4116
+ _g as InsertBuilder,
4117
+ CI as MergeBuilder,
4082
4118
  r as Polyglot,
4083
- bg as SelectBuilder,
4119
+ Xg as SelectBuilder,
4084
4120
  _ as SetOpBuilder,
4085
- _g as UpdateBuilder,
4086
- ii as ValidationSeverity,
4087
- TM as abs,
4088
- DM as alias,
4089
- MM as and,
4121
+ AI as UpdateBuilder,
4122
+ Ki as ValidationSeverity,
4123
+ tM as abs,
4124
+ NM as alias,
4125
+ yM as and,
4090
4126
  ZA as annotateTypes,
4091
- _w as ast,
4092
- yM as avg,
4127
+ CM as ast,
4128
+ hM as avg,
4093
4129
  JA as boolean,
4094
- gi as caseOf,
4095
- Ai as caseWhen,
4096
- EM as cast,
4097
- PM as ceil,
4098
- aM as coalesce,
4099
- AM as col,
4100
- sM as concatWs,
4101
- BM as condition,
4102
- oM as count,
4103
- kM as countDistinct,
4104
- WM as currentDate,
4105
- eM as currentTime,
4106
- uM as currentTimestamp,
4107
- yi as default,
4108
- _M as del,
4109
- AI as deleteFrom,
4110
- mM as denseRank,
4111
- Qi as except,
4112
- VM as exp,
4113
- rM as extract,
4130
+ Ei as caseOf,
4131
+ Bi as caseWhen,
4132
+ oM as cast,
4133
+ zM as ceil,
4134
+ jM as coalesce,
4135
+ BM as col,
4136
+ OM as concatWs,
4137
+ MM as condition,
4138
+ GM as count,
4139
+ YM as countDistinct,
4140
+ nM as currentDate,
4141
+ bM as currentTime,
4142
+ mM as currentTimestamp,
4143
+ hi as default,
4144
+ Ci as del,
4145
+ II as deleteFrom,
4146
+ $M as denseRank,
4147
+ ii as except,
4148
+ eM as exp,
4149
+ vM as extract,
4114
4150
  YA as findAll,
4115
- jM as floor,
4151
+ VM as floor,
4116
4152
  jA as format,
4117
4153
  PA as formatWithOptions,
4118
4154
  J as func,
4119
4155
  OA as generate,
4120
- eg as getColumns,
4156
+ lg as getColumns,
4121
4157
  dA as getDialects,
4122
- Tg as getInferredType,
4158
+ jg as getInferredType,
4123
4159
  tA as getVersion,
4124
- xM as greatest,
4125
- pM as ifNull,
4126
- MI as init,
4127
- cM as initcap,
4128
- vM as insert,
4129
- Xg as insertInto,
4130
- Bi as intersect,
4131
- jg as isColumn,
4132
- dg as isFunction,
4133
- iI as isInitialized,
4134
- Pg as isLiteral,
4135
- Og as isSelect,
4136
- fM as least,
4137
- hM as length,
4138
- gM as lit,
4139
- ZM as ln,
4140
- SM as lower,
4141
- UM as ltrim,
4142
- GM as max,
4143
- $M as mergeInto,
4144
- KM as min,
4145
- QM as not,
4146
- qM as nullIf,
4147
- iM as or,
4160
+ lM as greatest,
4161
+ dM as ifNull,
4162
+ oI as init,
4163
+ qM as initcap,
4164
+ gi as insert,
4165
+ $g as insertInto,
4166
+ Mi as intersect,
4167
+ dg as isColumn,
4168
+ Zg as isFunction,
4169
+ NI as isInitialized,
4170
+ tg as isLiteral,
4171
+ Pg as isSelect,
4172
+ rM as least,
4173
+ FM as length,
4174
+ EM as lit,
4175
+ WM as ln,
4176
+ cM as lower,
4177
+ RM as ltrim,
4178
+ LM as max,
4179
+ Qi as mergeInto,
4180
+ HM as min,
4181
+ iM as not,
4182
+ PM as nullIf,
4183
+ KM as or,
4148
4184
  pA as parse,
4149
- dM as power,
4150
- nM as rank,
4151
- Vg as renameColumns,
4152
- RM as replace,
4153
- FM as reverse,
4154
- OM as round,
4155
- lM as rowNumber,
4156
- LM as rtrim,
4157
- bM as select,
4158
- zM as sign,
4159
- mg as sqlExpr,
4160
- IM as sqlNull,
4161
- tM as sqrt,
4162
- ng as star,
4163
- JM as substring,
4164
- NM as sum,
4165
- CM as table,
4185
+ xM as power,
4186
+ _M as rank,
4187
+ xg as renameColumns,
4188
+ TM as replace,
4189
+ aM as reverse,
4190
+ ZM as round,
4191
+ XM as rowNumber,
4192
+ sM as rtrim,
4193
+ Ai as select,
4194
+ uM as sign,
4195
+ vg as sqlExpr,
4196
+ DM as sqlNull,
4197
+ fM as sqrt,
4198
+ mg as star,
4199
+ pM as substring,
4200
+ SM as sum,
4201
+ wM as table,
4166
4202
  GA as transform,
4167
4203
  qA as transpile,
4168
- HM as trim,
4169
- Ii as union,
4170
- Ci as unionAll,
4171
- XM as update,
4172
- YM as upper,
4173
- oi as validate,
4174
- Mi as validateWithSchema,
4204
+ JM as trim,
4205
+ Di as union,
4206
+ wi as unionAll,
4207
+ Ii as update,
4208
+ UM as upper,
4209
+ Gi as validate,
4210
+ yi as validateWithSchema,
4175
4211
  t as walk
4176
4212
  };