@polyglot-sql/sdk 0.1.10 → 0.1.11

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,5 +1,5 @@
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 DI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, iI = async (g = {}, A) => {
2
+ const oI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, GI = async (g = {}, A) => {
3
3
  let Q;
4
4
  if (A.startsWith("data:")) {
5
5
  const C = A.replace(/^data:.*?base64,/, "");
@@ -25,10 +25,10 @@ const DI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, iI = as
25
25
  }
26
26
  return Q.instance.exports;
27
27
  };
28
- class IA {
28
+ class QA {
29
29
  __destroy_into_raw() {
30
30
  const A = this.__wbg_ptr;
31
- return this.__wbg_ptr = 0, dA.unregister(this), A;
31
+ return this.__wbg_ptr = 0, lA.unregister(this), A;
32
32
  }
33
33
  free() {
34
34
  const A = this.__destroy_into_raw();
@@ -46,7 +46,7 @@ class IA {
46
46
  */
47
47
  constructor() {
48
48
  const A = I.wasmassignmentarray_new();
49
- return this.__wbg_ptr = A >>> 0, dA.register(this, this.__wbg_ptr, this), this;
49
+ return this.__wbg_ptr = A >>> 0, lA.register(this, this.__wbg_ptr, this), this;
50
50
  }
51
51
  /**
52
52
  * Add a column = value assignment.
@@ -55,19 +55,19 @@ class IA {
55
55
  */
56
56
  push(A, Q) {
57
57
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
58
- a(Q, K), I.wasmassignmentarray_push(this.__wbg_ptr, C, B, Q.__wbg_ptr);
58
+ Y(Q, K), I.wasmassignmentarray_push(this.__wbg_ptr, C, B, Q.__wbg_ptr);
59
59
  }
60
60
  }
61
- Symbol.dispose && (IA.prototype[Symbol.dispose] = IA.prototype.free);
62
- class r {
61
+ Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
62
+ class b {
63
63
  static __wrap(A) {
64
64
  A = A >>> 0;
65
- const Q = Object.create(r.prototype);
66
- return Q.__wbg_ptr = A, aA.register(Q, Q.__wbg_ptr, Q), Q;
65
+ const Q = Object.create(b.prototype);
66
+ return Q.__wbg_ptr = A, YA.register(Q, Q.__wbg_ptr, Q), Q;
67
67
  }
68
68
  __destroy_into_raw() {
69
69
  const A = this.__wbg_ptr;
70
- return this.__wbg_ptr = 0, aA.unregister(this), A;
70
+ return this.__wbg_ptr = 0, YA.unregister(this), A;
71
71
  }
72
72
  free() {
73
73
  const A = this.__destroy_into_raw();
@@ -83,7 +83,7 @@ class r {
83
83
  I.wasmcasebuilder_build_expr(B, this.__wbg_ptr);
84
84
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
85
85
  if (C)
86
- throw h(Q);
86
+ throw H(Q);
87
87
  return K.__wrap(A);
88
88
  } finally {
89
89
  I.__wbindgen_add_to_stack_pointer(16);
@@ -94,14 +94,14 @@ class r {
94
94
  * @param {WasmExpr} result
95
95
  */
96
96
  else_(A) {
97
- a(A, K), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
97
+ Y(A, K), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
98
98
  }
99
99
  /**
100
100
  * Create a new searched CASE builder (CASE WHEN ... THEN ...).
101
101
  */
102
102
  constructor() {
103
103
  const A = I.wasmcasebuilder_new();
104
- return this.__wbg_ptr = A >>> 0, aA.register(this, this.__wbg_ptr, this), this;
104
+ return this.__wbg_ptr = A >>> 0, YA.register(this, this.__wbg_ptr, this), this;
105
105
  }
106
106
  /**
107
107
  * Generate SQL string (generic dialect).
@@ -114,7 +114,7 @@ class r {
114
114
  I.wasmcasebuilder_to_sql(M, this.__wbg_ptr);
115
115
  var C = w().getInt32(M + 0, !0), B = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = C, k = B;
116
116
  if (D)
117
- throw o = 0, k = 0, h(E);
117
+ throw o = 0, k = 0, H(E);
118
118
  return A = o, Q = k, q(o, k);
119
119
  } finally {
120
120
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
@@ -126,11 +126,11 @@ class r {
126
126
  * @param {WasmExpr} result
127
127
  */
128
128
  when(A, Q) {
129
- a(A, K), a(Q, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, Q.__wbg_ptr);
129
+ Y(A, K), Y(Q, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, Q.__wbg_ptr);
130
130
  }
131
131
  }
132
- Symbol.dispose && (r.prototype[Symbol.dispose] = r.prototype.free);
133
- class iA {
132
+ Symbol.dispose && (b.prototype[Symbol.dispose] = b.prototype.free);
133
+ class wA {
134
134
  __destroy_into_raw() {
135
135
  const A = this.__wbg_ptr;
136
136
  return this.__wbg_ptr = 0, ZA.unregister(this), A;
@@ -149,8 +149,8 @@ class iA {
149
149
  I.wasmdeletebuilder_build(B, this.__wbg_ptr);
150
150
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
151
151
  if (C)
152
- throw h(Q);
153
- return h(A);
152
+ throw H(Q);
153
+ return H(A);
154
154
  } finally {
155
155
  I.__wbindgen_add_to_stack_pointer(16);
156
156
  }
@@ -171,11 +171,11 @@ class iA {
171
171
  to_sql(A) {
172
172
  let Q, C;
173
173
  try {
174
- const J = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G;
175
- I.wasmdeletebuilder_to_sql(J, this.__wbg_ptr, y, F);
176
- var B = w().getInt32(J + 0, !0), E = w().getInt32(J + 4, !0), D = w().getInt32(J + 8, !0), o = w().getInt32(J + 12, !0), k = B, M = E;
174
+ const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
175
+ I.wasmdeletebuilder_to_sql(a, this.__wbg_ptr, y, S);
176
+ var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
177
177
  if (o)
178
- throw k = 0, M = 0, h(D);
178
+ throw k = 0, M = 0, H(D);
179
179
  return Q = k, C = M, q(k, M);
180
180
  } finally {
181
181
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
@@ -186,10 +186,10 @@ class iA {
186
186
  * @param {WasmExpr} condition
187
187
  */
188
188
  where_expr(A) {
189
- a(A, K), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
189
+ Y(A, K), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
190
190
  }
191
191
  }
192
- Symbol.dispose && (iA.prototype[Symbol.dispose] = iA.prototype.free);
192
+ Symbol.dispose && (wA.prototype[Symbol.dispose] = wA.prototype.free);
193
193
  class K {
194
194
  static __wrap(A) {
195
195
  A = A >>> 0;
@@ -210,7 +210,7 @@ class K {
210
210
  * @returns {WasmExpr}
211
211
  */
212
212
  add(A) {
213
- a(A, K);
213
+ Y(A, K);
214
214
  const Q = I.wasmexpr_add(this.__wbg_ptr, A.__wbg_ptr);
215
215
  return K.__wrap(Q);
216
216
  }
@@ -229,7 +229,7 @@ class K {
229
229
  * @returns {WasmExpr}
230
230
  */
231
231
  and(A) {
232
- a(A, K);
232
+ Y(A, K);
233
233
  const Q = I.wasmexpr_and(this.__wbg_ptr, A.__wbg_ptr);
234
234
  return K.__wrap(Q);
235
235
  }
@@ -248,7 +248,7 @@ class K {
248
248
  * @returns {WasmExpr}
249
249
  */
250
250
  between(A, Q) {
251
- a(A, K), a(Q, K);
251
+ Y(A, K), Y(Q, K);
252
252
  const C = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, Q.__wbg_ptr);
253
253
  return K.__wrap(C);
254
254
  }
@@ -275,7 +275,7 @@ class K {
275
275
  * @returns {WasmExpr}
276
276
  */
277
277
  div(A) {
278
- a(A, K);
278
+ Y(A, K);
279
279
  const Q = I.wasmexpr_div(this.__wbg_ptr, A.__wbg_ptr);
280
280
  return K.__wrap(Q);
281
281
  }
@@ -285,7 +285,7 @@ class K {
285
285
  * @returns {WasmExpr}
286
286
  */
287
287
  eq(A) {
288
- a(A, K);
288
+ Y(A, K);
289
289
  const Q = I.wasmexpr_eq(this.__wbg_ptr, A.__wbg_ptr);
290
290
  return K.__wrap(Q);
291
291
  }
@@ -295,7 +295,7 @@ class K {
295
295
  * @returns {WasmExpr}
296
296
  */
297
297
  gt(A) {
298
- a(A, K);
298
+ Y(A, K);
299
299
  const Q = I.wasmexpr_gt(this.__wbg_ptr, A.__wbg_ptr);
300
300
  return K.__wrap(Q);
301
301
  }
@@ -305,7 +305,7 @@ class K {
305
305
  * @returns {WasmExpr}
306
306
  */
307
307
  gte(A) {
308
- a(A, K);
308
+ Y(A, K);
309
309
  const Q = I.wasmexpr_gte(this.__wbg_ptr, A.__wbg_ptr);
310
310
  return K.__wrap(Q);
311
311
  }
@@ -315,7 +315,7 @@ class K {
315
315
  * @returns {WasmExpr}
316
316
  */
317
317
  ilike(A) {
318
- a(A, K);
318
+ Y(A, K);
319
319
  const Q = I.wasmexpr_ilike(this.__wbg_ptr, A.__wbg_ptr);
320
320
  return K.__wrap(Q);
321
321
  }
@@ -325,7 +325,7 @@ class K {
325
325
  * @returns {WasmExpr}
326
326
  */
327
327
  in_list(A) {
328
- a(A, T);
328
+ Y(A, O);
329
329
  const Q = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
330
330
  return K.__wrap(Q);
331
331
  }
@@ -351,7 +351,7 @@ class K {
351
351
  * @returns {WasmExpr}
352
352
  */
353
353
  like(A) {
354
- a(A, K);
354
+ Y(A, K);
355
355
  const Q = I.wasmexpr_like(this.__wbg_ptr, A.__wbg_ptr);
356
356
  return K.__wrap(Q);
357
357
  }
@@ -361,7 +361,7 @@ class K {
361
361
  * @returns {WasmExpr}
362
362
  */
363
363
  lt(A) {
364
- a(A, K);
364
+ Y(A, K);
365
365
  const Q = I.wasmexpr_lt(this.__wbg_ptr, A.__wbg_ptr);
366
366
  return K.__wrap(Q);
367
367
  }
@@ -371,7 +371,7 @@ class K {
371
371
  * @returns {WasmExpr}
372
372
  */
373
373
  lte(A) {
374
- a(A, K);
374
+ Y(A, K);
375
375
  const Q = I.wasmexpr_lte(this.__wbg_ptr, A.__wbg_ptr);
376
376
  return K.__wrap(Q);
377
377
  }
@@ -381,7 +381,7 @@ class K {
381
381
  * @returns {WasmExpr}
382
382
  */
383
383
  mul(A) {
384
- a(A, K);
384
+ Y(A, K);
385
385
  const Q = I.wasmexpr_mul(this.__wbg_ptr, A.__wbg_ptr);
386
386
  return K.__wrap(Q);
387
387
  }
@@ -391,7 +391,7 @@ class K {
391
391
  * @returns {WasmExpr}
392
392
  */
393
393
  neq(A) {
394
- a(A, K);
394
+ Y(A, K);
395
395
  const Q = I.wasmexpr_neq(this.__wbg_ptr, A.__wbg_ptr);
396
396
  return K.__wrap(Q);
397
397
  }
@@ -409,7 +409,7 @@ class K {
409
409
  * @returns {WasmExpr}
410
410
  */
411
411
  not_in(A) {
412
- a(A, T);
412
+ Y(A, O);
413
413
  const Q = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
414
414
  return K.__wrap(Q);
415
415
  }
@@ -419,7 +419,7 @@ class K {
419
419
  * @returns {WasmExpr}
420
420
  */
421
421
  or(A) {
422
- a(A, K);
422
+ Y(A, K);
423
423
  const Q = I.wasmexpr_or(this.__wbg_ptr, A.__wbg_ptr);
424
424
  return K.__wrap(Q);
425
425
  }
@@ -429,7 +429,7 @@ class K {
429
429
  * @returns {WasmExpr}
430
430
  */
431
431
  rlike(A) {
432
- a(A, K);
432
+ Y(A, K);
433
433
  const Q = I.wasmexpr_rlike(this.__wbg_ptr, A.__wbg_ptr);
434
434
  return K.__wrap(Q);
435
435
  }
@@ -439,7 +439,7 @@ class K {
439
439
  * @returns {WasmExpr}
440
440
  */
441
441
  sub(A) {
442
- a(A, K);
442
+ Y(A, K);
443
443
  const Q = I.wasmexpr_sub(this.__wbg_ptr, A.__wbg_ptr);
444
444
  return K.__wrap(Q);
445
445
  }
@@ -453,8 +453,8 @@ class K {
453
453
  I.wasmexpr_to_json(B, this.__wbg_ptr);
454
454
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
455
455
  if (C)
456
- throw h(Q);
457
- return h(A);
456
+ throw H(Q);
457
+ return H(A);
458
458
  } finally {
459
459
  I.__wbindgen_add_to_stack_pointer(16);
460
460
  }
@@ -470,7 +470,7 @@ class K {
470
470
  I.wasmexpr_to_sql(M, this.__wbg_ptr);
471
471
  var C = w().getInt32(M + 0, !0), B = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = C, k = B;
472
472
  if (D)
473
- throw o = 0, k = 0, h(E);
473
+ throw o = 0, k = 0, H(E);
474
474
  return A = o, Q = k, q(o, k);
475
475
  } finally {
476
476
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
@@ -482,16 +482,16 @@ class K {
482
482
  * @returns {WasmExpr}
483
483
  */
484
484
  xor(A) {
485
- a(A, K);
485
+ Y(A, K);
486
486
  const Q = I.wasmexpr_xor(this.__wbg_ptr, A.__wbg_ptr);
487
487
  return K.__wrap(Q);
488
488
  }
489
489
  }
490
490
  Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
491
- class T {
491
+ class O {
492
492
  __destroy_into_raw() {
493
493
  const A = this.__wbg_ptr;
494
- return this.__wbg_ptr = 0, VA.unregister(this), A;
494
+ return this.__wbg_ptr = 0, mA.unregister(this), A;
495
495
  }
496
496
  free() {
497
497
  const A = this.__destroy_into_raw();
@@ -509,14 +509,14 @@ class T {
509
509
  */
510
510
  constructor() {
511
511
  const A = I.wasmassignmentarray_new();
512
- return this.__wbg_ptr = A >>> 0, VA.register(this, this.__wbg_ptr, this), this;
512
+ return this.__wbg_ptr = A >>> 0, mA.register(this, this.__wbg_ptr, this), this;
513
513
  }
514
514
  /**
515
515
  * Push an expression.
516
516
  * @param {WasmExpr} expr
517
517
  */
518
518
  push(A) {
519
- a(A, K), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
519
+ Y(A, K), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
520
520
  }
521
521
  /**
522
522
  * Push a column reference by name.
@@ -555,11 +555,11 @@ class T {
555
555
  I.wasmexprarray_push_str(this.__wbg_ptr, Q, C);
556
556
  }
557
557
  }
558
- Symbol.dispose && (T.prototype[Symbol.dispose] = T.prototype.free);
559
- class wA {
558
+ Symbol.dispose && (O.prototype[Symbol.dispose] = O.prototype.free);
559
+ class oA {
560
560
  __destroy_into_raw() {
561
561
  const A = this.__wbg_ptr;
562
- return this.__wbg_ptr = 0, mA.unregister(this), A;
562
+ return this.__wbg_ptr = 0, VA.unregister(this), A;
563
563
  }
564
564
  free() {
565
565
  const A = this.__destroy_into_raw();
@@ -575,8 +575,8 @@ class wA {
575
575
  I.wasminsertbuilder_build(B, this.__wbg_ptr);
576
576
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
577
577
  if (C)
578
- throw h(Q);
579
- return h(A);
578
+ throw H(Q);
579
+ return H(A);
580
580
  } finally {
581
581
  I.__wbindgen_add_to_stack_pointer(16);
582
582
  }
@@ -586,7 +586,7 @@ class wA {
586
586
  * @param {string[]} cols
587
587
  */
588
588
  columns(A) {
589
- const Q = hA(A, I.__wbindgen_export), C = G;
589
+ const Q = HA(A, I.__wbindgen_export), C = G;
590
590
  I.wasminsertbuilder_columns(this.__wbg_ptr, Q, C);
591
591
  }
592
592
  /**
@@ -595,7 +595,7 @@ class wA {
595
595
  */
596
596
  constructor(A) {
597
597
  const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasminsertbuilder_new(Q, C);
598
- return this.__wbg_ptr = B >>> 0, mA.register(this, this.__wbg_ptr, this), this;
598
+ return this.__wbg_ptr = B >>> 0, VA.register(this, this.__wbg_ptr, this), this;
599
599
  }
600
600
  /**
601
601
  * Set the source query for INSERT ... SELECT.
@@ -604,10 +604,10 @@ class wA {
604
604
  query(A) {
605
605
  try {
606
606
  const B = I.__wbindgen_add_to_stack_pointer(-16);
607
- a(A, j), I.wasminsertbuilder_query(B, this.__wbg_ptr, A.__wbg_ptr);
607
+ Y(A, t), I.wasminsertbuilder_query(B, this.__wbg_ptr, A.__wbg_ptr);
608
608
  var Q = w().getInt32(B + 0, !0), C = w().getInt32(B + 4, !0);
609
609
  if (C)
610
- throw h(Q);
610
+ throw H(Q);
611
611
  } finally {
612
612
  I.__wbindgen_add_to_stack_pointer(16);
613
613
  }
@@ -620,11 +620,11 @@ class wA {
620
620
  to_sql(A) {
621
621
  let Q, C;
622
622
  try {
623
- const J = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G;
624
- I.wasminsertbuilder_to_sql(J, this.__wbg_ptr, y, F);
625
- var B = w().getInt32(J + 0, !0), E = w().getInt32(J + 4, !0), D = w().getInt32(J + 8, !0), o = w().getInt32(J + 12, !0), k = B, M = E;
623
+ const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
624
+ I.wasminsertbuilder_to_sql(a, this.__wbg_ptr, y, S);
625
+ var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
626
626
  if (o)
627
- throw k = 0, M = 0, h(D);
627
+ throw k = 0, M = 0, H(D);
628
628
  return Q = k, C = M, q(k, M);
629
629
  } finally {
630
630
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
@@ -635,11 +635,11 @@ class wA {
635
635
  * @param {WasmExprArray} vals
636
636
  */
637
637
  values(A) {
638
- a(A, T), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
638
+ Y(A, O), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
639
639
  }
640
640
  }
641
- Symbol.dispose && (wA.prototype[Symbol.dispose] = wA.prototype.free);
642
- class oA {
641
+ Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
642
+ class GA {
643
643
  __destroy_into_raw() {
644
644
  const A = this.__wbg_ptr;
645
645
  return this.__wbg_ptr = 0, PA.unregister(this), A;
@@ -658,8 +658,8 @@ class oA {
658
658
  I.wasmmergebuilder_build(B, this.__wbg_ptr);
659
659
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
660
660
  if (C)
661
- throw h(Q);
662
- return h(A);
661
+ throw H(Q);
662
+ return H(A);
663
663
  } finally {
664
664
  I.__wbindgen_add_to_stack_pointer(16);
665
665
  }
@@ -680,11 +680,11 @@ class oA {
680
680
  to_sql(A) {
681
681
  let Q, C;
682
682
  try {
683
- const J = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G;
684
- I.wasmmergebuilder_to_sql(J, this.__wbg_ptr, y, F);
685
- var B = w().getInt32(J + 0, !0), E = w().getInt32(J + 4, !0), D = w().getInt32(J + 8, !0), o = w().getInt32(J + 12, !0), k = B, M = E;
683
+ const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
684
+ I.wasmmergebuilder_to_sql(a, this.__wbg_ptr, y, S);
685
+ var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
686
686
  if (o)
687
- throw k = 0, M = 0, h(D);
687
+ throw k = 0, M = 0, H(D);
688
688
  return Q = k, C = M, q(k, M);
689
689
  } finally {
690
690
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
@@ -697,7 +697,7 @@ class oA {
697
697
  */
698
698
  using(A, Q) {
699
699
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
700
- a(Q, K), I.wasmmergebuilder_using(this.__wbg_ptr, C, B, Q.__wbg_ptr);
700
+ Y(Q, K), I.wasmmergebuilder_using(this.__wbg_ptr, C, B, Q.__wbg_ptr);
701
701
  }
702
702
  /**
703
703
  * Add a WHEN MATCHED THEN DELETE clause.
@@ -710,7 +710,7 @@ class oA {
710
710
  * @param {WasmAssignmentArray} assignments
711
711
  */
712
712
  when_matched_update(A) {
713
- a(A, IA), I.wasmmergebuilder_when_matched_update(this.__wbg_ptr, A.__wbg_ptr);
713
+ Y(A, QA), I.wasmmergebuilder_when_matched_update(this.__wbg_ptr, A.__wbg_ptr);
714
714
  }
715
715
  /**
716
716
  * Add a WHEN NOT MATCHED THEN INSERT clause.
@@ -718,12 +718,12 @@ class oA {
718
718
  * @param {WasmExprArray} values
719
719
  */
720
720
  when_not_matched_insert(A, Q) {
721
- const C = hA(A, I.__wbindgen_export), B = G;
722
- a(Q, T), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, C, B, Q.__wbg_ptr);
721
+ const C = HA(A, I.__wbindgen_export), B = G;
722
+ Y(Q, O), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, C, B, Q.__wbg_ptr);
723
723
  }
724
724
  }
725
- Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
726
- class j {
725
+ Symbol.dispose && (GA.prototype[Symbol.dispose] = GA.prototype.free);
726
+ class t {
727
727
  __destroy_into_raw() {
728
728
  const A = this.__wbg_ptr;
729
729
  return this.__wbg_ptr = 0, eA.unregister(this), A;
@@ -742,8 +742,8 @@ class j {
742
742
  I.wasmselectbuilder_build(B, this.__wbg_ptr);
743
743
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
744
744
  if (C)
745
- throw h(Q);
746
- return h(A);
745
+ throw H(Q);
746
+ return H(A);
747
747
  } finally {
748
748
  I.__wbindgen_add_to_stack_pointer(16);
749
749
  }
@@ -767,8 +767,8 @@ class j {
767
767
  I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, o);
768
768
  var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
769
769
  if (B)
770
- throw h(C);
771
- return h(Q);
770
+ throw H(C);
771
+ return H(Q);
772
772
  } finally {
773
773
  I.__wbindgen_add_to_stack_pointer(16);
774
774
  }
@@ -782,12 +782,12 @@ class j {
782
782
  ctas_sql(A, Q) {
783
783
  let C, B;
784
784
  try {
785
- const y = I.__wbindgen_add_to_stack_pointer(-16), F = N(A, I.__wbindgen_export, I.__wbindgen_export2), p = G, l = N(Q, I.__wbindgen_export, I.__wbindgen_export2), u = G;
786
- I.wasmselectbuilder_ctas_sql(y, this.__wbg_ptr, F, p, l, u);
787
- var E = w().getInt32(y + 0, !0), D = w().getInt32(y + 4, !0), o = w().getInt32(y + 8, !0), k = w().getInt32(y + 12, !0), M = E, J = D;
785
+ const y = I.__wbindgen_add_to_stack_pointer(-16), S = N(A, I.__wbindgen_export, I.__wbindgen_export2), p = G, j = N(Q, I.__wbindgen_export, I.__wbindgen_export2), e = G;
786
+ I.wasmselectbuilder_ctas_sql(y, this.__wbg_ptr, S, p, j, e);
787
+ var E = w().getInt32(y + 0, !0), D = w().getInt32(y + 4, !0), o = w().getInt32(y + 8, !0), k = w().getInt32(y + 12, !0), M = E, a = D;
788
788
  if (k)
789
- throw M = 0, J = 0, h(o);
790
- return C = M, B = J, q(M, J);
789
+ throw M = 0, a = 0, H(o);
790
+ return C = M, B = a, q(M, a);
791
791
  } finally {
792
792
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
793
793
  }
@@ -806,10 +806,10 @@ class j {
806
806
  except_(A) {
807
807
  try {
808
808
  const E = I.__wbindgen_add_to_stack_pointer(-16);
809
- a(A, j), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
809
+ Y(A, t), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
810
810
  var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
811
811
  if (B)
812
- throw h(C);
812
+ throw H(C);
813
813
  return z.__wrap(Q);
814
814
  } finally {
815
815
  I.__wbindgen_add_to_stack_pointer(16);
@@ -834,21 +834,21 @@ class j {
834
834
  * @param {WasmExpr} expr
835
835
  */
836
836
  from_expr(A) {
837
- a(A, K), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
837
+ Y(A, K), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
838
838
  }
839
839
  /**
840
840
  * Set the GROUP BY clause.
841
841
  * @param {WasmExprArray} cols
842
842
  */
843
843
  group_by_cols(A) {
844
- a(A, T), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
844
+ Y(A, O), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
845
845
  }
846
846
  /**
847
847
  * Set the HAVING clause.
848
848
  * @param {WasmExpr} condition
849
849
  */
850
850
  having(A) {
851
- a(A, K), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
851
+ Y(A, K), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
852
852
  }
853
853
  /**
854
854
  * Add a query hint.
@@ -866,10 +866,10 @@ class j {
866
866
  intersect(A) {
867
867
  try {
868
868
  const E = I.__wbindgen_add_to_stack_pointer(-16);
869
- a(A, j), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
869
+ Y(A, t), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
870
870
  var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
871
871
  if (B)
872
- throw h(C);
872
+ throw H(C);
873
873
  return z.__wrap(Q);
874
874
  } finally {
875
875
  I.__wbindgen_add_to_stack_pointer(16);
@@ -882,7 +882,7 @@ class j {
882
882
  */
883
883
  join(A, Q) {
884
884
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
885
- a(Q, K), I.wasmselectbuilder_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
885
+ Y(Q, K), I.wasmselectbuilder_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
886
886
  }
887
887
  /**
888
888
  * Add a LATERAL VIEW clause (Hive/Spark).
@@ -891,8 +891,8 @@ class j {
891
891
  * @param {string[]} col_aliases
892
892
  */
893
893
  lateral_view(A, Q, C) {
894
- a(A, K);
895
- const B = N(Q, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = hA(C, I.__wbindgen_export), o = G;
894
+ Y(A, K);
895
+ const B = N(Q, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = HA(C, I.__wbindgen_export), o = G;
896
896
  I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, B, E, D, o);
897
897
  }
898
898
  /**
@@ -902,7 +902,7 @@ class j {
902
902
  */
903
903
  left_join(A, Q) {
904
904
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
905
- a(Q, K), I.wasmselectbuilder_left_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
905
+ Y(Q, K), I.wasmselectbuilder_left_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
906
906
  }
907
907
  /**
908
908
  * Set the LIMIT clause.
@@ -930,14 +930,14 @@ class j {
930
930
  * @param {WasmExprArray} exprs
931
931
  */
932
932
  order_by_exprs(A) {
933
- a(A, T), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
933
+ Y(A, O), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
934
934
  }
935
935
  /**
936
936
  * Set the QUALIFY clause.
937
937
  * @param {WasmExpr} condition
938
938
  */
939
939
  qualify(A) {
940
- a(A, K), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
940
+ Y(A, K), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
941
941
  }
942
942
  /**
943
943
  * Add a RIGHT JOIN.
@@ -946,7 +946,7 @@ class j {
946
946
  */
947
947
  right_join(A, Q) {
948
948
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
949
- a(Q, K), I.wasmselectbuilder_right_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
949
+ Y(Q, K), I.wasmselectbuilder_right_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
950
950
  }
951
951
  /**
952
952
  * Add a column by name to the SELECT list.
@@ -961,14 +961,14 @@ class j {
961
961
  * @param {WasmExpr} expr
962
962
  */
963
963
  select_expr(A) {
964
- a(A, K), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
964
+ Y(A, K), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
965
965
  }
966
966
  /**
967
967
  * Add multiple expressions to the SELECT list.
968
968
  * @param {WasmExprArray} exprs
969
969
  */
970
970
  select_exprs(A) {
971
- a(A, T), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
971
+ Y(A, O), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
972
972
  }
973
973
  /**
974
974
  * Add a star (*) to the SELECT list.
@@ -981,7 +981,7 @@ class j {
981
981
  * @param {WasmExprArray} exprs
982
982
  */
983
983
  sort_by_exprs(A) {
984
- a(A, T), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
984
+ Y(A, O), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
985
985
  }
986
986
  /**
987
987
  * Generate SQL string for the given dialect.
@@ -991,11 +991,11 @@ class j {
991
991
  to_sql(A) {
992
992
  let Q, C;
993
993
  try {
994
- const J = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G;
995
- I.wasmselectbuilder_to_sql(J, this.__wbg_ptr, y, F);
996
- var B = w().getInt32(J + 0, !0), E = w().getInt32(J + 4, !0), D = w().getInt32(J + 8, !0), o = w().getInt32(J + 12, !0), k = B, M = E;
994
+ const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
995
+ I.wasmselectbuilder_to_sql(a, this.__wbg_ptr, y, S);
996
+ var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
997
997
  if (o)
998
- throw k = 0, M = 0, h(D);
998
+ throw k = 0, M = 0, H(D);
999
999
  return Q = k, C = M, q(k, M);
1000
1000
  } finally {
1001
1001
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
@@ -1009,10 +1009,10 @@ class j {
1009
1009
  union(A) {
1010
1010
  try {
1011
1011
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1012
- a(A, j), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1012
+ Y(A, t), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1013
1013
  var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
1014
1014
  if (B)
1015
- throw h(C);
1015
+ throw H(C);
1016
1016
  return z.__wrap(Q);
1017
1017
  } finally {
1018
1018
  I.__wbindgen_add_to_stack_pointer(16);
@@ -1026,10 +1026,10 @@ class j {
1026
1026
  union_all(A) {
1027
1027
  try {
1028
1028
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1029
- a(A, j), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1029
+ Y(A, t), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1030
1030
  var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
1031
1031
  if (B)
1032
- throw h(C);
1032
+ throw H(C);
1033
1033
  return z.__wrap(Q);
1034
1034
  } finally {
1035
1035
  I.__wbindgen_add_to_stack_pointer(16);
@@ -1040,7 +1040,7 @@ class j {
1040
1040
  * @param {WasmExpr} condition
1041
1041
  */
1042
1042
  where_expr(A) {
1043
- a(A, K), I.wasmselectbuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1043
+ Y(A, K), 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.
@@ -1058,16 +1058,16 @@ class j {
1058
1058
  window(A, Q) {
1059
1059
  try {
1060
1060
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = G;
1061
- a(Q, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, o, Q.__wbg_ptr);
1061
+ Y(Q, CA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, o, Q.__wbg_ptr);
1062
1062
  var C = w().getInt32(E + 0, !0), B = w().getInt32(E + 4, !0);
1063
1063
  if (B)
1064
- throw h(C);
1064
+ throw H(C);
1065
1065
  } finally {
1066
1066
  I.__wbindgen_add_to_stack_pointer(16);
1067
1067
  }
1068
1068
  }
1069
1069
  }
1070
- Symbol.dispose && (j.prototype[Symbol.dispose] = j.prototype.free);
1070
+ Symbol.dispose && (t.prototype[Symbol.dispose] = t.prototype.free);
1071
1071
  class z {
1072
1072
  static __wrap(A) {
1073
1073
  A = A >>> 0;
@@ -1092,8 +1092,8 @@ class z {
1092
1092
  I.wasmsetopbuilder_build(B, this.__wbg_ptr);
1093
1093
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
1094
1094
  if (C)
1095
- throw h(Q);
1096
- return h(A);
1095
+ throw H(Q);
1096
+ return H(A);
1097
1097
  } finally {
1098
1098
  I.__wbindgen_add_to_stack_pointer(16);
1099
1099
  }
@@ -1117,7 +1117,7 @@ class z {
1117
1117
  * @param {WasmExprArray} exprs
1118
1118
  */
1119
1119
  order_by_exprs(A) {
1120
- a(A, T), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
1120
+ Y(A, O), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
1121
1121
  }
1122
1122
  /**
1123
1123
  * Generate SQL string for the given dialect.
@@ -1127,11 +1127,11 @@ class z {
1127
1127
  to_sql(A) {
1128
1128
  let Q, C;
1129
1129
  try {
1130
- const J = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G;
1131
- I.wasmsetopbuilder_to_sql(J, this.__wbg_ptr, y, F);
1132
- var B = w().getInt32(J + 0, !0), E = w().getInt32(J + 4, !0), D = w().getInt32(J + 8, !0), o = w().getInt32(J + 12, !0), k = B, M = E;
1130
+ const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
1131
+ I.wasmsetopbuilder_to_sql(a, this.__wbg_ptr, y, S);
1132
+ var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
1133
1133
  if (o)
1134
- throw k = 0, M = 0, h(D);
1134
+ throw k = 0, M = 0, H(D);
1135
1135
  return Q = k, C = M, q(k, M);
1136
1136
  } finally {
1137
1137
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
@@ -1139,10 +1139,10 @@ class z {
1139
1139
  }
1140
1140
  }
1141
1141
  Symbol.dispose && (z.prototype[Symbol.dispose] = z.prototype.free);
1142
- class GA {
1142
+ class NA {
1143
1143
  __destroy_into_raw() {
1144
1144
  const A = this.__wbg_ptr;
1145
- return this.__wbg_ptr = 0, WA.unregister(this), A;
1145
+ return this.__wbg_ptr = 0, bA.unregister(this), A;
1146
1146
  }
1147
1147
  free() {
1148
1148
  const A = this.__destroy_into_raw();
@@ -1158,8 +1158,8 @@ class GA {
1158
1158
  I.wasmupdatebuilder_build(B, this.__wbg_ptr);
1159
1159
  var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
1160
1160
  if (C)
1161
- throw h(Q);
1162
- return h(A);
1161
+ throw H(Q);
1162
+ return H(A);
1163
1163
  } finally {
1164
1164
  I.__wbindgen_add_to_stack_pointer(16);
1165
1165
  }
@@ -1178,7 +1178,7 @@ class GA {
1178
1178
  */
1179
1179
  constructor(A) {
1180
1180
  const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasmupdatebuilder_new(Q, C);
1181
- return this.__wbg_ptr = B >>> 0, WA.register(this, this.__wbg_ptr, this), this;
1181
+ return this.__wbg_ptr = B >>> 0, bA.register(this, this.__wbg_ptr, this), this;
1182
1182
  }
1183
1183
  /**
1184
1184
  * Add a SET column = value assignment.
@@ -1187,7 +1187,7 @@ class GA {
1187
1187
  */
1188
1188
  set(A, Q) {
1189
1189
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
1190
- a(Q, K), I.wasmupdatebuilder_set(this.__wbg_ptr, C, B, Q.__wbg_ptr);
1190
+ Y(Q, K), I.wasmupdatebuilder_set(this.__wbg_ptr, C, B, Q.__wbg_ptr);
1191
1191
  }
1192
1192
  /**
1193
1193
  * Generate SQL string for the given dialect.
@@ -1197,11 +1197,11 @@ class GA {
1197
1197
  to_sql(A) {
1198
1198
  let Q, C;
1199
1199
  try {
1200
- const J = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G;
1201
- I.wasmupdatebuilder_to_sql(J, this.__wbg_ptr, y, F);
1202
- var B = w().getInt32(J + 0, !0), E = w().getInt32(J + 4, !0), D = w().getInt32(J + 8, !0), o = w().getInt32(J + 12, !0), k = B, M = E;
1200
+ const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
1201
+ I.wasmupdatebuilder_to_sql(a, this.__wbg_ptr, y, S);
1202
+ var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
1203
1203
  if (o)
1204
- throw k = 0, M = 0, h(D);
1204
+ throw k = 0, M = 0, H(D);
1205
1205
  return Q = k, C = M, q(k, M);
1206
1206
  } finally {
1207
1207
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
@@ -1212,14 +1212,14 @@ class GA {
1212
1212
  * @param {WasmExpr} condition
1213
1213
  */
1214
1214
  where_expr(A) {
1215
- a(A, K), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1215
+ Y(A, K), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1216
1216
  }
1217
1217
  }
1218
- Symbol.dispose && (GA.prototype[Symbol.dispose] = GA.prototype.free);
1219
- class QA {
1218
+ Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
1219
+ class CA {
1220
1220
  __destroy_into_raw() {
1221
1221
  const A = this.__wbg_ptr;
1222
- return this.__wbg_ptr = 0, bA.unregister(this), A;
1222
+ return this.__wbg_ptr = 0, fA.unregister(this), A;
1223
1223
  }
1224
1224
  free() {
1225
1225
  const A = this.__destroy_into_raw();
@@ -1230,36 +1230,36 @@ class QA {
1230
1230
  */
1231
1231
  constructor() {
1232
1232
  const A = I.wasmwindowdefbuilder_new();
1233
- return this.__wbg_ptr = A >>> 0, bA.register(this, this.__wbg_ptr, this), this;
1233
+ return this.__wbg_ptr = A >>> 0, fA.register(this, this.__wbg_ptr, this), this;
1234
1234
  }
1235
1235
  /**
1236
1236
  * Set the ORDER BY expressions.
1237
1237
  * @param {WasmExprArray} exprs
1238
1238
  */
1239
1239
  order_by(A) {
1240
- a(A, T), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
1240
+ Y(A, O), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
1241
1241
  }
1242
1242
  /**
1243
1243
  * Set the PARTITION BY expressions.
1244
1244
  * @param {WasmExprArray} exprs
1245
1245
  */
1246
1246
  partition_by(A) {
1247
- a(A, T), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
1247
+ Y(A, O), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
1248
1248
  }
1249
1249
  }
1250
- Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
1251
- function fA(g, A, Q) {
1250
+ Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
1251
+ function vA(g, A, Q) {
1252
1252
  let C, B;
1253
1253
  try {
1254
- const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G;
1255
- I.ast_add_where(o, k, M, J, y, Q);
1254
+ const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G;
1255
+ I.ast_add_where(o, k, M, a, y, Q);
1256
1256
  var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
1257
1257
  return C = E, B = D, q(E, D);
1258
1258
  } finally {
1259
1259
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1260
1260
  }
1261
1261
  }
1262
- function uA(g) {
1262
+ function XA(g) {
1263
1263
  let A, Q;
1264
1264
  try {
1265
1265
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
@@ -1270,7 +1270,7 @@ function uA(g) {
1270
1270
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
1271
1271
  }
1272
1272
  }
1273
- function nA(g) {
1273
+ function uA(g) {
1274
1274
  let A, Q;
1275
1275
  try {
1276
1276
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
@@ -1281,7 +1281,7 @@ function nA(g) {
1281
1281
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
1282
1282
  }
1283
1283
  }
1284
- function XA(g) {
1284
+ function nA(g) {
1285
1285
  let A, Q;
1286
1286
  try {
1287
1287
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
@@ -1350,8 +1350,8 @@ function Ig(g) {
1350
1350
  function Qg(g, A) {
1351
1351
  let Q, C;
1352
1352
  try {
1353
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1354
- I.ast_qualify_columns(D, o, k, M, J);
1353
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1354
+ I.ast_qualify_columns(D, o, k, M, a);
1355
1355
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1356
1356
  return Q = B, C = E, q(B, E);
1357
1357
  } finally {
@@ -1372,8 +1372,8 @@ function Cg(g) {
1372
1372
  function Bg(g, A) {
1373
1373
  let Q, C;
1374
1374
  try {
1375
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1376
- I.ast_rename_columns(D, o, k, M, J);
1375
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1376
+ I.ast_rename_columns(D, o, k, M, a);
1377
1377
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1378
1378
  return Q = B, C = E, q(B, E);
1379
1379
  } finally {
@@ -1383,8 +1383,8 @@ function Bg(g, A) {
1383
1383
  function Eg(g, A) {
1384
1384
  let Q, C;
1385
1385
  try {
1386
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1387
- I.ast_rename_tables(D, o, k, M, J);
1386
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1387
+ I.ast_rename_tables(D, o, k, M, a);
1388
1388
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1389
1389
  return Q = B, C = E, q(B, E);
1390
1390
  } finally {
@@ -1416,60 +1416,60 @@ function ig(g, A) {
1416
1416
  function wg(g, A, Q, C, B, E) {
1417
1417
  let D, o;
1418
1418
  try {
1419
- const J = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), F = G, p = N(A, I.__wbindgen_export, I.__wbindgen_export2), l = G, u = N(Q, I.__wbindgen_export, I.__wbindgen_export2), YA = G;
1420
- I.diff_sql(J, y, F, p, l, u, YA, C, B, E);
1421
- var k = w().getInt32(J + 0, !0), M = w().getInt32(J + 4, !0);
1419
+ const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), S = G, p = N(A, I.__wbindgen_export, I.__wbindgen_export2), j = G, e = N(Q, I.__wbindgen_export, I.__wbindgen_export2), u = G;
1420
+ I.diff_sql(a, y, S, p, j, e, u, C, B, E);
1421
+ var k = w().getInt32(a + 0, !0), M = w().getInt32(a + 4, !0);
1422
1422
  return D = k, o = M, q(k, M);
1423
1423
  } finally {
1424
1424
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, o, 1);
1425
1425
  }
1426
1426
  }
1427
- function wI(g, A) {
1427
+ function NI(g, A) {
1428
1428
  let Q, C;
1429
1429
  try {
1430
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1431
- I.format_sql(D, o, k, M, J);
1430
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1431
+ I.format_sql(D, o, k, M, a);
1432
1432
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1433
1433
  return Q = B, C = E, q(B, E);
1434
1434
  } finally {
1435
1435
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
1436
1436
  }
1437
1437
  }
1438
- function oI(g, A) {
1438
+ function kI(g, A) {
1439
1439
  const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.format_sql_value(Q, C, B, E);
1440
- return h(D);
1440
+ return H(D);
1441
1441
  }
1442
- function GI(g, A, Q) {
1442
+ function MI(g, A, Q) {
1443
1443
  let C, B;
1444
1444
  try {
1445
- const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, F = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1446
- I.format_sql_with_options(o, k, M, J, y, F, p);
1445
+ const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1446
+ I.format_sql_with_options(o, k, M, a, y, S, p);
1447
1447
  var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
1448
1448
  return C = E, B = D, q(E, D);
1449
1449
  } finally {
1450
1450
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1451
1451
  }
1452
1452
  }
1453
- function NI(g, A, Q) {
1454
- const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = I.format_sql_with_options_value(C, B, E, D, S(Q));
1455
- return h(o);
1453
+ function KI(g, A, Q) {
1454
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = I.format_sql_with_options_value(C, B, E, D, F(Q));
1455
+ return H(o);
1456
1456
  }
1457
- function kI(g, A) {
1457
+ function aI(g, A) {
1458
1458
  let Q, C;
1459
1459
  try {
1460
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1461
- I.generate(D, o, k, M, J);
1460
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1461
+ I.generate(D, o, k, M, a);
1462
1462
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1463
1463
  return Q = B, C = E, q(B, E);
1464
1464
  } finally {
1465
1465
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
1466
1466
  }
1467
1467
  }
1468
- function MI(g, A) {
1469
- const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.generate_value(S(g), Q, C);
1470
- return h(B);
1468
+ function JI(g, A) {
1469
+ const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.generate_value(F(g), Q, C);
1470
+ return H(B);
1471
1471
  }
1472
- function KI() {
1472
+ function YI() {
1473
1473
  let g, A;
1474
1474
  try {
1475
1475
  const B = I.__wbindgen_add_to_stack_pointer(-16);
@@ -1480,122 +1480,133 @@ function KI() {
1480
1480
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1481
1481
  }
1482
1482
  }
1483
- function JI() {
1483
+ function yI() {
1484
1484
  const g = I.get_dialects_value();
1485
- return h(g);
1485
+ return H(g);
1486
1486
  }
1487
1487
  function og(g, A, Q, C) {
1488
1488
  let B, E;
1489
1489
  try {
1490
- const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), J = G, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G, p = N(Q, I.__wbindgen_export, I.__wbindgen_export2), l = G;
1491
- I.lineage_sql(k, M, J, y, F, p, l, C);
1490
+ const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), a = G, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G, p = N(Q, I.__wbindgen_export, I.__wbindgen_export2), j = G;
1491
+ I.lineage_sql(k, M, a, y, S, p, j, C);
1492
1492
  var D = w().getInt32(k + 0, !0), o = w().getInt32(k + 4, !0);
1493
1493
  return B = D, E = o, q(D, o);
1494
1494
  } finally {
1495
1495
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
1496
1496
  }
1497
1497
  }
1498
- function YI(g, A) {
1498
+ function Gg(g, A, Q, C, B) {
1499
+ let E, D;
1500
+ try {
1501
+ const M = I.__wbindgen_add_to_stack_pointer(-16), a = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(A, I.__wbindgen_export, I.__wbindgen_export2), p = G, j = N(Q, I.__wbindgen_export, I.__wbindgen_export2), e = G, u = N(C, I.__wbindgen_export, I.__wbindgen_export2), wI = G;
1502
+ I.lineage_sql_with_schema(M, a, y, S, p, j, e, u, wI, B);
1503
+ var o = w().getInt32(M + 0, !0), k = w().getInt32(M + 4, !0);
1504
+ return E = o, D = k, q(o, k);
1505
+ } finally {
1506
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
1507
+ }
1508
+ }
1509
+ function RI(g, A) {
1499
1510
  let Q, C;
1500
1511
  try {
1501
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1502
- I.parse(D, o, k, M, J);
1512
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1513
+ I.parse(D, o, k, M, a);
1503
1514
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1504
1515
  return Q = B, C = E, q(B, E);
1505
1516
  } finally {
1506
1517
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
1507
1518
  }
1508
1519
  }
1509
- function aI(g, A) {
1520
+ function cI(g, A) {
1510
1521
  const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.parse_value(Q, C, B, E);
1511
- return h(D);
1522
+ return H(D);
1512
1523
  }
1513
- function Gg(g, A) {
1524
+ function Ng(g, A) {
1514
1525
  let Q, C;
1515
1526
  try {
1516
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1517
- I.plan(D, o, k, M, J);
1527
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1528
+ I.plan(D, o, k, M, a);
1518
1529
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1519
1530
  return Q = B, C = E, q(B, E);
1520
1531
  } finally {
1521
1532
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
1522
1533
  }
1523
1534
  }
1524
- function Ng(g, A, Q) {
1535
+ function kg(g, A, Q) {
1525
1536
  let C, B;
1526
1537
  try {
1527
- const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, F = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1528
- I.source_tables(o, k, M, J, y, F, p);
1538
+ const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1539
+ I.source_tables(o, k, M, a, y, S, p);
1529
1540
  var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
1530
1541
  return C = E, B = D, q(E, D);
1531
1542
  } finally {
1532
1543
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1533
1544
  }
1534
1545
  }
1535
- function RI(g, A) {
1546
+ function hI(g, A) {
1536
1547
  let Q, C;
1537
1548
  try {
1538
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1539
- I.tokenize(D, o, k, M, J);
1549
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1550
+ I.tokenize(D, o, k, M, a);
1540
1551
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1541
1552
  return Q = B, C = E, q(B, E);
1542
1553
  } finally {
1543
1554
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
1544
1555
  }
1545
1556
  }
1546
- function yI(g, A) {
1557
+ function HI(g, A) {
1547
1558
  const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.tokenize_value(Q, C, B, E);
1548
- return h(D);
1559
+ return H(D);
1549
1560
  }
1550
- function UI(g, A, Q) {
1561
+ function qI(g, A, Q) {
1551
1562
  let C, B;
1552
1563
  try {
1553
- const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, F = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1554
- I.transpile(o, k, M, J, y, F, p);
1564
+ const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1565
+ I.transpile(o, k, M, a, y, S, p);
1555
1566
  var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
1556
1567
  return C = E, B = D, q(E, D);
1557
1568
  } finally {
1558
1569
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1559
1570
  }
1560
1571
  }
1561
- function HI(g, A, Q) {
1572
+ function UI(g, A, Q) {
1562
1573
  const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = N(Q, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = I.transpile_value(C, B, E, D, o, k);
1563
- return h(M);
1574
+ return H(M);
1564
1575
  }
1565
- function hI(g, A) {
1576
+ function SI(g, A) {
1566
1577
  let Q, C;
1567
1578
  try {
1568
- const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
1569
- I.validate(D, o, k, M, J);
1579
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
1580
+ I.validate(D, o, k, M, a);
1570
1581
  var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
1571
1582
  return Q = B, C = E, q(B, E);
1572
1583
  } finally {
1573
1584
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
1574
1585
  }
1575
1586
  }
1576
- function qI(g, A, Q) {
1587
+ function FI(g, A, Q) {
1577
1588
  let C, B;
1578
1589
  try {
1579
- const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, F = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1580
- I.validate_with_options(o, k, M, J, y, F, p);
1590
+ const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
1591
+ I.validate_with_options(o, k, M, a, y, S, p);
1581
1592
  var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
1582
1593
  return C = E, B = D, q(E, D);
1583
1594
  } finally {
1584
1595
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1585
1596
  }
1586
1597
  }
1587
- function kg(g, A, Q, C) {
1598
+ function Mg(g, A, Q, C) {
1588
1599
  let B, E;
1589
1600
  try {
1590
- const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), J = G, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), F = G, p = N(Q, I.__wbindgen_export, I.__wbindgen_export2), l = G, u = N(C, I.__wbindgen_export, I.__wbindgen_export2), YA = G;
1591
- I.validate_with_schema(k, M, J, y, F, p, l, u, YA);
1601
+ const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), a = G, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G, p = N(Q, I.__wbindgen_export, I.__wbindgen_export2), j = G, e = N(C, I.__wbindgen_export, I.__wbindgen_export2), u = G;
1602
+ I.validate_with_schema(k, M, a, y, S, p, j, e, u);
1592
1603
  var D = w().getInt32(k + 0, !0), o = w().getInt32(k + 4, !0);
1593
1604
  return B = D, E = o, q(D, o);
1594
1605
  } finally {
1595
1606
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
1596
1607
  }
1597
1608
  }
1598
- function cI() {
1609
+ function LI() {
1599
1610
  let g, A;
1600
1611
  try {
1601
1612
  const B = I.__wbindgen_add_to_stack_pointer(-16);
@@ -1606,13 +1617,13 @@ function cI() {
1606
1617
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1607
1618
  }
1608
1619
  }
1609
- function Mg(g, A) {
1610
- a(g, K);
1620
+ function Kg(g, A) {
1621
+ Y(g, K);
1611
1622
  const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasm_alias(g.__wbg_ptr, Q, C);
1612
1623
  return K.__wrap(B);
1613
1624
  }
1614
- function Kg(g, A) {
1615
- a(g, K), a(A, K);
1625
+ function ag(g, A) {
1626
+ Y(g, K), Y(A, K);
1616
1627
  const Q = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
1617
1628
  return K.__wrap(Q);
1618
1629
  }
@@ -1621,161 +1632,161 @@ function Jg(g) {
1621
1632
  return K.__wrap(A);
1622
1633
  }
1623
1634
  function Yg(g) {
1624
- a(g, K);
1635
+ Y(g, K);
1625
1636
  const A = I.wasm_case_of(g.__wbg_ptr);
1626
- return r.__wrap(A);
1637
+ return b.__wrap(A);
1627
1638
  }
1628
- function ag(g, A) {
1629
- a(g, K);
1639
+ function yg(g, A) {
1640
+ Y(g, K);
1630
1641
  const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasm_cast(g.__wbg_ptr, Q, C);
1631
1642
  return K.__wrap(B);
1632
1643
  }
1633
- function HA(g) {
1644
+ function hA(g) {
1634
1645
  const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_col(A, Q);
1635
1646
  return K.__wrap(C);
1636
1647
  }
1637
1648
  function Rg(g) {
1638
- a(g, K);
1649
+ Y(g, K);
1639
1650
  const A = I.wasm_count_distinct(g.__wbg_ptr);
1640
1651
  return K.__wrap(A);
1641
1652
  }
1642
- function yg(g, A) {
1653
+ function cg(g, A) {
1643
1654
  const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G;
1644
- a(A, K);
1655
+ Y(A, K);
1645
1656
  const B = I.wasm_extract(Q, C, A.__wbg_ptr);
1646
1657
  return K.__wrap(B);
1647
1658
  }
1648
- function Ug(g, A) {
1659
+ function hg(g, A) {
1649
1660
  const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G;
1650
- a(A, T);
1661
+ Y(A, O);
1651
1662
  const B = I.wasm_func(Q, C, A.__wbg_ptr);
1652
1663
  return K.__wrap(B);
1653
1664
  }
1654
- function NA(g) {
1655
- const A = I.wasm_lit(S(g));
1665
+ function kA(g) {
1666
+ const A = I.wasm_lit(F(g));
1656
1667
  return K.__wrap(A);
1657
1668
  }
1658
1669
  function Hg(g) {
1659
- a(g, K);
1670
+ Y(g, K);
1660
1671
  const A = I.wasm_not(g.__wbg_ptr);
1661
1672
  return K.__wrap(A);
1662
1673
  }
1663
- function kA() {
1674
+ function MA() {
1664
1675
  const g = I.wasm_null();
1665
1676
  return K.__wrap(g);
1666
1677
  }
1667
- function hg(g, A) {
1668
- a(g, K), a(A, K);
1678
+ function qg(g, A) {
1679
+ Y(g, K), Y(A, K);
1669
1680
  const Q = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
1670
1681
  return K.__wrap(Q);
1671
1682
  }
1672
- function qg(g) {
1683
+ function Ug(g) {
1673
1684
  const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_sql_expr(A, Q);
1674
1685
  return K.__wrap(C);
1675
1686
  }
1676
- function cg() {
1687
+ function Sg() {
1677
1688
  const g = I.wasm_star();
1678
1689
  return K.__wrap(g);
1679
1690
  }
1680
1691
  function Fg(g, A) {
1681
1692
  try {
1682
1693
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1683
- a(g, j);
1694
+ Y(g, t);
1684
1695
  const D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = G;
1685
1696
  I.wasm_subquery(E, g.__wbg_ptr, D, o);
1686
1697
  var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
1687
1698
  if (B)
1688
- throw h(C);
1699
+ throw H(C);
1689
1700
  return K.__wrap(Q);
1690
1701
  } finally {
1691
1702
  I.__wbindgen_add_to_stack_pointer(16);
1692
1703
  }
1693
1704
  }
1694
- function Sg(g) {
1705
+ function Lg(g) {
1695
1706
  const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_table(A, Q);
1696
1707
  return K.__wrap(C);
1697
1708
  }
1698
- function FI(g, A) {
1699
- const Q = Error(q(g, A));
1700
- return S(Q);
1701
- }
1702
- function SI(g) {
1703
- return Number(U(g));
1704
- }
1705
- function LI(g, A) {
1706
- const Q = String(U(A)), C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
1707
- w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
1708
- }
1709
1709
  function sI(g, A) {
1710
- const Q = U(A), C = typeof Q == "bigint" ? Q : void 0;
1711
- w().setBigInt64(g + 8, f(C) ? BigInt(0) : C, !0), w().setInt32(g + 0, !f(C), !0);
1710
+ const Q = Error(q(g, A));
1711
+ return F(Q);
1712
1712
  }
1713
1713
  function pI(g) {
1714
- const A = U(g), Q = typeof A == "boolean" ? A : void 0;
1715
- return f(Q) ? 16777215 : Q ? 1 : 0;
1714
+ return Number(c(g));
1716
1715
  }
1717
- function TI(g, A) {
1718
- const Q = yA(U(A)), C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
1716
+ function OI(g, A) {
1717
+ const Q = String(c(A)), C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
1719
1718
  w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
1720
1719
  }
1721
1720
  function xI(g, A) {
1722
- return U(g) in U(A);
1721
+ const Q = c(A), C = typeof Q == "bigint" ? Q : void 0;
1722
+ w().setBigInt64(g + 8, X(C) ? BigInt(0) : C, !0), w().setInt32(g + 0, !X(C), !0);
1723
1723
  }
1724
1724
  function jI(g) {
1725
- return typeof U(g) == "bigint";
1726
- }
1727
- function OI(g) {
1728
- return typeof U(g) == "function";
1725
+ const A = c(g), Q = typeof A == "boolean" ? A : void 0;
1726
+ return X(Q) ? 16777215 : Q ? 1 : 0;
1729
1727
  }
1730
- function tI(g) {
1731
- return U(g) === null;
1728
+ function tI(g, A) {
1729
+ const Q = RA(c(A)), C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
1730
+ w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
1732
1731
  }
1733
- function lI(g) {
1734
- const A = U(g);
1735
- return typeof A == "object" && A !== null;
1732
+ function TI(g, A) {
1733
+ return c(g) in c(A);
1736
1734
  }
1737
1735
  function dI(g) {
1738
- return typeof U(g) == "string";
1736
+ return typeof c(g) == "bigint";
1737
+ }
1738
+ function lI(g) {
1739
+ return typeof c(g) == "function";
1739
1740
  }
1740
1741
  function ZI(g) {
1741
- return U(g) === void 0;
1742
+ return c(g) === null;
1742
1743
  }
1743
- function zI(g, A) {
1744
- return U(g) === U(A);
1744
+ function zI(g) {
1745
+ const A = c(g);
1746
+ return typeof A == "object" && A !== null;
1745
1747
  }
1746
- function VI(g, A) {
1747
- return U(g) == U(A);
1748
+ function mI(g) {
1749
+ return typeof c(g) == "string";
1748
1750
  }
1749
- function mI(g, A) {
1750
- const Q = U(A), C = typeof Q == "number" ? Q : void 0;
1751
- w().setFloat64(g + 8, f(C) ? 0 : C, !0), w().setInt32(g + 0, !f(C), !0);
1751
+ function VI(g) {
1752
+ return c(g) === void 0;
1752
1753
  }
1753
1754
  function PI(g, A) {
1754
- const Q = U(A), C = typeof Q == "string" ? Q : void 0;
1755
- var B = f(C) ? 0 : N(C, I.__wbindgen_export, I.__wbindgen_export2), E = G;
1756
- w().setInt32(g + 4, E, !0), w().setInt32(g + 0, B, !0);
1755
+ return c(g) === c(A);
1757
1756
  }
1758
1757
  function eI(g, A) {
1758
+ return c(g) == c(A);
1759
+ }
1760
+ function rI(g, A) {
1761
+ const Q = c(A), C = typeof Q == "number" ? Q : void 0;
1762
+ w().setFloat64(g + 8, X(C) ? 0 : C, !0), w().setInt32(g + 0, !X(C), !0);
1763
+ }
1764
+ function bI(g, A) {
1765
+ const Q = c(A), C = typeof Q == "string" ? Q : void 0;
1766
+ var B = X(C) ? 0 : N(C, I.__wbindgen_export, I.__wbindgen_export2), E = G;
1767
+ w().setInt32(g + 4, E, !0), w().setInt32(g + 0, B, !0);
1768
+ }
1769
+ function fI(g, A) {
1759
1770
  throw new Error(q(g, A));
1760
1771
  }
1761
- function rI() {
1762
- return MA(function(g, A) {
1763
- const Q = U(g).call(U(A));
1764
- return S(Q);
1772
+ function WI() {
1773
+ return KA(function(g, A) {
1774
+ const Q = c(g).call(c(A));
1775
+ return F(Q);
1765
1776
  }, arguments);
1766
1777
  }
1767
- function WI(g, A) {
1768
- const Q = U(g).codePointAt(A >>> 0);
1769
- return S(Q);
1778
+ function vI(g, A) {
1779
+ const Q = c(g).codePointAt(A >>> 0);
1780
+ return F(Q);
1770
1781
  }
1771
- function bI(g) {
1772
- return U(g).done;
1782
+ function XI(g) {
1783
+ return c(g).done;
1773
1784
  }
1774
- function vI(g) {
1775
- const A = Object.entries(U(g));
1776
- return S(A);
1785
+ function uI(g) {
1786
+ const A = Object.entries(c(g));
1787
+ return F(A);
1777
1788
  }
1778
- function fI(g, A) {
1789
+ function nI(g, A) {
1779
1790
  let Q, C;
1780
1791
  try {
1781
1792
  Q = g, C = A, console.error(q(g, A));
@@ -1783,153 +1794,153 @@ function fI(g, A) {
1783
1794
  I.__wbindgen_export4(Q, C, 1);
1784
1795
  }
1785
1796
  }
1786
- function uI() {
1787
- return MA(function(g) {
1797
+ function _I() {
1798
+ return KA(function(g) {
1788
1799
  const A = String.fromCodePoint(g >>> 0);
1789
- return S(A);
1800
+ return F(A);
1790
1801
  }, arguments);
1791
1802
  }
1792
- function nI(g, A) {
1793
- const Q = U(g)[A >>> 0];
1794
- return S(Q);
1803
+ function $I(g, A) {
1804
+ const Q = c(g)[A >>> 0];
1805
+ return F(Q);
1795
1806
  }
1796
- function XI() {
1797
- return MA(function(g, A) {
1798
- const Q = Reflect.get(U(g), U(A));
1799
- return S(Q);
1807
+ function AQ() {
1808
+ return KA(function(g, A) {
1809
+ const Q = Reflect.get(c(g), c(A));
1810
+ return F(Q);
1800
1811
  }, arguments);
1801
1812
  }
1802
- function _I(g, A) {
1803
- const Q = U(g)[U(A)];
1804
- return S(Q);
1813
+ function gQ(g, A) {
1814
+ const Q = c(g)[c(A)];
1815
+ return F(Q);
1805
1816
  }
1806
- function $I(g) {
1817
+ function IQ(g) {
1807
1818
  let A;
1808
1819
  try {
1809
- A = U(g) instanceof ArrayBuffer;
1820
+ A = c(g) instanceof ArrayBuffer;
1810
1821
  } catch {
1811
1822
  A = !1;
1812
1823
  }
1813
1824
  return A;
1814
1825
  }
1815
- function AQ(g) {
1826
+ function QQ(g) {
1816
1827
  let A;
1817
1828
  try {
1818
- A = U(g) instanceof Map;
1829
+ A = c(g) instanceof Map;
1819
1830
  } catch {
1820
1831
  A = !1;
1821
1832
  }
1822
1833
  return A;
1823
1834
  }
1824
- function gQ(g) {
1835
+ function CQ(g) {
1825
1836
  let A;
1826
1837
  try {
1827
- A = U(g) instanceof Uint8Array;
1838
+ A = c(g) instanceof Uint8Array;
1828
1839
  } catch {
1829
1840
  A = !1;
1830
1841
  }
1831
1842
  return A;
1832
1843
  }
1833
- function IQ(g) {
1834
- return Array.isArray(U(g));
1844
+ function BQ(g) {
1845
+ return Array.isArray(c(g));
1835
1846
  }
1836
- function QQ(g) {
1837
- return Number.isSafeInteger(U(g));
1847
+ function EQ(g) {
1848
+ return Number.isSafeInteger(c(g));
1838
1849
  }
1839
- function CQ() {
1840
- return S(Symbol.iterator);
1850
+ function DQ() {
1851
+ return F(Symbol.iterator);
1841
1852
  }
1842
- function BQ(g) {
1843
- return U(g).length;
1853
+ function iQ(g) {
1854
+ return c(g).length;
1844
1855
  }
1845
- function EQ(g) {
1846
- return U(g).length;
1856
+ function wQ(g) {
1857
+ return c(g).length;
1847
1858
  }
1848
- function DQ(g) {
1849
- return U(g).length;
1859
+ function oQ(g) {
1860
+ return c(g).length;
1850
1861
  }
1851
- function iQ() {
1862
+ function GQ() {
1852
1863
  const g = new Object();
1853
- return S(g);
1864
+ return F(g);
1854
1865
  }
1855
- function wQ() {
1866
+ function NQ() {
1856
1867
  const g = new Array();
1857
- return S(g);
1868
+ return F(g);
1858
1869
  }
1859
- function oQ() {
1870
+ function kQ() {
1860
1871
  const g = new Error();
1861
- return S(g);
1872
+ return F(g);
1862
1873
  }
1863
- function GQ() {
1864
- return S(/* @__PURE__ */ new Map());
1874
+ function MQ() {
1875
+ return F(/* @__PURE__ */ new Map());
1865
1876
  }
1866
- function NQ(g) {
1867
- const A = new Uint8Array(U(g));
1868
- return S(A);
1877
+ function KQ(g) {
1878
+ const A = new Uint8Array(c(g));
1879
+ return F(A);
1869
1880
  }
1870
- function kQ() {
1871
- return MA(function(g) {
1872
- const A = U(g).next();
1873
- return S(A);
1881
+ function aQ() {
1882
+ return KA(function(g) {
1883
+ const A = c(g).next();
1884
+ return F(A);
1874
1885
  }, arguments);
1875
1886
  }
1876
- function MQ(g) {
1877
- const A = U(g).next;
1878
- return S(A);
1887
+ function JQ(g) {
1888
+ const A = c(g).next;
1889
+ return F(A);
1879
1890
  }
1880
- function KQ(g, A, Q) {
1881
- Uint8Array.prototype.set.call(LQ(g, A), U(Q));
1891
+ function YQ(g, A, Q) {
1892
+ Uint8Array.prototype.set.call(OQ(g, A), c(Q));
1882
1893
  }
1883
- function JQ(g, A, Q) {
1884
- const C = U(g).set(U(A), U(Q));
1885
- return S(C);
1894
+ function yQ(g, A, Q) {
1895
+ const C = c(g).set(c(A), c(Q));
1896
+ return F(C);
1886
1897
  }
1887
- function YQ(g, A, Q) {
1888
- U(g)[h(A)] = h(Q);
1898
+ function RQ(g, A, Q) {
1899
+ c(g)[H(A)] = H(Q);
1889
1900
  }
1890
- function aQ(g, A, Q) {
1891
- U(g)[A >>> 0] = h(Q);
1901
+ function cQ(g, A, Q) {
1902
+ c(g)[A >>> 0] = H(Q);
1892
1903
  }
1893
- function RQ(g, A) {
1894
- const Q = U(A).stack, C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
1904
+ function hQ(g, A) {
1905
+ const Q = c(A).stack, C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
1895
1906
  w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
1896
1907
  }
1897
- function yQ(g) {
1898
- const A = U(g).value;
1899
- return S(A);
1908
+ function HQ(g) {
1909
+ const A = c(g).value;
1910
+ return F(A);
1900
1911
  }
1901
- function UQ(g) {
1902
- return S(g);
1912
+ function qQ(g) {
1913
+ return F(g);
1903
1914
  }
1904
- function HQ(g) {
1905
- return S(g);
1915
+ function UQ(g) {
1916
+ return F(g);
1906
1917
  }
1907
- function hQ(g, A) {
1918
+ function SQ(g, A) {
1908
1919
  const Q = q(g, A);
1909
- return S(Q);
1920
+ return F(Q);
1910
1921
  }
1911
- function qQ(g) {
1922
+ function FQ(g) {
1912
1923
  const A = BigInt.asUintN(64, g);
1913
- return S(A);
1924
+ return F(A);
1914
1925
  }
1915
- function cQ(g) {
1916
- const A = U(g);
1917
- return S(A);
1926
+ function LQ(g) {
1927
+ const A = c(g);
1928
+ return F(A);
1918
1929
  }
1919
- function FQ(g) {
1920
- h(g);
1930
+ function sQ(g) {
1931
+ H(g);
1921
1932
  }
1922
- const dA = typeof FinalizationRegistry > "u" ? { register: () => {
1933
+ const lA = typeof FinalizationRegistry > "u" ? { register: () => {
1923
1934
  }, unregister: () => {
1924
- } } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), aA = typeof FinalizationRegistry > "u" ? { register: () => {
1935
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), YA = typeof FinalizationRegistry > "u" ? { register: () => {
1925
1936
  }, unregister: () => {
1926
1937
  } } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), ZA = typeof FinalizationRegistry > "u" ? { register: () => {
1927
1938
  }, unregister: () => {
1928
1939
  } } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), zA = typeof FinalizationRegistry > "u" ? { register: () => {
1929
1940
  }, unregister: () => {
1930
- } } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), VA = typeof FinalizationRegistry > "u" ? { register: () => {
1941
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), mA = typeof FinalizationRegistry > "u" ? { register: () => {
1931
1942
  }, unregister: () => {
1932
- } } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), mA = typeof FinalizationRegistry > "u" ? { register: () => {
1943
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), VA = typeof FinalizationRegistry > "u" ? { register: () => {
1933
1944
  }, unregister: () => {
1934
1945
  } } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), PA = typeof FinalizationRegistry > "u" ? { register: () => {
1935
1946
  }, unregister: () => {
@@ -1937,21 +1948,21 @@ const dA = typeof FinalizationRegistry > "u" ? { register: () => {
1937
1948
  }, unregister: () => {
1938
1949
  } } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
1939
1950
  }, unregister: () => {
1940
- } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), WA = typeof FinalizationRegistry > "u" ? { register: () => {
1951
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), bA = typeof FinalizationRegistry > "u" ? { register: () => {
1941
1952
  }, unregister: () => {
1942
- } } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), bA = typeof FinalizationRegistry > "u" ? { register: () => {
1953
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), fA = typeof FinalizationRegistry > "u" ? { register: () => {
1943
1954
  }, unregister: () => {
1944
1955
  } } : new FinalizationRegistry((g) => I.__wbg_wasmwindowdefbuilder_free(g >>> 0, 1));
1945
- function S(g) {
1946
- $ === Z.length && Z.push(Z.length + 1);
1947
- const A = $;
1948
- return $ = Z[A], Z[A] = g, A;
1956
+ function F(g) {
1957
+ AA === Z.length && Z.push(Z.length + 1);
1958
+ const A = AA;
1959
+ return AA = Z[A], Z[A] = g, A;
1949
1960
  }
1950
- function a(g, A) {
1961
+ function Y(g, A) {
1951
1962
  if (!(g instanceof A))
1952
1963
  throw new Error(`expected instance of ${A.name}`);
1953
1964
  }
1954
- function yA(g) {
1965
+ function RA(g) {
1955
1966
  const A = typeof g;
1956
1967
  if (A == "number" || A == "boolean" || g == null)
1957
1968
  return `${g}`;
@@ -1968,9 +1979,9 @@ function yA(g) {
1968
1979
  if (Array.isArray(g)) {
1969
1980
  const B = g.length;
1970
1981
  let E = "[";
1971
- B > 0 && (E += yA(g[0]));
1982
+ B > 0 && (E += RA(g[0]));
1972
1983
  for (let D = 1; D < B; D++)
1973
- E += ", " + yA(g[D]);
1984
+ E += ", " + RA(g[D]);
1974
1985
  return E += "]", E;
1975
1986
  }
1976
1987
  const Q = /\[object ([^\]]+)\]/.exec(toString.call(g));
@@ -1988,52 +1999,52 @@ function yA(g) {
1988
1999
  return g instanceof Error ? `${g.name}: ${g.message}
1989
2000
  ${g.stack}` : C;
1990
2001
  }
1991
- function SQ(g) {
1992
- g < 132 || (Z[g] = $, $ = g);
2002
+ function pQ(g) {
2003
+ g < 132 || (Z[g] = AA, AA = g);
1993
2004
  }
1994
- function LQ(g, A) {
1995
- return g = g >>> 0, _().subarray(g / 1, g / 1 + A);
2005
+ function OQ(g, A) {
2006
+ return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
1996
2007
  }
1997
2008
  let v = null;
1998
2009
  function w() {
1999
2010
  return (v === null || v.buffer.detached === !0 || v.buffer.detached === void 0 && v.buffer !== I.memory.buffer) && (v = new DataView(I.memory.buffer)), v;
2000
2011
  }
2001
2012
  function q(g, A) {
2002
- return g = g >>> 0, pQ(g, A);
2013
+ return g = g >>> 0, jQ(g, A);
2003
2014
  }
2004
- let BA = null;
2005
- function _() {
2006
- return (BA === null || BA.byteLength === 0) && (BA = new Uint8Array(I.memory.buffer)), BA;
2015
+ let EA = null;
2016
+ function $() {
2017
+ return (EA === null || EA.byteLength === 0) && (EA = new Uint8Array(I.memory.buffer)), EA;
2007
2018
  }
2008
- function U(g) {
2019
+ function c(g) {
2009
2020
  return Z[g];
2010
2021
  }
2011
- function MA(g, A) {
2022
+ function KA(g, A) {
2012
2023
  try {
2013
2024
  return g.apply(this, A);
2014
2025
  } catch (Q) {
2015
- I.__wbindgen_export3(S(Q));
2026
+ I.__wbindgen_export3(F(Q));
2016
2027
  }
2017
2028
  }
2018
2029
  let Z = new Array(128).fill(void 0);
2019
2030
  Z.push(void 0, null, !0, !1);
2020
- let $ = Z.length;
2021
- function f(g) {
2031
+ let AA = Z.length;
2032
+ function X(g) {
2022
2033
  return g == null;
2023
2034
  }
2024
- function hA(g, A) {
2035
+ function HA(g, A) {
2025
2036
  const Q = A(g.length * 4, 4) >>> 0, C = w();
2026
2037
  for (let B = 0; B < g.length; B++)
2027
- C.setUint32(Q + 4 * B, S(g[B]), !0);
2038
+ C.setUint32(Q + 4 * B, F(g[B]), !0);
2028
2039
  return G = g.length, Q;
2029
2040
  }
2030
2041
  function N(g, A, Q) {
2031
2042
  if (Q === void 0) {
2032
- const o = AA.encode(g), k = A(o.length, 1) >>> 0;
2033
- return _().subarray(k, k + o.length).set(o), G = o.length, k;
2043
+ const o = gA.encode(g), k = A(o.length, 1) >>> 0;
2044
+ return $().subarray(k, k + o.length).set(o), G = o.length, k;
2034
2045
  }
2035
2046
  let C = g.length, B = A(C, 1) >>> 0;
2036
- const E = _();
2047
+ const E = $();
2037
2048
  let D = 0;
2038
2049
  for (; D < C; D++) {
2039
2050
  const o = g.charCodeAt(D);
@@ -2042,291 +2053,292 @@ function N(g, A, Q) {
2042
2053
  }
2043
2054
  if (D !== C) {
2044
2055
  D !== 0 && (g = g.slice(D)), B = Q(B, C, C = D + g.length * 3, 1) >>> 0;
2045
- const o = _().subarray(B + D, B + C), k = AA.encodeInto(g, o);
2056
+ const o = $().subarray(B + D, B + C), k = gA.encodeInto(g, o);
2046
2057
  D += k.written, B = Q(B, C, D, 1) >>> 0;
2047
2058
  }
2048
2059
  return G = D, B;
2049
2060
  }
2050
- function h(g) {
2051
- const A = U(g);
2052
- return SQ(g), A;
2053
- }
2054
- let EA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
2055
- EA.decode();
2056
- const sQ = 2146435072;
2057
- let RA = 0;
2058
- function pQ(g, A) {
2059
- return RA += A, RA >= sQ && (EA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), EA.decode(), RA = A), EA.decode(_().subarray(g, g + A));
2060
- }
2061
- const AA = new TextEncoder();
2062
- "encodeInto" in AA || (AA.encodeInto = function(g, A) {
2063
- const Q = AA.encode(g);
2061
+ function H(g) {
2062
+ const A = c(g);
2063
+ return pQ(g), A;
2064
+ }
2065
+ let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
2066
+ DA.decode();
2067
+ const xQ = 2146435072;
2068
+ let yA = 0;
2069
+ function jQ(g, A) {
2070
+ return yA += A, yA >= xQ && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), yA = A), DA.decode($().subarray(g, g + A));
2071
+ }
2072
+ const gA = new TextEncoder();
2073
+ "encodeInto" in gA || (gA.encodeInto = function(g, A) {
2074
+ const Q = gA.encode(g);
2064
2075
  return A.set(Q), {
2065
2076
  read: g.length,
2066
2077
  written: Q.length
2067
2078
  };
2068
2079
  });
2069
2080
  let G = 0, I;
2070
- function TQ(g) {
2081
+ function tQ(g) {
2071
2082
  I = g;
2072
2083
  }
2073
2084
  URL = globalThis.URL;
2074
- const i = await iI({ "./polyglot_sql_wasm_bg.js": {
2075
- __wbindgen_object_drop_ref: FQ,
2076
- __wbindgen_object_clone_ref: cQ,
2077
- __wbg_new_8a6f238a6ece86ea: oQ,
2078
- __wbg_stack_0ed75d68575b0f3c: RQ,
2079
- __wbg_error_7534b8e9a36f1ab4: fI,
2080
- __wbg_get_with_ref_key_1dc361bd10053bfe: _I,
2081
- __wbg_set_3f1d0b984ed272ed: YQ,
2082
- __wbg_String_8f0eb39a4a4c2f66: LI,
2083
- __wbg_new_dd2b680c8bf6ae29: NQ,
2084
- __wbg_length_32ed9a279acd054c: BQ,
2085
- __wbg_prototypesetcall_bdcdcc5842e4d77d: KQ,
2086
- __wbg_done_57b39ecd9addfe81: bI,
2087
- __wbg_value_0546255b415e96c1: yQ,
2088
- __wbg_instanceof_Map_53af74335dec57f4: AQ,
2089
- __wbg_instanceof_Uint8Array_9b9075935c74707c: gQ,
2090
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: $I,
2091
- __wbg_new_dca287b076112a51: GQ,
2092
- __wbg_set_1eb0999cf5d27fc8: JQ,
2093
- __wbg_get_9b94d73e6221f75c: nI,
2094
- __wbg_new_3eb36ae241fe6f44: wQ,
2095
- __wbg_set_f43e577aea94465b: aQ,
2096
- __wbg_length_35a7bace40f36eac: EQ,
2097
- __wbg_isArray_d314bb98fcf08331: IQ,
2098
- __wbg_isSafeInteger_bfbc7332a9768d2a: QQ,
2099
- __wbg_new_361308b2356cecd0: iQ,
2100
- __wbg_entries_58c7934c745daac7: vI,
2101
- __wbg_iterator_6ff6560ca1568e55: CQ,
2102
- __wbg_get_b3ed3ad4be2bc8ac: XI,
2103
- __wbg_call_389efe28435a9388: rI,
2104
- __wbg_next_418f80d8f5303233: MQ,
2105
- __wbg_next_3482f54c49e8af19: kQ,
2106
- __wbg_codePointAt_bf59dbf74d8db275: WI,
2107
- __wbg_fromCodePoint_22365db7b7d6ac39: uI,
2108
- __wbg_length_68dc7c5cf1b6d349: DQ,
2109
- __wbg___wbindgen_in_47fa6863be6f2f25: xI,
2110
- __wbg___wbindgen_throw_be289d5034ed271b: eI,
2111
- __wbg___wbindgen_is_null_ac34f5003991759a: tI,
2112
- __wbg___wbindgen_jsval_eq_11888390b0186270: zI,
2113
- __wbg_Number_04624de7d0e8332d: SI,
2114
- __wbg_Error_8c4e43fe74559d73: FI,
2115
- __wbg___wbindgen_is_bigint_31b12575b56f32fc: jI,
2116
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: lI,
2117
- __wbg___wbindgen_is_string_cd444516edc5b180: dI,
2118
- __wbg___wbindgen_number_get_8ff4255516ccad3e: mI,
2119
- __wbg___wbindgen_string_get_72fb696202c56729: PI,
2120
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: pI,
2121
- __wbg___wbindgen_is_function_0095a73b8b156f76: OI,
2122
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: ZI,
2123
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: VI,
2124
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: sI,
2125
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: TI,
2126
- __wbindgen_cast_0000000000000001: UQ,
2127
- __wbindgen_cast_0000000000000002: HQ,
2128
- __wbindgen_cast_0000000000000003: hQ,
2129
- __wbindgen_cast_0000000000000004: qQ
2130
- } }, DI), xQ = i.memory, jQ = i.__wbg_wasmassignmentarray_free, OQ = i.__wbg_wasmcasebuilder_free, tQ = i.__wbg_wasmdeletebuilder_free, lQ = i.__wbg_wasmexpr_free, dQ = i.__wbg_wasmexprarray_free, ZQ = i.__wbg_wasminsertbuilder_free, zQ = i.__wbg_wasmmergebuilder_free, VQ = i.__wbg_wasmselectbuilder_free, mQ = i.__wbg_wasmsetopbuilder_free, PQ = i.__wbg_wasmupdatebuilder_free, eQ = i.__wbg_wasmwindowdefbuilder_free, rQ = i.ast_add_where, WQ = i.ast_get_aggregate_functions, bQ = i.ast_get_column_names, vQ = i.ast_get_functions, fQ = i.ast_get_literals, uQ = i.ast_get_subqueries, nQ = i.ast_get_table_names, XQ = i.ast_get_window_functions, _Q = i.ast_node_count, $Q = i.ast_qualify_columns, AC = i.ast_remove_where, gC = i.ast_rename_columns, IC = i.ast_rename_tables, QC = i.ast_set_distinct, CC = i.ast_set_limit, BC = i.diff_sql, EC = i.format_sql, DC = i.format_sql_value, iC = i.format_sql_with_options, wC = i.format_sql_with_options_value, oC = i.generate, GC = i.generate_value, NC = i.get_dialects, kC = i.get_dialects_value, MC = i.lineage_sql, KC = i.parse, JC = i.parse_value, YC = i.plan, aC = i.source_tables, RC = i.tokenize, yC = i.tokenize_value, UC = i.transpile, HC = i.transpile_value, hC = i.validate, qC = i.validate_with_options, cC = i.validate_with_schema, FC = i.version, SC = i.wasm_alias, LC = i.wasm_and, sC = i.wasm_boolean, pC = i.wasm_case_of, TC = i.wasm_cast, xC = i.wasm_col, jC = i.wasm_count_distinct, OC = i.wasm_extract, tC = i.wasm_func, lC = i.wasm_lit, dC = i.wasm_not, ZC = i.wasm_null, zC = i.wasm_or, VC = i.wasm_sql_expr, mC = i.wasm_star, PC = i.wasm_subquery, eC = i.wasm_table, rC = i.wasmassignmentarray_len, WC = i.wasmassignmentarray_new, bC = i.wasmassignmentarray_push, vC = i.wasmcasebuilder_build_expr, fC = i.wasmcasebuilder_else_, uC = i.wasmcasebuilder_new, nC = i.wasmcasebuilder_to_sql, XC = i.wasmcasebuilder_when, _C = i.wasmdeletebuilder_build, $C = i.wasmdeletebuilder_new, AB = i.wasmdeletebuilder_to_sql, gB = i.wasmdeletebuilder_where_expr, IB = i.wasmexpr_add, QB = i.wasmexpr_alias, CB = i.wasmexpr_and, BB = i.wasmexpr_asc, EB = i.wasmexpr_between, DB = i.wasmexpr_cast, iB = i.wasmexpr_desc, wB = i.wasmexpr_div, oB = i.wasmexpr_eq, GB = i.wasmexpr_gt, NB = i.wasmexpr_gte, kB = i.wasmexpr_ilike, MB = i.wasmexpr_in_list, KB = i.wasmexpr_is_not_null, JB = i.wasmexpr_is_null, YB = i.wasmexpr_like, aB = i.wasmexpr_lt, RB = i.wasmexpr_lte, yB = i.wasmexpr_mul, UB = i.wasmexpr_neq, HB = i.wasmexpr_not, hB = i.wasmexpr_not_in, qB = i.wasmexpr_or, cB = i.wasmexpr_rlike, FB = i.wasmexpr_sub, SB = i.wasmexpr_to_json, LB = i.wasmexpr_to_sql, sB = i.wasmexpr_xor, pB = i.wasmexprarray_len, TB = i.wasmexprarray_push, xB = i.wasmexprarray_push_col, jB = i.wasmexprarray_push_float, OB = i.wasmexprarray_push_int, tB = i.wasmexprarray_push_star, lB = i.wasmexprarray_push_str, dB = i.wasminsertbuilder_build, ZB = i.wasminsertbuilder_columns, zB = i.wasminsertbuilder_new, VB = i.wasminsertbuilder_query, mB = i.wasminsertbuilder_to_sql, PB = i.wasminsertbuilder_values, eB = i.wasmmergebuilder_build, rB = i.wasmmergebuilder_new, WB = i.wasmmergebuilder_to_sql, bB = i.wasmmergebuilder_using, vB = i.wasmmergebuilder_when_matched_delete, fB = i.wasmmergebuilder_when_matched_update, uB = i.wasmmergebuilder_when_not_matched_insert, nB = i.wasmselectbuilder_build, XB = i.wasmselectbuilder_cross_join, _B = i.wasmselectbuilder_ctas, $B = i.wasmselectbuilder_ctas_sql, AE = i.wasmselectbuilder_distinct, gE = i.wasmselectbuilder_except_, IE = i.wasmselectbuilder_for_update, QE = i.wasmselectbuilder_from, CE = i.wasmselectbuilder_from_expr, BE = i.wasmselectbuilder_group_by_cols, EE = i.wasmselectbuilder_having, DE = i.wasmselectbuilder_hint, iE = i.wasmselectbuilder_intersect, wE = i.wasmselectbuilder_join, oE = i.wasmselectbuilder_lateral_view, GE = i.wasmselectbuilder_left_join, NE = i.wasmselectbuilder_limit, kE = i.wasmselectbuilder_new, ME = i.wasmselectbuilder_offset, KE = i.wasmselectbuilder_order_by_exprs, JE = i.wasmselectbuilder_qualify, YE = i.wasmselectbuilder_right_join, aE = i.wasmselectbuilder_select_col, RE = i.wasmselectbuilder_select_expr, yE = i.wasmselectbuilder_select_exprs, UE = i.wasmselectbuilder_select_star, HE = i.wasmselectbuilder_sort_by_exprs, hE = i.wasmselectbuilder_to_sql, qE = i.wasmselectbuilder_union, cE = i.wasmselectbuilder_union_all, FE = i.wasmselectbuilder_where_expr, SE = i.wasmselectbuilder_where_sql, LE = i.wasmselectbuilder_window, sE = i.wasmsetopbuilder_build, pE = i.wasmsetopbuilder_limit, TE = i.wasmsetopbuilder_offset, xE = i.wasmsetopbuilder_order_by_exprs, jE = i.wasmsetopbuilder_to_sql, OE = i.wasmupdatebuilder_build, tE = i.wasmupdatebuilder_from, lE = i.wasmupdatebuilder_new, dE = i.wasmupdatebuilder_set, ZE = i.wasmupdatebuilder_to_sql, zE = i.wasmupdatebuilder_where_expr, VE = i.wasmwindowdefbuilder_new, mE = i.wasmwindowdefbuilder_order_by, PE = i.wasmwindowdefbuilder_partition_by, eE = i.wasmexprarray_new, rE = i.__wbindgen_export, WE = i.__wbindgen_export2, bE = i.__wbindgen_export3, vE = i.__wbindgen_export4, fE = i.__wbindgen_add_to_stack_pointer, uE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2085
+ const i = await GI({ "./polyglot_sql_wasm_bg.js": {
2086
+ __wbindgen_object_drop_ref: sQ,
2087
+ __wbindgen_object_clone_ref: LQ,
2088
+ __wbg_new_8a6f238a6ece86ea: kQ,
2089
+ __wbg_stack_0ed75d68575b0f3c: hQ,
2090
+ __wbg_error_7534b8e9a36f1ab4: nI,
2091
+ __wbg_get_with_ref_key_1dc361bd10053bfe: gQ,
2092
+ __wbg_set_3f1d0b984ed272ed: RQ,
2093
+ __wbg_String_8f0eb39a4a4c2f66: OI,
2094
+ __wbg_new_dd2b680c8bf6ae29: KQ,
2095
+ __wbg_length_32ed9a279acd054c: iQ,
2096
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: YQ,
2097
+ __wbg_done_57b39ecd9addfe81: XI,
2098
+ __wbg_value_0546255b415e96c1: HQ,
2099
+ __wbg_instanceof_Map_53af74335dec57f4: QQ,
2100
+ __wbg_instanceof_Uint8Array_9b9075935c74707c: CQ,
2101
+ __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: IQ,
2102
+ __wbg_new_dca287b076112a51: MQ,
2103
+ __wbg_set_1eb0999cf5d27fc8: yQ,
2104
+ __wbg_get_9b94d73e6221f75c: $I,
2105
+ __wbg_new_3eb36ae241fe6f44: NQ,
2106
+ __wbg_set_f43e577aea94465b: cQ,
2107
+ __wbg_length_35a7bace40f36eac: wQ,
2108
+ __wbg_isArray_d314bb98fcf08331: BQ,
2109
+ __wbg_isSafeInteger_bfbc7332a9768d2a: EQ,
2110
+ __wbg_new_361308b2356cecd0: GQ,
2111
+ __wbg_entries_58c7934c745daac7: uI,
2112
+ __wbg_iterator_6ff6560ca1568e55: DQ,
2113
+ __wbg_get_b3ed3ad4be2bc8ac: AQ,
2114
+ __wbg_call_389efe28435a9388: WI,
2115
+ __wbg_next_418f80d8f5303233: JQ,
2116
+ __wbg_next_3482f54c49e8af19: aQ,
2117
+ __wbg_codePointAt_bf59dbf74d8db275: vI,
2118
+ __wbg_fromCodePoint_22365db7b7d6ac39: _I,
2119
+ __wbg_length_68dc7c5cf1b6d349: oQ,
2120
+ __wbg___wbindgen_in_47fa6863be6f2f25: TI,
2121
+ __wbg___wbindgen_throw_be289d5034ed271b: fI,
2122
+ __wbg___wbindgen_is_null_ac34f5003991759a: ZI,
2123
+ __wbg___wbindgen_jsval_eq_11888390b0186270: PI,
2124
+ __wbg_Number_04624de7d0e8332d: pI,
2125
+ __wbg_Error_8c4e43fe74559d73: sI,
2126
+ __wbg___wbindgen_is_bigint_31b12575b56f32fc: dI,
2127
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: zI,
2128
+ __wbg___wbindgen_is_string_cd444516edc5b180: mI,
2129
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: rI,
2130
+ __wbg___wbindgen_string_get_72fb696202c56729: bI,
2131
+ __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: jI,
2132
+ __wbg___wbindgen_is_function_0095a73b8b156f76: lI,
2133
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: VI,
2134
+ __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: eI,
2135
+ __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: xI,
2136
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: tI,
2137
+ __wbindgen_cast_0000000000000001: qQ,
2138
+ __wbindgen_cast_0000000000000002: UQ,
2139
+ __wbindgen_cast_0000000000000003: SQ,
2140
+ __wbindgen_cast_0000000000000004: FQ
2141
+ } }, oI), TQ = i.memory, dQ = i.__wbg_wasmassignmentarray_free, lQ = i.__wbg_wasmcasebuilder_free, ZQ = i.__wbg_wasmdeletebuilder_free, zQ = i.__wbg_wasmexpr_free, mQ = i.__wbg_wasmexprarray_free, VQ = i.__wbg_wasminsertbuilder_free, PQ = i.__wbg_wasmmergebuilder_free, eQ = i.__wbg_wasmselectbuilder_free, rQ = i.__wbg_wasmsetopbuilder_free, bQ = i.__wbg_wasmupdatebuilder_free, fQ = i.__wbg_wasmwindowdefbuilder_free, WQ = i.ast_add_where, vQ = i.ast_get_aggregate_functions, XQ = i.ast_get_column_names, uQ = i.ast_get_functions, nQ = i.ast_get_literals, _Q = i.ast_get_subqueries, $Q = i.ast_get_table_names, AC = i.ast_get_window_functions, gC = i.ast_node_count, IC = i.ast_qualify_columns, QC = i.ast_remove_where, CC = i.ast_rename_columns, BC = i.ast_rename_tables, EC = i.ast_set_distinct, DC = i.ast_set_limit, iC = i.diff_sql, wC = i.format_sql, oC = i.format_sql_value, GC = i.format_sql_with_options, NC = i.format_sql_with_options_value, kC = i.generate, MC = i.generate_value, KC = i.get_dialects, aC = i.get_dialects_value, JC = i.lineage_sql, YC = i.lineage_sql_with_schema, yC = i.parse, RC = i.parse_value, cC = i.plan, hC = i.source_tables, HC = i.tokenize, qC = i.tokenize_value, UC = i.transpile, SC = i.transpile_value, FC = i.validate, LC = i.validate_with_options, sC = i.validate_with_schema, pC = i.version, OC = i.wasm_alias, xC = i.wasm_and, jC = i.wasm_boolean, tC = i.wasm_case_of, TC = i.wasm_cast, dC = i.wasm_col, lC = i.wasm_count_distinct, ZC = i.wasm_extract, zC = i.wasm_func, mC = i.wasm_lit, VC = i.wasm_not, PC = i.wasm_null, eC = i.wasm_or, rC = i.wasm_sql_expr, bC = i.wasm_star, fC = i.wasm_subquery, WC = i.wasm_table, vC = i.wasmassignmentarray_len, XC = i.wasmassignmentarray_new, uC = i.wasmassignmentarray_push, nC = i.wasmcasebuilder_build_expr, _C = i.wasmcasebuilder_else_, $C = i.wasmcasebuilder_new, AB = i.wasmcasebuilder_to_sql, gB = i.wasmcasebuilder_when, IB = i.wasmdeletebuilder_build, QB = i.wasmdeletebuilder_new, CB = i.wasmdeletebuilder_to_sql, BB = i.wasmdeletebuilder_where_expr, EB = i.wasmexpr_add, DB = i.wasmexpr_alias, iB = i.wasmexpr_and, wB = i.wasmexpr_asc, oB = i.wasmexpr_between, GB = i.wasmexpr_cast, NB = i.wasmexpr_desc, kB = i.wasmexpr_div, MB = i.wasmexpr_eq, KB = i.wasmexpr_gt, aB = i.wasmexpr_gte, JB = i.wasmexpr_ilike, YB = i.wasmexpr_in_list, yB = i.wasmexpr_is_not_null, RB = i.wasmexpr_is_null, cB = i.wasmexpr_like, hB = i.wasmexpr_lt, HB = i.wasmexpr_lte, qB = i.wasmexpr_mul, UB = i.wasmexpr_neq, SB = i.wasmexpr_not, FB = i.wasmexpr_not_in, LB = i.wasmexpr_or, sB = i.wasmexpr_rlike, pB = i.wasmexpr_sub, OB = i.wasmexpr_to_json, xB = i.wasmexpr_to_sql, jB = i.wasmexpr_xor, tB = i.wasmexprarray_len, TB = i.wasmexprarray_push, dB = i.wasmexprarray_push_col, lB = i.wasmexprarray_push_float, ZB = i.wasmexprarray_push_int, zB = i.wasmexprarray_push_star, mB = i.wasmexprarray_push_str, VB = i.wasminsertbuilder_build, PB = i.wasminsertbuilder_columns, eB = i.wasminsertbuilder_new, rB = i.wasminsertbuilder_query, bB = i.wasminsertbuilder_to_sql, fB = i.wasminsertbuilder_values, WB = i.wasmmergebuilder_build, vB = i.wasmmergebuilder_new, XB = i.wasmmergebuilder_to_sql, uB = i.wasmmergebuilder_using, nB = i.wasmmergebuilder_when_matched_delete, _B = i.wasmmergebuilder_when_matched_update, $B = i.wasmmergebuilder_when_not_matched_insert, AE = i.wasmselectbuilder_build, gE = i.wasmselectbuilder_cross_join, IE = i.wasmselectbuilder_ctas, QE = i.wasmselectbuilder_ctas_sql, CE = i.wasmselectbuilder_distinct, BE = i.wasmselectbuilder_except_, EE = i.wasmselectbuilder_for_update, DE = i.wasmselectbuilder_from, iE = i.wasmselectbuilder_from_expr, wE = i.wasmselectbuilder_group_by_cols, oE = i.wasmselectbuilder_having, GE = i.wasmselectbuilder_hint, NE = i.wasmselectbuilder_intersect, kE = i.wasmselectbuilder_join, ME = i.wasmselectbuilder_lateral_view, KE = i.wasmselectbuilder_left_join, aE = i.wasmselectbuilder_limit, JE = i.wasmselectbuilder_new, YE = i.wasmselectbuilder_offset, yE = i.wasmselectbuilder_order_by_exprs, RE = i.wasmselectbuilder_qualify, cE = i.wasmselectbuilder_right_join, hE = i.wasmselectbuilder_select_col, HE = i.wasmselectbuilder_select_expr, qE = i.wasmselectbuilder_select_exprs, UE = i.wasmselectbuilder_select_star, SE = i.wasmselectbuilder_sort_by_exprs, FE = i.wasmselectbuilder_to_sql, LE = i.wasmselectbuilder_union, sE = i.wasmselectbuilder_union_all, pE = i.wasmselectbuilder_where_expr, OE = i.wasmselectbuilder_where_sql, xE = i.wasmselectbuilder_window, jE = i.wasmsetopbuilder_build, tE = i.wasmsetopbuilder_limit, TE = i.wasmsetopbuilder_offset, dE = i.wasmsetopbuilder_order_by_exprs, lE = i.wasmsetopbuilder_to_sql, ZE = i.wasmupdatebuilder_build, zE = i.wasmupdatebuilder_from, mE = i.wasmupdatebuilder_new, VE = i.wasmupdatebuilder_set, PE = i.wasmupdatebuilder_to_sql, eE = i.wasmupdatebuilder_where_expr, rE = i.wasmwindowdefbuilder_new, bE = i.wasmwindowdefbuilder_order_by, fE = i.wasmwindowdefbuilder_partition_by, WE = i.wasmexprarray_new, vE = i.__wbindgen_export, XE = i.__wbindgen_export2, uE = i.__wbindgen_export3, nE = i.__wbindgen_export4, _E = i.__wbindgen_add_to_stack_pointer, $E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2131
2142
  __proto__: null,
2132
- __wbg_wasmassignmentarray_free: jQ,
2133
- __wbg_wasmcasebuilder_free: OQ,
2134
- __wbg_wasmdeletebuilder_free: tQ,
2135
- __wbg_wasmexpr_free: lQ,
2136
- __wbg_wasmexprarray_free: dQ,
2137
- __wbg_wasminsertbuilder_free: ZQ,
2138
- __wbg_wasmmergebuilder_free: zQ,
2139
- __wbg_wasmselectbuilder_free: VQ,
2140
- __wbg_wasmsetopbuilder_free: mQ,
2141
- __wbg_wasmupdatebuilder_free: PQ,
2142
- __wbg_wasmwindowdefbuilder_free: eQ,
2143
- __wbindgen_add_to_stack_pointer: fE,
2144
- __wbindgen_export: rE,
2145
- __wbindgen_export2: WE,
2146
- __wbindgen_export3: bE,
2147
- __wbindgen_export4: vE,
2148
- ast_add_where: rQ,
2149
- ast_get_aggregate_functions: WQ,
2150
- ast_get_column_names: bQ,
2151
- ast_get_functions: vQ,
2152
- ast_get_literals: fQ,
2153
- ast_get_subqueries: uQ,
2154
- ast_get_table_names: nQ,
2155
- ast_get_window_functions: XQ,
2156
- ast_node_count: _Q,
2157
- ast_qualify_columns: $Q,
2158
- ast_remove_where: AC,
2159
- ast_rename_columns: gC,
2160
- ast_rename_tables: IC,
2161
- ast_set_distinct: QC,
2162
- ast_set_limit: CC,
2163
- diff_sql: BC,
2164
- format_sql: EC,
2165
- format_sql_value: DC,
2166
- format_sql_with_options: iC,
2167
- format_sql_with_options_value: wC,
2168
- generate: oC,
2169
- generate_value: GC,
2170
- get_dialects: NC,
2171
- get_dialects_value: kC,
2172
- lineage_sql: MC,
2173
- memory: xQ,
2174
- parse: KC,
2175
- parse_value: JC,
2176
- plan: YC,
2177
- source_tables: aC,
2178
- tokenize: RC,
2179
- tokenize_value: yC,
2143
+ __wbg_wasmassignmentarray_free: dQ,
2144
+ __wbg_wasmcasebuilder_free: lQ,
2145
+ __wbg_wasmdeletebuilder_free: ZQ,
2146
+ __wbg_wasmexpr_free: zQ,
2147
+ __wbg_wasmexprarray_free: mQ,
2148
+ __wbg_wasminsertbuilder_free: VQ,
2149
+ __wbg_wasmmergebuilder_free: PQ,
2150
+ __wbg_wasmselectbuilder_free: eQ,
2151
+ __wbg_wasmsetopbuilder_free: rQ,
2152
+ __wbg_wasmupdatebuilder_free: bQ,
2153
+ __wbg_wasmwindowdefbuilder_free: fQ,
2154
+ __wbindgen_add_to_stack_pointer: _E,
2155
+ __wbindgen_export: vE,
2156
+ __wbindgen_export2: XE,
2157
+ __wbindgen_export3: uE,
2158
+ __wbindgen_export4: nE,
2159
+ ast_add_where: WQ,
2160
+ ast_get_aggregate_functions: vQ,
2161
+ ast_get_column_names: XQ,
2162
+ ast_get_functions: uQ,
2163
+ ast_get_literals: nQ,
2164
+ ast_get_subqueries: _Q,
2165
+ ast_get_table_names: $Q,
2166
+ ast_get_window_functions: AC,
2167
+ ast_node_count: gC,
2168
+ ast_qualify_columns: IC,
2169
+ ast_remove_where: QC,
2170
+ ast_rename_columns: CC,
2171
+ ast_rename_tables: BC,
2172
+ ast_set_distinct: EC,
2173
+ ast_set_limit: DC,
2174
+ diff_sql: iC,
2175
+ format_sql: wC,
2176
+ format_sql_value: oC,
2177
+ format_sql_with_options: GC,
2178
+ format_sql_with_options_value: NC,
2179
+ generate: kC,
2180
+ generate_value: MC,
2181
+ get_dialects: KC,
2182
+ get_dialects_value: aC,
2183
+ lineage_sql: JC,
2184
+ lineage_sql_with_schema: YC,
2185
+ memory: TQ,
2186
+ parse: yC,
2187
+ parse_value: RC,
2188
+ plan: cC,
2189
+ source_tables: hC,
2190
+ tokenize: HC,
2191
+ tokenize_value: qC,
2180
2192
  transpile: UC,
2181
- transpile_value: HC,
2182
- validate: hC,
2183
- validate_with_options: qC,
2184
- validate_with_schema: cC,
2185
- version: FC,
2186
- wasm_alias: SC,
2187
- wasm_and: LC,
2188
- wasm_boolean: sC,
2189
- wasm_case_of: pC,
2193
+ transpile_value: SC,
2194
+ validate: FC,
2195
+ validate_with_options: LC,
2196
+ validate_with_schema: sC,
2197
+ version: pC,
2198
+ wasm_alias: OC,
2199
+ wasm_and: xC,
2200
+ wasm_boolean: jC,
2201
+ wasm_case_of: tC,
2190
2202
  wasm_cast: TC,
2191
- wasm_col: xC,
2192
- wasm_count_distinct: jC,
2193
- wasm_extract: OC,
2194
- wasm_func: tC,
2195
- wasm_lit: lC,
2196
- wasm_not: dC,
2197
- wasm_null: ZC,
2198
- wasm_or: zC,
2199
- wasm_sql_expr: VC,
2200
- wasm_star: mC,
2201
- wasm_subquery: PC,
2202
- wasm_table: eC,
2203
- wasmassignmentarray_len: rC,
2204
- wasmassignmentarray_new: WC,
2205
- wasmassignmentarray_push: bC,
2206
- wasmcasebuilder_build_expr: vC,
2207
- wasmcasebuilder_else_: fC,
2208
- wasmcasebuilder_new: uC,
2209
- wasmcasebuilder_to_sql: nC,
2210
- wasmcasebuilder_when: XC,
2211
- wasmdeletebuilder_build: _C,
2212
- wasmdeletebuilder_new: $C,
2213
- wasmdeletebuilder_to_sql: AB,
2214
- wasmdeletebuilder_where_expr: gB,
2215
- wasmexpr_add: IB,
2216
- wasmexpr_alias: QB,
2217
- wasmexpr_and: CB,
2218
- wasmexpr_asc: BB,
2219
- wasmexpr_between: EB,
2220
- wasmexpr_cast: DB,
2221
- wasmexpr_desc: iB,
2222
- wasmexpr_div: wB,
2223
- wasmexpr_eq: oB,
2224
- wasmexpr_gt: GB,
2225
- wasmexpr_gte: NB,
2226
- wasmexpr_ilike: kB,
2227
- wasmexpr_in_list: MB,
2228
- wasmexpr_is_not_null: KB,
2229
- wasmexpr_is_null: JB,
2230
- wasmexpr_like: YB,
2231
- wasmexpr_lt: aB,
2232
- wasmexpr_lte: RB,
2233
- wasmexpr_mul: yB,
2203
+ wasm_col: dC,
2204
+ wasm_count_distinct: lC,
2205
+ wasm_extract: ZC,
2206
+ wasm_func: zC,
2207
+ wasm_lit: mC,
2208
+ wasm_not: VC,
2209
+ wasm_null: PC,
2210
+ wasm_or: eC,
2211
+ wasm_sql_expr: rC,
2212
+ wasm_star: bC,
2213
+ wasm_subquery: fC,
2214
+ wasm_table: WC,
2215
+ wasmassignmentarray_len: vC,
2216
+ wasmassignmentarray_new: XC,
2217
+ wasmassignmentarray_push: uC,
2218
+ wasmcasebuilder_build_expr: nC,
2219
+ wasmcasebuilder_else_: _C,
2220
+ wasmcasebuilder_new: $C,
2221
+ wasmcasebuilder_to_sql: AB,
2222
+ wasmcasebuilder_when: gB,
2223
+ wasmdeletebuilder_build: IB,
2224
+ wasmdeletebuilder_new: QB,
2225
+ wasmdeletebuilder_to_sql: CB,
2226
+ wasmdeletebuilder_where_expr: BB,
2227
+ wasmexpr_add: EB,
2228
+ wasmexpr_alias: DB,
2229
+ wasmexpr_and: iB,
2230
+ wasmexpr_asc: wB,
2231
+ wasmexpr_between: oB,
2232
+ wasmexpr_cast: GB,
2233
+ wasmexpr_desc: NB,
2234
+ wasmexpr_div: kB,
2235
+ wasmexpr_eq: MB,
2236
+ wasmexpr_gt: KB,
2237
+ wasmexpr_gte: aB,
2238
+ wasmexpr_ilike: JB,
2239
+ wasmexpr_in_list: YB,
2240
+ wasmexpr_is_not_null: yB,
2241
+ wasmexpr_is_null: RB,
2242
+ wasmexpr_like: cB,
2243
+ wasmexpr_lt: hB,
2244
+ wasmexpr_lte: HB,
2245
+ wasmexpr_mul: qB,
2234
2246
  wasmexpr_neq: UB,
2235
- wasmexpr_not: HB,
2236
- wasmexpr_not_in: hB,
2237
- wasmexpr_or: qB,
2238
- wasmexpr_rlike: cB,
2239
- wasmexpr_sub: FB,
2240
- wasmexpr_to_json: SB,
2241
- wasmexpr_to_sql: LB,
2242
- wasmexpr_xor: sB,
2243
- wasmexprarray_len: pB,
2244
- wasmexprarray_new: eE,
2247
+ wasmexpr_not: SB,
2248
+ wasmexpr_not_in: FB,
2249
+ wasmexpr_or: LB,
2250
+ wasmexpr_rlike: sB,
2251
+ wasmexpr_sub: pB,
2252
+ wasmexpr_to_json: OB,
2253
+ wasmexpr_to_sql: xB,
2254
+ wasmexpr_xor: jB,
2255
+ wasmexprarray_len: tB,
2256
+ wasmexprarray_new: WE,
2245
2257
  wasmexprarray_push: TB,
2246
- wasmexprarray_push_col: xB,
2247
- wasmexprarray_push_float: jB,
2248
- wasmexprarray_push_int: OB,
2249
- wasmexprarray_push_star: tB,
2250
- wasmexprarray_push_str: lB,
2251
- wasminsertbuilder_build: dB,
2252
- wasminsertbuilder_columns: ZB,
2253
- wasminsertbuilder_new: zB,
2254
- wasminsertbuilder_query: VB,
2255
- wasminsertbuilder_to_sql: mB,
2256
- wasminsertbuilder_values: PB,
2257
- wasmmergebuilder_build: eB,
2258
- wasmmergebuilder_new: rB,
2259
- wasmmergebuilder_to_sql: WB,
2260
- wasmmergebuilder_using: bB,
2261
- wasmmergebuilder_when_matched_delete: vB,
2262
- wasmmergebuilder_when_matched_update: fB,
2263
- wasmmergebuilder_when_not_matched_insert: uB,
2264
- wasmselectbuilder_build: nB,
2265
- wasmselectbuilder_cross_join: XB,
2266
- wasmselectbuilder_ctas: _B,
2267
- wasmselectbuilder_ctas_sql: $B,
2268
- wasmselectbuilder_distinct: AE,
2269
- wasmselectbuilder_except_: gE,
2270
- wasmselectbuilder_for_update: IE,
2271
- wasmselectbuilder_from: QE,
2272
- wasmselectbuilder_from_expr: CE,
2273
- wasmselectbuilder_group_by_cols: BE,
2274
- wasmselectbuilder_having: EE,
2275
- wasmselectbuilder_hint: DE,
2276
- wasmselectbuilder_intersect: iE,
2277
- wasmselectbuilder_join: wE,
2278
- wasmselectbuilder_lateral_view: oE,
2279
- wasmselectbuilder_left_join: GE,
2280
- wasmselectbuilder_limit: NE,
2281
- wasmselectbuilder_new: kE,
2282
- wasmselectbuilder_offset: ME,
2283
- wasmselectbuilder_order_by_exprs: KE,
2284
- wasmselectbuilder_qualify: JE,
2285
- wasmselectbuilder_right_join: YE,
2286
- wasmselectbuilder_select_col: aE,
2287
- wasmselectbuilder_select_expr: RE,
2288
- wasmselectbuilder_select_exprs: yE,
2258
+ wasmexprarray_push_col: dB,
2259
+ wasmexprarray_push_float: lB,
2260
+ wasmexprarray_push_int: ZB,
2261
+ wasmexprarray_push_star: zB,
2262
+ wasmexprarray_push_str: mB,
2263
+ wasminsertbuilder_build: VB,
2264
+ wasminsertbuilder_columns: PB,
2265
+ wasminsertbuilder_new: eB,
2266
+ wasminsertbuilder_query: rB,
2267
+ wasminsertbuilder_to_sql: bB,
2268
+ wasminsertbuilder_values: fB,
2269
+ wasmmergebuilder_build: WB,
2270
+ wasmmergebuilder_new: vB,
2271
+ wasmmergebuilder_to_sql: XB,
2272
+ wasmmergebuilder_using: uB,
2273
+ wasmmergebuilder_when_matched_delete: nB,
2274
+ wasmmergebuilder_when_matched_update: _B,
2275
+ wasmmergebuilder_when_not_matched_insert: $B,
2276
+ wasmselectbuilder_build: AE,
2277
+ wasmselectbuilder_cross_join: gE,
2278
+ wasmselectbuilder_ctas: IE,
2279
+ wasmselectbuilder_ctas_sql: QE,
2280
+ wasmselectbuilder_distinct: CE,
2281
+ wasmselectbuilder_except_: BE,
2282
+ wasmselectbuilder_for_update: EE,
2283
+ wasmselectbuilder_from: DE,
2284
+ wasmselectbuilder_from_expr: iE,
2285
+ wasmselectbuilder_group_by_cols: wE,
2286
+ wasmselectbuilder_having: oE,
2287
+ wasmselectbuilder_hint: GE,
2288
+ wasmselectbuilder_intersect: NE,
2289
+ wasmselectbuilder_join: kE,
2290
+ wasmselectbuilder_lateral_view: ME,
2291
+ wasmselectbuilder_left_join: KE,
2292
+ wasmselectbuilder_limit: aE,
2293
+ wasmselectbuilder_new: JE,
2294
+ wasmselectbuilder_offset: YE,
2295
+ wasmselectbuilder_order_by_exprs: yE,
2296
+ wasmselectbuilder_qualify: RE,
2297
+ wasmselectbuilder_right_join: cE,
2298
+ wasmselectbuilder_select_col: hE,
2299
+ wasmselectbuilder_select_expr: HE,
2300
+ wasmselectbuilder_select_exprs: qE,
2289
2301
  wasmselectbuilder_select_star: UE,
2290
- wasmselectbuilder_sort_by_exprs: HE,
2291
- wasmselectbuilder_to_sql: hE,
2292
- wasmselectbuilder_union: qE,
2293
- wasmselectbuilder_union_all: cE,
2294
- wasmselectbuilder_where_expr: FE,
2295
- wasmselectbuilder_where_sql: SE,
2296
- wasmselectbuilder_window: LE,
2297
- wasmsetopbuilder_build: sE,
2298
- wasmsetopbuilder_limit: pE,
2302
+ wasmselectbuilder_sort_by_exprs: SE,
2303
+ wasmselectbuilder_to_sql: FE,
2304
+ wasmselectbuilder_union: LE,
2305
+ wasmselectbuilder_union_all: sE,
2306
+ wasmselectbuilder_where_expr: pE,
2307
+ wasmselectbuilder_where_sql: OE,
2308
+ wasmselectbuilder_window: xE,
2309
+ wasmsetopbuilder_build: jE,
2310
+ wasmsetopbuilder_limit: tE,
2299
2311
  wasmsetopbuilder_offset: TE,
2300
- wasmsetopbuilder_order_by_exprs: xE,
2301
- wasmsetopbuilder_to_sql: jE,
2302
- wasmupdatebuilder_build: OE,
2303
- wasmupdatebuilder_from: tE,
2304
- wasmupdatebuilder_new: lE,
2305
- wasmupdatebuilder_set: dE,
2306
- wasmupdatebuilder_to_sql: ZE,
2307
- wasmupdatebuilder_where_expr: zE,
2308
- wasmwindowdefbuilder_new: VE,
2309
- wasmwindowdefbuilder_order_by: mE,
2310
- wasmwindowdefbuilder_partition_by: PE
2312
+ wasmsetopbuilder_order_by_exprs: dE,
2313
+ wasmsetopbuilder_to_sql: lE,
2314
+ wasmupdatebuilder_build: ZE,
2315
+ wasmupdatebuilder_from: zE,
2316
+ wasmupdatebuilder_new: mE,
2317
+ wasmupdatebuilder_set: VE,
2318
+ wasmupdatebuilder_to_sql: PE,
2319
+ wasmupdatebuilder_where_expr: eE,
2320
+ wasmwindowdefbuilder_new: rE,
2321
+ wasmwindowdefbuilder_order_by: bE,
2322
+ wasmwindowdefbuilder_partition_by: fE
2311
2323
  }, Symbol.toStringTag, { value: "Module" }));
2312
- TQ(uE);
2313
- const Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2324
+ tQ($E);
2325
+ const sg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2314
2326
  __proto__: null,
2315
- WasmAssignmentArray: IA,
2316
- WasmCaseBuilder: r,
2317
- WasmDeleteBuilder: iA,
2327
+ WasmAssignmentArray: QA,
2328
+ WasmCaseBuilder: b,
2329
+ WasmDeleteBuilder: wA,
2318
2330
  WasmExpr: K,
2319
- WasmExprArray: T,
2320
- WasmInsertBuilder: wA,
2321
- WasmMergeBuilder: oA,
2322
- WasmSelectBuilder: j,
2331
+ WasmExprArray: O,
2332
+ WasmInsertBuilder: oA,
2333
+ WasmMergeBuilder: GA,
2334
+ WasmSelectBuilder: t,
2323
2335
  WasmSetOpBuilder: z,
2324
- WasmUpdateBuilder: GA,
2325
- WasmWindowDefBuilder: QA,
2326
- ast_add_where: fA,
2327
- ast_get_aggregate_functions: uA,
2328
- ast_get_column_names: nA,
2329
- ast_get_functions: XA,
2336
+ WasmUpdateBuilder: NA,
2337
+ WasmWindowDefBuilder: CA,
2338
+ ast_add_where: vA,
2339
+ ast_get_aggregate_functions: XA,
2340
+ ast_get_column_names: uA,
2341
+ ast_get_functions: nA,
2330
2342
  ast_get_literals: _A,
2331
2343
  ast_get_subqueries: $A,
2332
2344
  ast_get_table_names: Ag,
@@ -2339,44 +2351,45 @@ const Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2339
2351
  ast_set_distinct: Dg,
2340
2352
  ast_set_limit: ig,
2341
2353
  diff_sql: wg,
2342
- format_sql: wI,
2343
- format_sql_value: oI,
2344
- format_sql_with_options: GI,
2345
- format_sql_with_options_value: NI,
2346
- generate: kI,
2347
- generate_value: MI,
2348
- get_dialects: KI,
2349
- get_dialects_value: JI,
2354
+ format_sql: NI,
2355
+ format_sql_value: kI,
2356
+ format_sql_with_options: MI,
2357
+ format_sql_with_options_value: KI,
2358
+ generate: aI,
2359
+ generate_value: JI,
2360
+ get_dialects: YI,
2361
+ get_dialects_value: yI,
2350
2362
  lineage_sql: og,
2351
- parse: YI,
2352
- parse_value: aI,
2353
- plan: Gg,
2354
- source_tables: Ng,
2355
- tokenize: RI,
2356
- tokenize_value: yI,
2357
- transpile: UI,
2358
- transpile_value: HI,
2359
- validate: hI,
2360
- validate_with_options: qI,
2361
- validate_with_schema: kg,
2362
- version: cI,
2363
- wasm_alias: Mg,
2364
- wasm_and: Kg,
2363
+ lineage_sql_with_schema: Gg,
2364
+ parse: RI,
2365
+ parse_value: cI,
2366
+ plan: Ng,
2367
+ source_tables: kg,
2368
+ tokenize: hI,
2369
+ tokenize_value: HI,
2370
+ transpile: qI,
2371
+ transpile_value: UI,
2372
+ validate: SI,
2373
+ validate_with_options: FI,
2374
+ validate_with_schema: Mg,
2375
+ version: LI,
2376
+ wasm_alias: Kg,
2377
+ wasm_and: ag,
2365
2378
  wasm_boolean: Jg,
2366
2379
  wasm_case_of: Yg,
2367
- wasm_cast: ag,
2368
- wasm_col: HA,
2380
+ wasm_cast: yg,
2381
+ wasm_col: hA,
2369
2382
  wasm_count_distinct: Rg,
2370
- wasm_extract: yg,
2371
- wasm_func: Ug,
2372
- wasm_lit: NA,
2383
+ wasm_extract: cg,
2384
+ wasm_func: hg,
2385
+ wasm_lit: kA,
2373
2386
  wasm_not: Hg,
2374
- wasm_null: kA,
2375
- wasm_or: hg,
2376
- wasm_sql_expr: qg,
2377
- wasm_star: cg,
2387
+ wasm_null: MA,
2388
+ wasm_or: qg,
2389
+ wasm_sql_expr: Ug,
2390
+ wasm_star: Sg,
2378
2391
  wasm_subquery: Fg,
2379
- wasm_table: Sg
2392
+ wasm_table: Lg
2380
2393
  }, Symbol.toStringTag, { value: "Module" }));
2381
2394
  function s(g) {
2382
2395
  return Object.keys(g)[0];
@@ -2385,7 +2398,7 @@ function x(g) {
2385
2398
  const A = Object.keys(g)[0];
2386
2399
  return g[A];
2387
2400
  }
2388
- function V(g) {
2401
+ function m(g) {
2389
2402
  if (typeof g != "object" || g === null || Array.isArray(g))
2390
2403
  return !1;
2391
2404
  const A = Object.keys(g);
@@ -2393,64 +2406,64 @@ function V(g) {
2393
2406
  const Q = g[A[0]];
2394
2407
  return Q === null || typeof Q == "object" && !Array.isArray(Q);
2395
2408
  }
2396
- function d(g, A) {
2409
+ function l(g, A) {
2397
2410
  return { [g]: A };
2398
2411
  }
2399
- function Y(g) {
2412
+ function J(g) {
2400
2413
  return (A) => g in A;
2401
2414
  }
2402
- const sg = Y("select"), nE = Y("insert"), XE = Y("update"), _E = Y("delete"), $E = Y("union"), AD = Y("intersect"), gD = Y("except"), ID = Y("subquery"), QD = Y("identifier"), pg = Y("column"), CD = Y("table"), BD = Y("star"), Tg = Y("literal"), ED = Y("boolean"), DD = Y("null"), iD = Y("and"), wD = Y("or"), oD = Y("not"), GD = Y("eq"), ND = Y("neq"), kD = Y("lt"), MD = Y("lte"), KD = Y("gt"), JD = Y("gte"), YD = Y("like"), aD = Y("i_like"), RD = Y("add"), yD = Y("sub"), UD = Y("mul"), HD = Y("div"), hD = Y("mod"), qD = Y("concat"), cD = Y("in"), FD = Y("between"), SD = Y("is_null"), LD = Y("exists"), xg = Y("function"), sD = Y("aggregate_function"), pD = Y("window_function"), TD = Y("count"), xD = Y("sum"), jD = Y("avg"), OD = Y("min"), tD = Y("max"), lD = Y("coalesce"), dD = Y("null_if"), ZD = Y("cast"), zD = Y("try_cast"), VD = Y("safe_cast"), mD = Y("case"), PD = Y("from"), eD = Y("join"), rD = Y("where"), WD = Y("group_by"), bD = Y("having"), vD = Y("order_by"), fD = Y("limit"), uD = Y("offset"), nD = Y("with"), XD = Y("cte"), _D = Y("alias"), $D = Y("paren"), Ai = Y("ordered"), gi = Y("create_table"), Ii = Y("drop_table"), Qi = Y("alter_table"), Ci = Y("create_index"), Bi = Y("drop_index"), Ei = Y("create_view"), Di = Y("drop_view");
2403
- function ii(g) {
2415
+ const pg = J("select"), AD = J("insert"), gD = J("update"), ID = J("delete"), QD = J("union"), CD = J("intersect"), BD = J("except"), ED = J("subquery"), DD = J("identifier"), Og = J("column"), iD = J("table"), wD = J("star"), xg = J("literal"), oD = J("boolean"), GD = J("null"), ND = J("and"), kD = J("or"), MD = J("not"), KD = J("eq"), aD = J("neq"), JD = J("lt"), YD = J("lte"), yD = J("gt"), RD = J("gte"), cD = J("like"), hD = J("i_like"), HD = J("add"), qD = J("sub"), UD = J("mul"), SD = J("div"), FD = J("mod"), LD = J("concat"), sD = J("in"), pD = J("between"), OD = J("is_null"), xD = J("exists"), jg = J("function"), jD = J("aggregate_function"), tD = J("window_function"), TD = J("count"), dD = J("sum"), lD = J("avg"), ZD = J("min"), zD = J("max"), mD = J("coalesce"), VD = J("null_if"), PD = J("cast"), eD = J("try_cast"), rD = J("safe_cast"), bD = J("case"), fD = J("from"), WD = J("join"), vD = J("where"), XD = J("group_by"), uD = J("having"), nD = J("order_by"), _D = J("limit"), $D = J("offset"), Ai = J("with"), gi = J("cte"), Ii = J("alias"), Qi = J("paren"), Ci = J("ordered"), Bi = J("create_table"), Ei = J("drop_table"), Di = J("alter_table"), ii = J("create_index"), wi = J("drop_index"), oi = J("create_view"), Gi = J("drop_view");
2416
+ function Ni(g) {
2404
2417
  const A = s(g);
2405
2418
  return A === "select" || A === "insert" || A === "update" || A === "delete";
2406
2419
  }
2407
- function wi(g) {
2420
+ function ki(g) {
2408
2421
  const A = s(g);
2409
2422
  return A === "union" || A === "intersect" || A === "except";
2410
2423
  }
2411
- function oi(g) {
2424
+ function Mi(g) {
2412
2425
  const A = s(g);
2413
2426
  return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
2414
2427
  }
2415
- function Gi(g) {
2428
+ function Ki(g) {
2416
2429
  const A = s(g);
2417
2430
  return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
2418
2431
  }
2419
- function Ni(g) {
2432
+ function ai(g) {
2420
2433
  const A = s(g);
2421
2434
  return A === "and" || A === "or" || A === "not";
2422
2435
  }
2423
- function ki(g) {
2436
+ function Ji(g) {
2424
2437
  const A = s(g);
2425
2438
  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";
2426
2439
  }
2427
- function m(g) {
2440
+ function V(g) {
2428
2441
  return JSON.stringify(g);
2429
2442
  }
2430
- function b(g) {
2443
+ function W(g) {
2431
2444
  const A = JSON.parse(g);
2432
2445
  return A.success ? JSON.parse(A.ast) : null;
2433
2446
  }
2434
- function jg(g, A, Q) {
2447
+ function tg(g, A, Q) {
2435
2448
  if (g == null) return g;
2436
2449
  if (Array.isArray(g))
2437
- return g.length > 0 && V(g[0]) ? g.map(
2438
- (C, B) => DA(C, A, Q, null, B)
2439
- ) : g.length > 0 && Array.isArray(g[0]) ? g.map((C) => Array.isArray(C) ? C.map((B, E) => V(B) ? DA(B, A, Q, null, E) : B) : C) : g;
2440
- if (V(g))
2441
- return DA(g, A, Q, null, null);
2450
+ return g.length > 0 && m(g[0]) ? g.map(
2451
+ (C, B) => iA(C, A, Q, null, B)
2452
+ ) : g.length > 0 && Array.isArray(g[0]) ? g.map((C) => Array.isArray(C) ? C.map((B, E) => m(B) ? iA(B, A, Q, null, E) : B) : C) : g;
2453
+ if (m(g))
2454
+ return iA(g, A, Q, null, null);
2442
2455
  if (typeof g == "object") {
2443
2456
  const B = { ...g };
2444
2457
  let E = !1;
2445
2458
  for (const [D, o] of Object.entries(B)) {
2446
- const k = jg(o, A, Q);
2459
+ const k = tg(o, A, Q);
2447
2460
  k !== o && (B[D] = k, E = !0);
2448
2461
  }
2449
2462
  return E ? B : g;
2450
2463
  }
2451
2464
  return g;
2452
2465
  }
2453
- function DA(g, A, Q, C, B) {
2466
+ function iA(g, A, Q, C, B) {
2454
2467
  let E = g;
2455
2468
  if (A.enter) {
2456
2469
  const y = A.enter(E, Q, C, B);
@@ -2466,125 +2479,125 @@ function DA(g, A, Q, C, B) {
2466
2479
  y !== void 0 && (E = y);
2467
2480
  }
2468
2481
  const k = s(E), M = x(E);
2469
- let J;
2482
+ let a;
2470
2483
  if (M == null)
2471
- J = d(k, M);
2484
+ a = l(k, M);
2472
2485
  else {
2473
2486
  const y = { ...M };
2474
- for (const [F, p] of Object.entries(y)) {
2475
- const l = jg(p, A, E);
2476
- l !== p && (y[F] = l);
2487
+ for (const [S, p] of Object.entries(y)) {
2488
+ const j = tg(p, A, E);
2489
+ j !== p && (y[S] = j);
2477
2490
  }
2478
- J = d(k, y);
2491
+ a = l(k, y);
2479
2492
  }
2480
2493
  if (A.leave) {
2481
- const y = A.leave(J, Q, C, B);
2494
+ const y = A.leave(a, Q, C, B);
2482
2495
  if (y != null)
2483
2496
  return y;
2484
2497
  }
2485
- return J;
2498
+ return a;
2486
2499
  }
2487
- function KA(g, A) {
2488
- return DA(g, A, null, null, null);
2500
+ function aA(g, A) {
2501
+ return iA(g, A, null, null, null);
2489
2502
  }
2490
- function Og(g, A, Q) {
2491
- return KA(g, {
2503
+ function Tg(g, A, Q) {
2504
+ return aA(g, {
2492
2505
  enter: (C, B) => {
2493
2506
  if (A(C, B))
2494
2507
  return typeof Q == "function" ? Q(C) : Q;
2495
2508
  }
2496
2509
  });
2497
2510
  }
2498
- function Mi(g, A, Q) {
2499
- return Og(
2511
+ function Yi(g, A, Q) {
2512
+ return Tg(
2500
2513
  g,
2501
2514
  (C) => s(C) === A,
2502
2515
  typeof Q == "function" ? (C) => Q(C) : Q
2503
2516
  );
2504
2517
  }
2505
- function tg(g, A) {
2506
- return b(
2507
- Bg(m(g), JSON.stringify(A))
2518
+ function dg(g, A) {
2519
+ return W(
2520
+ Bg(V(g), JSON.stringify(A))
2508
2521
  ) ?? g;
2509
2522
  }
2510
- function Ki(g, A) {
2511
- return b(
2512
- Eg(m(g), JSON.stringify(A))
2523
+ function yi(g, A) {
2524
+ return W(
2525
+ Eg(V(g), JSON.stringify(A))
2513
2526
  ) ?? g;
2514
2527
  }
2515
- function Ji(g, A) {
2516
- return b(
2517
- Qg(m(g), A)
2528
+ function Ri(g, A) {
2529
+ return W(
2530
+ Qg(V(g), A)
2518
2531
  ) ?? g;
2519
2532
  }
2520
- function Yi(g, A, Q = "and") {
2521
- return b(
2522
- fA(m(g), m(A), Q === "or")
2533
+ function ci(g, A, Q = "and") {
2534
+ return W(
2535
+ vA(V(g), V(A), Q === "or")
2523
2536
  ) ?? g;
2524
2537
  }
2525
- function ai(g) {
2526
- return b(Cg(m(g))) ?? g;
2538
+ function hi(g) {
2539
+ return W(Cg(V(g))) ?? g;
2527
2540
  }
2528
- function Ri(g, ...A) {
2541
+ function Hi(g, ...A) {
2529
2542
  if (s(g) !== "select")
2530
2543
  return g;
2531
2544
  const Q = x(g);
2532
- return d("select", {
2545
+ return l("select", {
2533
2546
  ...Q,
2534
2547
  expressions: [...Q.expressions, ...A]
2535
2548
  });
2536
2549
  }
2537
- function yi(g, A) {
2550
+ function qi(g, A) {
2538
2551
  if (s(g) !== "select")
2539
2552
  return g;
2540
2553
  const Q = x(g);
2541
- return d("select", {
2554
+ return l("select", {
2542
2555
  ...Q,
2543
2556
  expressions: Q.expressions.filter((C) => !A(C))
2544
2557
  });
2545
2558
  }
2546
2559
  function Ui(g, A) {
2547
2560
  if (typeof A == "number")
2548
- return b(ig(m(g), A)) ?? g;
2561
+ return W(ig(V(g), A)) ?? g;
2549
2562
  if (s(g) !== "select")
2550
2563
  return g;
2551
2564
  const Q = x(g);
2552
- return d("select", {
2565
+ return l("select", {
2553
2566
  ...Q,
2554
2567
  limit: { this: A }
2555
2568
  });
2556
2569
  }
2557
- function Hi(g, A) {
2570
+ function Si(g, A) {
2558
2571
  if (s(g) !== "select")
2559
2572
  return g;
2560
- const Q = x(g), C = typeof A == "number" ? d("literal", { literal_type: "number", value: String(A) }) : A;
2561
- return d("select", {
2573
+ const Q = x(g), C = typeof A == "number" ? l("literal", { literal_type: "number", value: String(A) }) : A;
2574
+ return l("select", {
2562
2575
  ...Q,
2563
2576
  offset: { this: C }
2564
2577
  });
2565
2578
  }
2566
- function hi(g) {
2579
+ function Fi(g) {
2567
2580
  if (s(g) !== "select")
2568
2581
  return g;
2569
2582
  const A = x(g);
2570
- return d("select", {
2583
+ return l("select", {
2571
2584
  ...A,
2572
2585
  limit: null,
2573
2586
  offset: null
2574
2587
  });
2575
2588
  }
2576
- function qi(g, A = !0) {
2577
- return b(Dg(m(g), A)) ?? g;
2589
+ function Li(g, A = !0) {
2590
+ return W(Dg(V(g), A)) ?? g;
2578
2591
  }
2579
- function ci(g) {
2580
- return KA(g, {});
2592
+ function si(g) {
2593
+ return aA(g, {});
2581
2594
  }
2582
2595
  function lg(g, A, Q) {
2583
2596
  if (g == null) return g;
2584
2597
  if (Array.isArray(g))
2585
- return g.length > 0 && V(g[0]) ? g.filter((C) => !A(C, Q)).map((C) => UA(C, A)) : g;
2586
- if (V(g))
2587
- return UA(g, A);
2598
+ return g.length > 0 && m(g[0]) ? g.filter((C) => !A(C, Q)).map((C) => cA(C, A)) : g;
2599
+ if (m(g))
2600
+ return cA(g, A);
2588
2601
  if (typeof g == "object") {
2589
2602
  const B = { ...g };
2590
2603
  let E = !1;
@@ -2596,137 +2609,137 @@ function lg(g, A, Q) {
2596
2609
  }
2597
2610
  return g;
2598
2611
  }
2599
- function UA(g, A) {
2612
+ function cA(g, A) {
2600
2613
  const Q = s(g), B = { ...x(g) };
2601
2614
  for (const [E, D] of Object.entries(B)) {
2602
2615
  const o = lg(D, A, g);
2603
2616
  o !== D && (B[E] = o);
2604
2617
  }
2605
- return d(Q, B);
2618
+ return l(Q, B);
2606
2619
  }
2607
2620
  function P(g) {
2608
2621
  return JSON.stringify(g);
2609
2622
  }
2610
- function dg(g, A, Q) {
2623
+ function Zg(g, A, Q) {
2611
2624
  if (g != null) {
2612
2625
  if (Array.isArray(g)) {
2613
- if (g.length > 0 && V(g[0]))
2626
+ if (g.length > 0 && m(g[0]))
2614
2627
  Q.push({ key: A, value: g });
2615
2628
  else if (g.length > 0 && Array.isArray(g[0])) {
2616
2629
  for (const C of g)
2617
2630
  if (Array.isArray(C))
2618
2631
  for (const B of C)
2619
- V(B) && Q.push({ key: A, value: B });
2632
+ m(B) && Q.push({ key: A, value: B });
2620
2633
  }
2621
- } else if (V(g))
2634
+ } else if (m(g))
2622
2635
  Q.push({ key: A, value: g });
2623
2636
  else if (typeof g == "object")
2624
2637
  for (const [, C] of Object.entries(
2625
2638
  g
2626
2639
  ))
2627
- dg(C, A, Q);
2640
+ Zg(C, A, Q);
2628
2641
  }
2629
2642
  }
2630
- function Zg(g) {
2643
+ function zg(g) {
2631
2644
  const A = [], Q = x(g);
2632
2645
  if (!Q || typeof Q != "object") return A;
2633
2646
  for (const [C, B] of Object.entries(Q))
2634
- dg(B, C, A);
2647
+ Zg(B, C, A);
2635
2648
  return A;
2636
2649
  }
2637
- function t(g, A, Q = null, C = null, B = null) {
2650
+ function d(g, A, Q = null, C = null, B = null) {
2638
2651
  A.enter && A.enter(g, Q, C, B);
2639
2652
  const E = s(g), D = A[E];
2640
2653
  D && D(g, Q, C, B);
2641
- const o = Zg(g);
2654
+ const o = zg(g);
2642
2655
  for (const k of o)
2643
- Array.isArray(k.value) ? k.value.forEach((M, J) => {
2644
- t(M, A, g, k.key, J);
2645
- }) : t(k.value, A, g, k.key, null);
2656
+ Array.isArray(k.value) ? k.value.forEach((M, a) => {
2657
+ d(M, A, g, k.key, a);
2658
+ }) : d(k.value, A, g, k.key, null);
2646
2659
  A.leave && A.leave(g, Q, C, B);
2647
2660
  }
2648
2661
  function JA(g, A) {
2649
2662
  const Q = [];
2650
- return t(g, {
2663
+ return d(g, {
2651
2664
  enter: (C, B) => {
2652
2665
  A(C, B) && Q.push(C);
2653
2666
  }
2654
2667
  }), Q;
2655
2668
  }
2656
- function CA(g, A) {
2669
+ function BA(g, A) {
2657
2670
  return JA(g, (Q) => s(Q) === A);
2658
2671
  }
2659
- function zg(g, A) {
2672
+ function mg(g, A) {
2660
2673
  let Q, C = !1;
2661
- return t(g, {
2674
+ return d(g, {
2662
2675
  enter: (B, E) => {
2663
2676
  !C && A(B, E) && (Q = B, C = !0);
2664
2677
  }
2665
2678
  }), Q;
2666
2679
  }
2667
- function Fi(g, A) {
2668
- return zg(g, A) !== void 0;
2680
+ function pi(g, A) {
2681
+ return mg(g, A) !== void 0;
2669
2682
  }
2670
- function Si(g, A) {
2683
+ function Oi(g, A) {
2671
2684
  let Q = !0;
2672
- return t(g, {
2685
+ return d(g, {
2673
2686
  enter: (C, B) => {
2674
2687
  A(C, B) || (Q = !1);
2675
2688
  }
2676
2689
  }), Q;
2677
2690
  }
2678
- function Li(g, A) {
2691
+ function xi(g, A) {
2679
2692
  return JA(g, A).length;
2680
2693
  }
2681
2694
  function Vg(g) {
2682
- return CA(g, "column");
2695
+ return BA(g, "column");
2683
2696
  }
2684
- function si(g) {
2685
- return CA(g, "table");
2697
+ function ji(g) {
2698
+ return BA(g, "table");
2686
2699
  }
2687
- function pi(g) {
2688
- return CA(g, "identifier");
2700
+ function ti(g) {
2701
+ return BA(g, "identifier");
2689
2702
  }
2690
2703
  function Ti(g) {
2691
- const A = JSON.parse(XA(P(g)));
2704
+ const A = JSON.parse(nA(P(g)));
2692
2705
  return A.success ? JSON.parse(A.ast) : [];
2693
2706
  }
2694
- function gA(g) {
2695
- const A = JSON.parse(uA(P(g)));
2707
+ function IA(g) {
2708
+ const A = JSON.parse(XA(P(g)));
2696
2709
  return A.success ? JSON.parse(A.ast) : [];
2697
2710
  }
2698
- function mg(g) {
2711
+ function Pg(g) {
2699
2712
  const A = JSON.parse(gg(P(g)));
2700
2713
  return A.success ? JSON.parse(A.ast) : [];
2701
2714
  }
2702
- function Pg(g) {
2715
+ function eg(g) {
2703
2716
  const A = JSON.parse($A(P(g)));
2704
2717
  return A.success ? JSON.parse(A.ast) : [];
2705
2718
  }
2706
- function xi(g) {
2719
+ function di(g) {
2707
2720
  const A = JSON.parse(_A(P(g)));
2708
2721
  return A.success ? JSON.parse(A.ast) : [];
2709
2722
  }
2710
- function ji(g) {
2711
- const A = JSON.parse(nA(P(g)));
2723
+ function li(g) {
2724
+ const A = JSON.parse(uA(P(g)));
2712
2725
  return A.success ? A.result : [];
2713
2726
  }
2714
- function Oi(g) {
2727
+ function Zi(g) {
2715
2728
  const A = JSON.parse(Ag(P(g)));
2716
2729
  return A.success ? A.result : [];
2717
2730
  }
2718
- function eg(g) {
2719
- return gA(g).length > 0;
2720
- }
2721
- function ti(g) {
2722
- return mg(g).length > 0;
2731
+ function rg(g) {
2732
+ return IA(g).length > 0;
2723
2733
  }
2724
- function li(g) {
2734
+ function zi(g) {
2725
2735
  return Pg(g).length > 0;
2726
2736
  }
2727
- function di(g) {
2737
+ function mi(g) {
2738
+ return eg(g).length > 0;
2739
+ }
2740
+ function Vi(g) {
2728
2741
  let A = 0, Q = 0;
2729
- return t(g, {
2742
+ return d(g, {
2730
2743
  enter: () => {
2731
2744
  Q++, A = Math.max(A, Q);
2732
2745
  },
@@ -2735,22 +2748,22 @@ function di(g) {
2735
2748
  }
2736
2749
  }), A;
2737
2750
  }
2738
- function Zi(g) {
2751
+ function Pi(g) {
2739
2752
  const A = JSON.parse(Ig(P(g)));
2740
2753
  return A.success ? A.result : 0;
2741
2754
  }
2742
- function zi(g, A) {
2755
+ function ei(g, A) {
2743
2756
  let Q = null;
2744
- return t(g, {
2757
+ return d(g, {
2745
2758
  enter: (C, B) => {
2746
2759
  C === A && (Q = B);
2747
2760
  }
2748
2761
  }), Q;
2749
2762
  }
2750
- function Vi(g, A, Q) {
2763
+ function ri(g, A, Q) {
2751
2764
  const C = [];
2752
2765
  let B = null;
2753
- return t(g, {
2766
+ return d(g, {
2754
2767
  enter: (E) => {
2755
2768
  if (B === null) {
2756
2769
  if (E === A)
@@ -2769,9 +2782,9 @@ function Vi(g, A, Q) {
2769
2782
  }
2770
2783
  }), B;
2771
2784
  }
2772
- function mi(g, A) {
2785
+ function bi(g, A) {
2773
2786
  let Q = 0, C = 0;
2774
- return t(g, {
2787
+ return d(g, {
2775
2788
  enter: (B) => {
2776
2789
  C++, B === A && (Q = C);
2777
2790
  },
@@ -2780,138 +2793,138 @@ function mi(g, A) {
2780
2793
  }
2781
2794
  }), Q;
2782
2795
  }
2783
- const Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2796
+ const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2784
2797
  __proto__: null,
2785
- addSelectColumns: Ri,
2786
- addWhere: Yi,
2787
- clone: ci,
2788
- countNodes: Li,
2789
- every: Si,
2798
+ addSelectColumns: Hi,
2799
+ addWhere: ci,
2800
+ clone: si,
2801
+ countNodes: xi,
2802
+ every: Oi,
2790
2803
  findAll: JA,
2791
- findAncestor: Vi,
2792
- findByType: CA,
2793
- findFirst: zg,
2794
- getAggregateFunctions: gA,
2795
- getChildren: Zg,
2796
- getColumnNames: ji,
2804
+ findAncestor: ri,
2805
+ findByType: BA,
2806
+ findFirst: mg,
2807
+ getAggregateFunctions: IA,
2808
+ getChildren: zg,
2809
+ getColumnNames: li,
2797
2810
  getColumns: Vg,
2798
- getDepth: di,
2811
+ getDepth: Vi,
2799
2812
  getExprData: x,
2800
2813
  getExprType: s,
2801
2814
  getFunctions: Ti,
2802
- getIdentifiers: pi,
2803
- getLiterals: xi,
2804
- getNodeDepth: mi,
2805
- getParent: zi,
2806
- getSubqueries: Pg,
2807
- getTableNames: Oi,
2808
- getTables: si,
2809
- getWindowFunctions: mg,
2810
- hasAggregates: eg,
2811
- hasSubqueries: li,
2812
- hasWindowFunctions: ti,
2813
- isAdd: RD,
2814
- isAggregateFunction: sD,
2815
- isAlias: _D,
2816
- isAlterTable: Qi,
2817
- isAnd: iD,
2818
- isArithmetic: Gi,
2819
- isAvg: jD,
2820
- isBetween: FD,
2821
- isBoolean: ED,
2822
- isCase: mD,
2823
- isCast: ZD,
2824
- isCoalesce: lD,
2825
- isColumn: pg,
2826
- isComparison: oi,
2827
- isConcat: qD,
2815
+ getIdentifiers: ti,
2816
+ getLiterals: di,
2817
+ getNodeDepth: bi,
2818
+ getParent: ei,
2819
+ getSubqueries: eg,
2820
+ getTableNames: Zi,
2821
+ getTables: ji,
2822
+ getWindowFunctions: Pg,
2823
+ hasAggregates: rg,
2824
+ hasSubqueries: mi,
2825
+ hasWindowFunctions: zi,
2826
+ isAdd: HD,
2827
+ isAggregateFunction: jD,
2828
+ isAlias: Ii,
2829
+ isAlterTable: Di,
2830
+ isAnd: ND,
2831
+ isArithmetic: Ki,
2832
+ isAvg: lD,
2833
+ isBetween: pD,
2834
+ isBoolean: oD,
2835
+ isCase: bD,
2836
+ isCast: PD,
2837
+ isCoalesce: mD,
2838
+ isColumn: Og,
2839
+ isComparison: Mi,
2840
+ isConcat: LD,
2828
2841
  isCount: TD,
2829
- isCreateIndex: Ci,
2830
- isCreateTable: gi,
2831
- isCreateView: Ei,
2832
- isCte: XD,
2833
- isDDL: ki,
2834
- isDelete: _E,
2835
- isDiv: HD,
2836
- isDropIndex: Bi,
2837
- isDropTable: Ii,
2838
- isDropView: Di,
2839
- isEq: GD,
2840
- isExcept: gD,
2841
- isExists: LD,
2842
- isExpressionValue: V,
2843
- isFrom: PD,
2844
- isFunction: xg,
2845
- isGroupBy: WD,
2846
- isGt: KD,
2847
- isGte: JD,
2848
- isHaving: bD,
2849
- isILike: aD,
2850
- isIdentifier: QD,
2851
- isIn: cD,
2852
- isInsert: nE,
2853
- isIntersect: AD,
2854
- isIsNull: SD,
2855
- isJoin: eD,
2856
- isLike: YD,
2857
- isLimit: fD,
2858
- isLiteral: Tg,
2859
- isLogical: Ni,
2860
- isLt: kD,
2861
- isLte: MD,
2862
- isMax: tD,
2863
- isMin: OD,
2864
- isMod: hD,
2842
+ isCreateIndex: ii,
2843
+ isCreateTable: Bi,
2844
+ isCreateView: oi,
2845
+ isCte: gi,
2846
+ isDDL: Ji,
2847
+ isDelete: ID,
2848
+ isDiv: SD,
2849
+ isDropIndex: wi,
2850
+ isDropTable: Ei,
2851
+ isDropView: Gi,
2852
+ isEq: KD,
2853
+ isExcept: BD,
2854
+ isExists: xD,
2855
+ isExpressionValue: m,
2856
+ isFrom: fD,
2857
+ isFunction: jg,
2858
+ isGroupBy: XD,
2859
+ isGt: yD,
2860
+ isGte: RD,
2861
+ isHaving: uD,
2862
+ isILike: hD,
2863
+ isIdentifier: DD,
2864
+ isIn: sD,
2865
+ isInsert: AD,
2866
+ isIntersect: CD,
2867
+ isIsNull: OD,
2868
+ isJoin: WD,
2869
+ isLike: cD,
2870
+ isLimit: _D,
2871
+ isLiteral: xg,
2872
+ isLogical: ai,
2873
+ isLt: JD,
2874
+ isLte: YD,
2875
+ isMax: zD,
2876
+ isMin: ZD,
2877
+ isMod: FD,
2865
2878
  isMul: UD,
2866
- isNeq: ND,
2867
- isNot: oD,
2868
- isNullIf: dD,
2869
- isNullLiteral: DD,
2870
- isOffset: uD,
2871
- isOr: wD,
2872
- isOrderBy: vD,
2873
- isOrdered: Ai,
2874
- isParen: $D,
2875
- isQuery: ii,
2876
- isSafeCast: VD,
2877
- isSelect: sg,
2878
- isSetOperation: wi,
2879
- isStar: BD,
2880
- isSub: yD,
2881
- isSubquery: ID,
2882
- isSum: xD,
2883
- isTable: CD,
2884
- isTryCast: zD,
2885
- isUnion: $E,
2886
- isUpdate: XE,
2887
- isWhere: rD,
2888
- isWindowFunction: pD,
2889
- isWith: nD,
2890
- makeExpr: d,
2891
- nodeCount: Zi,
2892
- qualifyColumns: Ji,
2893
- remove: UA,
2894
- removeLimitOffset: hi,
2895
- removeSelectColumns: yi,
2896
- removeWhere: ai,
2897
- renameColumns: tg,
2898
- renameTables: Ki,
2899
- replaceByType: Mi,
2900
- replaceNodes: Og,
2901
- setDistinct: qi,
2879
+ isNeq: aD,
2880
+ isNot: MD,
2881
+ isNullIf: VD,
2882
+ isNullLiteral: GD,
2883
+ isOffset: $D,
2884
+ isOr: kD,
2885
+ isOrderBy: nD,
2886
+ isOrdered: Ci,
2887
+ isParen: Qi,
2888
+ isQuery: Ni,
2889
+ isSafeCast: rD,
2890
+ isSelect: pg,
2891
+ isSetOperation: ki,
2892
+ isStar: wD,
2893
+ isSub: qD,
2894
+ isSubquery: ED,
2895
+ isSum: dD,
2896
+ isTable: iD,
2897
+ isTryCast: eD,
2898
+ isUnion: QD,
2899
+ isUpdate: gD,
2900
+ isWhere: vD,
2901
+ isWindowFunction: tD,
2902
+ isWith: Ai,
2903
+ makeExpr: l,
2904
+ nodeCount: Pi,
2905
+ qualifyColumns: Ri,
2906
+ remove: cA,
2907
+ removeLimitOffset: Fi,
2908
+ removeSelectColumns: qi,
2909
+ removeWhere: hi,
2910
+ renameColumns: dg,
2911
+ renameTables: yi,
2912
+ replaceByType: Yi,
2913
+ replaceNodes: Tg,
2914
+ setDistinct: Li,
2902
2915
  setLimit: Ui,
2903
- setOffset: Hi,
2904
- some: Fi,
2905
- transform: KA,
2906
- walk: t
2916
+ setOffset: Si,
2917
+ some: pi,
2918
+ transform: aA,
2919
+ walk: d
2907
2920
  }, Symbol.toStringTag, { value: "Module" }));
2908
- function H(g) {
2909
- return g instanceof R ? g._w : typeof g == "string" ? HA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? NA(g) : kA();
2921
+ function h(g) {
2922
+ return g instanceof R ? g._w : typeof g == "string" ? hA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : MA();
2910
2923
  }
2911
- function O(g) {
2912
- const A = new T();
2924
+ function T(g) {
2925
+ const A = new O();
2913
2926
  for (const Q of g)
2914
- Q instanceof R ? A.push(Q._w) : typeof Q == "string" ? A.push_col(Q) : typeof Q == "number" ? Number.isInteger(Q) ? A.push_int(Q) : A.push_float(Q) : typeof Q == "boolean" || Q === null ? A.push(NA(Q)) : A.push(kA());
2927
+ Q instanceof R ? A.push(Q._w) : typeof Q == "string" ? A.push_col(Q) : typeof Q == "number" ? Number.isInteger(Q) ? A.push_int(Q) : A.push_float(Q) : typeof Q == "boolean" || Q === null ? A.push(kA(Q)) : A.push(MA());
2915
2928
  return A;
2916
2929
  }
2917
2930
  class R {
@@ -2923,58 +2936,58 @@ class R {
2923
2936
  }
2924
2937
  // -- Comparison --
2925
2938
  eq(A) {
2926
- return new R(this._w.eq(H(A)));
2939
+ return new R(this._w.eq(h(A)));
2927
2940
  }
2928
2941
  neq(A) {
2929
- return new R(this._w.neq(H(A)));
2942
+ return new R(this._w.neq(h(A)));
2930
2943
  }
2931
2944
  lt(A) {
2932
- return new R(this._w.lt(H(A)));
2945
+ return new R(this._w.lt(h(A)));
2933
2946
  }
2934
2947
  lte(A) {
2935
- return new R(this._w.lte(H(A)));
2948
+ return new R(this._w.lte(h(A)));
2936
2949
  }
2937
2950
  gt(A) {
2938
- return new R(this._w.gt(H(A)));
2951
+ return new R(this._w.gt(h(A)));
2939
2952
  }
2940
2953
  gte(A) {
2941
- return new R(this._w.gte(H(A)));
2954
+ return new R(this._w.gte(h(A)));
2942
2955
  }
2943
2956
  // -- Logical --
2944
2957
  and(A) {
2945
- return new R(this._w.and(H(A)));
2958
+ return new R(this._w.and(h(A)));
2946
2959
  }
2947
2960
  or(A) {
2948
- return new R(this._w.or(H(A)));
2961
+ return new R(this._w.or(h(A)));
2949
2962
  }
2950
2963
  not() {
2951
2964
  return new R(this._w.not());
2952
2965
  }
2953
2966
  xor(A) {
2954
- return new R(this._w.xor(H(A)));
2967
+ return new R(this._w.xor(h(A)));
2955
2968
  }
2956
2969
  // -- Arithmetic --
2957
2970
  add(A) {
2958
- return new R(this._w.add(H(A)));
2971
+ return new R(this._w.add(h(A)));
2959
2972
  }
2960
2973
  sub(A) {
2961
- return new R(this._w.sub(H(A)));
2974
+ return new R(this._w.sub(h(A)));
2962
2975
  }
2963
2976
  mul(A) {
2964
- return new R(this._w.mul(H(A)));
2977
+ return new R(this._w.mul(h(A)));
2965
2978
  }
2966
2979
  div(A) {
2967
- return new R(this._w.div(H(A)));
2980
+ return new R(this._w.div(h(A)));
2968
2981
  }
2969
2982
  // -- Pattern matching --
2970
2983
  like(A) {
2971
- return new R(this._w.like(H(A)));
2984
+ return new R(this._w.like(h(A)));
2972
2985
  }
2973
2986
  ilike(A) {
2974
- return new R(this._w.ilike(H(A)));
2987
+ return new R(this._w.ilike(h(A)));
2975
2988
  }
2976
2989
  rlike(A) {
2977
- return new R(this._w.rlike(H(A)));
2990
+ return new R(this._w.rlike(h(A)));
2978
2991
  }
2979
2992
  // -- Predicates --
2980
2993
  isNull() {
@@ -2984,13 +2997,13 @@ class R {
2984
2997
  return new R(this._w.is_not_null());
2985
2998
  }
2986
2999
  between(A, Q) {
2987
- return new R(this._w.between(H(A), H(Q)));
3000
+ return new R(this._w.between(h(A), h(Q)));
2988
3001
  }
2989
3002
  inList(...A) {
2990
- return new R(this._w.in_list(O(A)));
3003
+ return new R(this._w.in_list(T(A)));
2991
3004
  }
2992
3005
  notIn(...A) {
2993
- return new R(this._w.not_in(O(A)));
3006
+ return new R(this._w.not_in(T(A)));
2994
3007
  }
2995
3008
  // -- Transform --
2996
3009
  alias(A) {
@@ -3022,206 +3035,206 @@ class R {
3022
3035
  this._w.free();
3023
3036
  }
3024
3037
  }
3025
- class ei {
3038
+ class Wi {
3026
3039
  /** @internal WASM handle */
3027
3040
  _w;
3028
3041
  constructor() {
3029
- this._w = new QA();
3042
+ this._w = new CA();
3030
3043
  }
3031
3044
  /** Set the PARTITION BY expressions. */
3032
3045
  partitionBy(...A) {
3033
- return this._w.partition_by(O(A)), this;
3046
+ return this._w.partition_by(T(A)), this;
3034
3047
  }
3035
3048
  /** Set the ORDER BY expressions. */
3036
3049
  orderBy(...A) {
3037
- return this._w.order_by(O(A)), this;
3050
+ return this._w.order_by(T(A)), this;
3038
3051
  }
3039
3052
  /** Free the underlying WASM handle. */
3040
3053
  free() {
3041
3054
  this._w.free();
3042
3055
  }
3043
3056
  }
3044
- function ri(g) {
3045
- return new R(HA(g));
3057
+ function vi(g) {
3058
+ return new R(hA(g));
3046
3059
  }
3047
- function Wi(g) {
3048
- return new R(NA(g));
3060
+ function Xi(g) {
3061
+ return new R(kA(g));
3049
3062
  }
3050
- function rg() {
3051
- return new R(cg());
3063
+ function bg() {
3064
+ return new R(Sg());
3052
3065
  }
3053
- function bi() {
3054
- return new R(kA());
3066
+ function ui() {
3067
+ return new R(MA());
3055
3068
  }
3056
3069
  function qA(g) {
3057
3070
  return new R(Jg(g));
3058
3071
  }
3059
- function vi(g) {
3060
- return new R(Sg(g));
3072
+ function ni(g) {
3073
+ return new R(Lg(g));
3061
3074
  }
3062
- function Wg(g) {
3063
- return new R(qg(g));
3075
+ function fg(g) {
3076
+ return new R(Ug(g));
3064
3077
  }
3065
- function fi(g) {
3066
- return Wg(g);
3078
+ function _i(g) {
3079
+ return fg(g);
3067
3080
  }
3068
- function c(g, ...A) {
3069
- return new R(Ug(g, O(A)));
3081
+ function U(g, ...A) {
3082
+ return new R(hg(g, T(A)));
3070
3083
  }
3071
- function ui(g) {
3072
- return new R(Hg(H(g)));
3084
+ function $i(g) {
3085
+ return new R(Hg(h(g)));
3073
3086
  }
3074
- function ni(g, A) {
3075
- return new R(ag(H(g), A));
3087
+ function Aw(g, A) {
3088
+ return new R(yg(h(g), A));
3076
3089
  }
3077
- function Xi(g, A) {
3078
- return new R(Mg(H(g), A));
3090
+ function gw(g, A) {
3091
+ return new R(Kg(h(g), A));
3079
3092
  }
3080
- function _i(g, A) {
3093
+ function Iw(g, A) {
3081
3094
  return new R(Fg(g._w, A));
3082
3095
  }
3083
- function $i(...g) {
3096
+ function Qw(...g) {
3084
3097
  if (g.length === 0) return qA(!0);
3085
3098
  if (g.length === 1)
3086
- return g[0] instanceof R ? g[0] : new R(H(g[0]));
3087
- let A = H(g[0]);
3099
+ return g[0] instanceof R ? g[0] : new R(h(g[0]));
3100
+ let A = h(g[0]);
3088
3101
  for (let Q = 1; Q < g.length; Q++)
3089
- A = Kg(A, H(g[Q]));
3102
+ A = ag(A, h(g[Q]));
3090
3103
  return new R(A);
3091
3104
  }
3092
- function Aw(...g) {
3105
+ function Cw(...g) {
3093
3106
  if (g.length === 0) return qA(!1);
3094
3107
  if (g.length === 1)
3095
- return g[0] instanceof R ? g[0] : new R(H(g[0]));
3096
- let A = H(g[0]);
3108
+ return g[0] instanceof R ? g[0] : new R(h(g[0]));
3109
+ let A = h(g[0]);
3097
3110
  for (let Q = 1; Q < g.length; Q++)
3098
- A = hg(A, H(g[Q]));
3111
+ A = qg(A, h(g[Q]));
3099
3112
  return new R(A);
3100
3113
  }
3101
- function gw(g) {
3102
- return g !== void 0 ? c("COUNT", g) : c("COUNT", rg());
3103
- }
3104
- function Iw(g) {
3105
- return new R(Rg(H(g)));
3106
- }
3107
- function Qw(g) {
3108
- return c("SUM", g);
3109
- }
3110
- function Cw(g) {
3111
- return c("AVG", g);
3112
- }
3113
3114
  function Bw(g) {
3114
- return c("MIN", g);
3115
+ return g !== void 0 ? U("COUNT", g) : U("COUNT", bg());
3115
3116
  }
3116
3117
  function Ew(g) {
3117
- return c("MAX", g);
3118
+ return new R(Rg(h(g)));
3118
3119
  }
3119
3120
  function Dw(g) {
3120
- return c("UPPER", g);
3121
+ return U("SUM", g);
3121
3122
  }
3122
3123
  function iw(g) {
3123
- return c("LOWER", g);
3124
+ return U("AVG", g);
3124
3125
  }
3125
3126
  function ww(g) {
3126
- return c("LENGTH", g);
3127
+ return U("MIN", g);
3127
3128
  }
3128
3129
  function ow(g) {
3129
- return c("TRIM", g);
3130
+ return U("MAX", g);
3130
3131
  }
3131
3132
  function Gw(g) {
3132
- return c("LTRIM", g);
3133
+ return U("UPPER", g);
3133
3134
  }
3134
3135
  function Nw(g) {
3135
- return c("RTRIM", g);
3136
+ return U("LOWER", g);
3136
3137
  }
3137
3138
  function kw(g) {
3138
- return c("REVERSE", g);
3139
+ return U("LENGTH", g);
3139
3140
  }
3140
3141
  function Mw(g) {
3141
- return c("INITCAP", g);
3142
+ return U("TRIM", g);
3142
3143
  }
3143
- function Kw(g, A, Q) {
3144
- return Q !== void 0 ? c("SUBSTRING", g, A, Q) : c("SUBSTRING", g, A);
3144
+ function Kw(g) {
3145
+ return U("LTRIM", g);
3145
3146
  }
3146
- function Jw(g, A, Q) {
3147
- return c("REPLACE", g, A, Q);
3147
+ function aw(g) {
3148
+ return U("RTRIM", g);
3148
3149
  }
3149
- function Yw(g, ...A) {
3150
- return c("CONCAT_WS", g, ...A);
3150
+ function Jw(g) {
3151
+ return U("REVERSE", g);
3151
3152
  }
3152
- function aw(...g) {
3153
- return c("COALESCE", ...g);
3153
+ function Yw(g) {
3154
+ return U("INITCAP", g);
3154
3155
  }
3155
- function Rw(g, A) {
3156
- return c("NULLIF", g, A);
3156
+ function yw(g, A, Q) {
3157
+ return Q !== void 0 ? U("SUBSTRING", g, A, Q) : U("SUBSTRING", g, A);
3157
3158
  }
3158
- function yw(g, A) {
3159
- return c("IFNULL", g, A);
3159
+ function Rw(g, A, Q) {
3160
+ return U("REPLACE", g, A, Q);
3160
3161
  }
3161
- function Uw(g) {
3162
- return c("ABS", g);
3162
+ function cw(g, ...A) {
3163
+ return U("CONCAT_WS", g, ...A);
3164
+ }
3165
+ function hw(...g) {
3166
+ return U("COALESCE", ...g);
3163
3167
  }
3164
3168
  function Hw(g, A) {
3165
- return A !== void 0 ? c("ROUND", g, A) : c("ROUND", g);
3169
+ return U("NULLIF", g, A);
3166
3170
  }
3167
- function hw(g) {
3168
- return c("FLOOR", g);
3171
+ function qw(g, A) {
3172
+ return U("IFNULL", g, A);
3169
3173
  }
3170
- function qw(g) {
3171
- return c("CEIL", g);
3174
+ function Uw(g) {
3175
+ return U("ABS", g);
3172
3176
  }
3173
- function cw(g, A) {
3174
- return c("POWER", g, A);
3177
+ function Sw(g, A) {
3178
+ return A !== void 0 ? U("ROUND", g, A) : U("ROUND", g);
3175
3179
  }
3176
3180
  function Fw(g) {
3177
- return c("SQRT", g);
3178
- }
3179
- function Sw(g) {
3180
- return c("LN", g);
3181
+ return U("FLOOR", g);
3181
3182
  }
3182
3183
  function Lw(g) {
3183
- return c("EXP", g);
3184
- }
3185
- function sw(g) {
3186
- return c("SIGN", g);
3184
+ return U("CEIL", g);
3187
3185
  }
3188
- function pw(...g) {
3189
- return c("GREATEST", ...g);
3186
+ function sw(g, A) {
3187
+ return U("POWER", g, A);
3190
3188
  }
3191
- function Tw(...g) {
3192
- return c("LEAST", ...g);
3189
+ function pw(g) {
3190
+ return U("SQRT", g);
3193
3191
  }
3194
- function xw() {
3195
- return c("CURRENT_DATE");
3192
+ function Ow(g) {
3193
+ return U("LN", g);
3196
3194
  }
3197
- function jw() {
3198
- return c("CURRENT_TIME");
3195
+ function xw(g) {
3196
+ return U("EXP", g);
3199
3197
  }
3200
- function Ow() {
3201
- return c("CURRENT_TIMESTAMP");
3198
+ function jw(g) {
3199
+ return U("SIGN", g);
3202
3200
  }
3203
- function tw(g, A) {
3204
- return new R(yg(g, H(A)));
3201
+ function tw(...g) {
3202
+ return U("GREATEST", ...g);
3205
3203
  }
3206
- function lw() {
3207
- return c("ROW_NUMBER");
3204
+ function Tw(...g) {
3205
+ return U("LEAST", ...g);
3208
3206
  }
3209
3207
  function dw() {
3210
- return c("RANK");
3208
+ return U("CURRENT_DATE");
3209
+ }
3210
+ function lw() {
3211
+ return U("CURRENT_TIME");
3211
3212
  }
3212
3213
  function Zw() {
3213
- return c("DENSE_RANK");
3214
+ return U("CURRENT_TIMESTAMP");
3215
+ }
3216
+ function zw(g, A) {
3217
+ return new R(cg(g, h(A)));
3218
+ }
3219
+ function mw() {
3220
+ return U("ROW_NUMBER");
3214
3221
  }
3215
- class bg {
3222
+ function Vw() {
3223
+ return U("RANK");
3224
+ }
3225
+ function Pw() {
3226
+ return U("DENSE_RANK");
3227
+ }
3228
+ class Wg {
3216
3229
  /** @internal */
3217
3230
  _w;
3218
3231
  constructor() {
3219
- this._w = new j();
3232
+ this._w = new t();
3220
3233
  }
3221
3234
  /** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
3222
3235
  select(...A) {
3223
3236
  for (const Q of A)
3224
- Q === "*" ? this._w.select_star() : Q instanceof R ? this._w.select_expr(Q._w) : typeof Q == "string" ? this._w.select_col(Q) : this._w.select_expr(H(Q));
3237
+ Q === "*" ? this._w.select_star() : Q instanceof R ? this._w.select_expr(Q._w) : typeof Q == "string" ? this._w.select_col(Q) : this._w.select_expr(h(Q));
3225
3238
  return this;
3226
3239
  }
3227
3240
  /** Set the FROM clause. */
@@ -3230,15 +3243,15 @@ class bg {
3230
3243
  }
3231
3244
  /** Add an INNER JOIN. */
3232
3245
  join(A, Q) {
3233
- return this._w.join(A, H(Q)), this;
3246
+ return this._w.join(A, h(Q)), this;
3234
3247
  }
3235
3248
  /** Add a LEFT JOIN. */
3236
3249
  leftJoin(A, Q) {
3237
- return this._w.left_join(A, H(Q)), this;
3250
+ return this._w.left_join(A, h(Q)), this;
3238
3251
  }
3239
3252
  /** Add a RIGHT JOIN. */
3240
3253
  rightJoin(A, Q) {
3241
- return this._w.right_join(A, H(Q)), this;
3254
+ return this._w.right_join(A, h(Q)), this;
3242
3255
  }
3243
3256
  /** Add a CROSS JOIN. */
3244
3257
  crossJoin(A) {
@@ -3246,19 +3259,19 @@ class bg {
3246
3259
  }
3247
3260
  /** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
3248
3261
  where(A) {
3249
- return typeof A == "string" ? this._w.where_sql(A) : A instanceof R ? this._w.where_expr(A._w) : this._w.where_expr(H(A)), this;
3262
+ return typeof A == "string" ? this._w.where_sql(A) : A instanceof R ? this._w.where_expr(A._w) : this._w.where_expr(h(A)), this;
3250
3263
  }
3251
3264
  /** Set the GROUP BY clause. */
3252
3265
  groupBy(...A) {
3253
- return this._w.group_by_cols(O(A)), this;
3266
+ return this._w.group_by_cols(T(A)), this;
3254
3267
  }
3255
3268
  /** Set the HAVING clause. */
3256
3269
  having(A) {
3257
- return this._w.having(H(A)), this;
3270
+ return this._w.having(h(A)), this;
3258
3271
  }
3259
3272
  /** Set the ORDER BY clause. */
3260
3273
  orderBy(...A) {
3261
- return this._w.order_by_exprs(O(A)), this;
3274
+ return this._w.order_by_exprs(T(A)), this;
3262
3275
  }
3263
3276
  /** Set the LIMIT. */
3264
3277
  limit(A) {
@@ -3274,11 +3287,11 @@ class bg {
3274
3287
  }
3275
3288
  /** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
3276
3289
  qualify(A) {
3277
- return this._w.qualify(H(A)), this;
3290
+ return this._w.qualify(h(A)), this;
3278
3291
  }
3279
3292
  /** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
3280
3293
  sortBy(...A) {
3281
- return this._w.sort_by_exprs(O(A)), this;
3294
+ return this._w.sort_by_exprs(T(A)), this;
3282
3295
  }
3283
3296
  /** Add a named WINDOW clause definition. */
3284
3297
  window(A, Q) {
@@ -3312,19 +3325,19 @@ class bg {
3312
3325
  }
3313
3326
  /** Combine with UNION. */
3314
3327
  union(A) {
3315
- return new X(this._w.union(A._w));
3328
+ return new _(this._w.union(A._w));
3316
3329
  }
3317
3330
  /** Combine with UNION ALL. */
3318
3331
  unionAll(A) {
3319
- return new X(this._w.union_all(A._w));
3332
+ return new _(this._w.union_all(A._w));
3320
3333
  }
3321
3334
  /** Combine with INTERSECT. */
3322
3335
  intersect(A) {
3323
- return new X(this._w.intersect(A._w));
3336
+ return new _(this._w.intersect(A._w));
3324
3337
  }
3325
3338
  /** Combine with EXCEPT. */
3326
3339
  except(A) {
3327
- return new X(this._w.except_(A._w));
3340
+ return new _(this._w.except_(A._w));
3328
3341
  }
3329
3342
  /** Generate SQL string. Defaults to generic dialect. */
3330
3343
  toSql(A = "generic") {
@@ -3339,15 +3352,15 @@ class bg {
3339
3352
  this._w.free();
3340
3353
  }
3341
3354
  }
3342
- function zw(...g) {
3343
- const A = new bg();
3355
+ function ew(...g) {
3356
+ const A = new Wg();
3344
3357
  return g.length > 0 && A.select(...g), A;
3345
3358
  }
3346
3359
  class vg {
3347
3360
  /** @internal */
3348
3361
  _w;
3349
3362
  constructor(A) {
3350
- this._w = new wA(A);
3363
+ this._w = new oA(A);
3351
3364
  }
3352
3365
  /** Set the target column names. */
3353
3366
  columns(...A) {
@@ -3355,7 +3368,7 @@ class vg {
3355
3368
  }
3356
3369
  /** Append a row of values. Call multiple times for multiple rows. */
3357
3370
  values(...A) {
3358
- return this._w.values(O(A)), this;
3371
+ return this._w.values(T(A)), this;
3359
3372
  }
3360
3373
  /** Set the source query for INSERT ... SELECT. */
3361
3374
  query(A) {
@@ -3374,25 +3387,25 @@ class vg {
3374
3387
  this._w.free();
3375
3388
  }
3376
3389
  }
3377
- function fg(g) {
3390
+ function Xg(g) {
3378
3391
  return new vg(g);
3379
3392
  }
3380
- function Vw(g) {
3381
- return fg(g);
3393
+ function rw(g) {
3394
+ return Xg(g);
3382
3395
  }
3383
3396
  class ug {
3384
3397
  /** @internal */
3385
3398
  _w;
3386
3399
  constructor(A) {
3387
- this._w = new GA(A);
3400
+ this._w = new NA(A);
3388
3401
  }
3389
3402
  /** Add a SET column = value assignment. */
3390
3403
  set(A, Q) {
3391
- return this._w.set(A, H(Q)), this;
3404
+ return this._w.set(A, h(Q)), this;
3392
3405
  }
3393
3406
  /** Set the WHERE clause. */
3394
3407
  where(A) {
3395
- return this._w.where_expr(H(A)), this;
3408
+ return this._w.where_expr(h(A)), this;
3396
3409
  }
3397
3410
  /** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
3398
3411
  from(A) {
@@ -3411,18 +3424,18 @@ class ug {
3411
3424
  this._w.free();
3412
3425
  }
3413
3426
  }
3414
- function mw(g) {
3427
+ function bw(g) {
3415
3428
  return new ug(g);
3416
3429
  }
3417
3430
  class ng {
3418
3431
  /** @internal */
3419
3432
  _w;
3420
3433
  constructor(A) {
3421
- this._w = new iA(A);
3434
+ this._w = new wA(A);
3422
3435
  }
3423
3436
  /** Set the WHERE clause. */
3424
3437
  where(A) {
3425
- return this._w.where_expr(H(A)), this;
3438
+ return this._w.where_expr(h(A)), this;
3426
3439
  }
3427
3440
  /** Generate SQL string. Defaults to generic dialect. */
3428
3441
  toSql(A = "generic") {
@@ -3437,27 +3450,27 @@ class ng {
3437
3450
  this._w.free();
3438
3451
  }
3439
3452
  }
3440
- function Xg(g) {
3453
+ function _g(g) {
3441
3454
  return new ng(g);
3442
3455
  }
3443
- function Pw(g) {
3444
- return Xg(g);
3456
+ function fw(g) {
3457
+ return _g(g);
3445
3458
  }
3446
- class _g {
3459
+ class $g {
3447
3460
  /** @internal */
3448
3461
  _w;
3449
3462
  constructor(A) {
3450
- this._w = new oA(A);
3463
+ this._w = new GA(A);
3451
3464
  }
3452
3465
  /** Set the source table and ON condition. */
3453
3466
  using(A, Q) {
3454
- return this._w.using(A, H(Q)), this;
3467
+ return this._w.using(A, h(Q)), this;
3455
3468
  }
3456
3469
  /** Add a WHEN MATCHED THEN UPDATE SET clause. */
3457
3470
  whenMatchedUpdate(A) {
3458
- const Q = new IA();
3471
+ const Q = new QA();
3459
3472
  for (const [C, B] of Object.entries(A))
3460
- Q.push(C, H(B));
3473
+ Q.push(C, h(B));
3461
3474
  return this._w.when_matched_update(Q), this;
3462
3475
  }
3463
3476
  /** Add a WHEN MATCHED THEN DELETE clause. */
@@ -3466,7 +3479,7 @@ class _g {
3466
3479
  }
3467
3480
  /** Add a WHEN NOT MATCHED THEN INSERT clause. */
3468
3481
  whenNotMatchedInsert(A, Q) {
3469
- return this._w.when_not_matched_insert(A, O(Q)), this;
3482
+ return this._w.when_not_matched_insert(A, T(Q)), this;
3470
3483
  }
3471
3484
  /** Generate SQL string. Defaults to generic dialect. */
3472
3485
  toSql(A = "generic") {
@@ -3481,10 +3494,10 @@ class _g {
3481
3494
  this._w.free();
3482
3495
  }
3483
3496
  }
3484
- function ew(g) {
3485
- return new _g(g);
3497
+ function Ww(g) {
3498
+ return new $g(g);
3486
3499
  }
3487
- class cA {
3500
+ class UA {
3488
3501
  /** @internal */
3489
3502
  _w;
3490
3503
  /** @internal */
@@ -3493,11 +3506,11 @@ class cA {
3493
3506
  }
3494
3507
  /** Add a WHEN condition THEN result branch. */
3495
3508
  when(A, Q) {
3496
- return this._w.when(H(A), H(Q)), this;
3509
+ return this._w.when(h(A), h(Q)), this;
3497
3510
  }
3498
3511
  /** Set the ELSE result. */
3499
3512
  else_(A) {
3500
- return this._w.else_(H(A)), this;
3513
+ return this._w.else_(h(A)), this;
3501
3514
  }
3502
3515
  /** Build the CASE expression as an Expr. */
3503
3516
  build() {
@@ -3508,13 +3521,13 @@ class cA {
3508
3521
  return this._w.to_sql();
3509
3522
  }
3510
3523
  }
3511
- function rw() {
3512
- return new cA(new r());
3524
+ function vw() {
3525
+ return new UA(new b());
3513
3526
  }
3514
- function Ww(g) {
3515
- return new cA(Yg(H(g)));
3527
+ function Xw(g) {
3528
+ return new UA(Yg(h(g)));
3516
3529
  }
3517
- class X {
3530
+ class _ {
3518
3531
  /** @internal */
3519
3532
  _w;
3520
3533
  /** @internal */
@@ -3523,7 +3536,7 @@ class X {
3523
3536
  }
3524
3537
  /** Set the ORDER BY clause. */
3525
3538
  orderBy(...A) {
3526
- return this._w.order_by_exprs(O(A)), this;
3539
+ return this._w.order_by_exprs(T(A)), this;
3527
3540
  }
3528
3541
  /** Set the LIMIT. */
3529
3542
  limit(A) {
@@ -3546,24 +3559,24 @@ class X {
3546
3559
  this._w.free();
3547
3560
  }
3548
3561
  }
3549
- function bw(g, A) {
3562
+ function uw(g, A) {
3550
3563
  return g.union(A);
3551
3564
  }
3552
- function vw(g, A) {
3565
+ function nw(g, A) {
3553
3566
  return g.unionAll(A);
3554
3567
  }
3555
- function fw(g, A) {
3568
+ function _w(g, A) {
3556
3569
  return g.intersect(A);
3557
3570
  }
3558
- function uw(g, A) {
3571
+ function $w(g, A) {
3559
3572
  return g.except(A);
3560
3573
  }
3561
- function nw(g, A) {
3574
+ function Ao(g, A) {
3562
3575
  const Q = [];
3563
- return s(g) === "select" && Q.push(...Xw(g)), Q;
3576
+ return s(g) === "select" && Q.push(...go(g)), Q;
3564
3577
  }
3565
- function Xw(g, A) {
3566
- const Q = [], C = CA(g, "star");
3578
+ function go(g, A) {
3579
+ const Q = [], C = BA(g, "star");
3567
3580
  if (C.length > 0) {
3568
3581
  const D = x(C[0])?.span;
3569
3582
  Q.push({
@@ -3577,15 +3590,15 @@ function Xw(g, A) {
3577
3590
  });
3578
3591
  }
3579
3592
  const B = x(g);
3580
- if (eg(g) && !B.group_by) {
3581
- const E = gA(g), D = B.expressions || [];
3593
+ if (rg(g) && !B.group_by) {
3594
+ const E = IA(g), D = B.expressions || [];
3582
3595
  if (D.some((k) => {
3583
3596
  const M = s(k);
3584
- return M === "column" || M === "identifier" ? gA(k).length === 0 : !1;
3597
+ return M === "column" || M === "identifier" ? IA(k).length === 0 : !1;
3585
3598
  }) && E.length > 0) {
3586
- const k = D.find((J) => {
3587
- const y = s(J);
3588
- return y === "column" || y === "identifier" ? gA(J).length === 0 : !1;
3599
+ const k = D.find((a) => {
3600
+ const y = s(a);
3601
+ return y === "column" || y === "identifier" ? IA(a).length === 0 : !1;
3589
3602
  }), M = k ? x(k)?.span : void 0;
3590
3603
  Q.push({
3591
3604
  message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
@@ -3616,7 +3629,7 @@ function Xw(g, A) {
3616
3629
  }
3617
3630
  return Q;
3618
3631
  }
3619
- function _w(g) {
3632
+ function Io(g) {
3620
3633
  try {
3621
3634
  return JSON.parse(g);
3622
3635
  } catch {
@@ -3632,29 +3645,29 @@ function _w(g) {
3632
3645
  };
3633
3646
  }
3634
3647
  }
3635
- function $w(g, A, Q = "generic", C = {}) {
3648
+ function Qo(g, A, Q = "generic", C = {}) {
3636
3649
  const B = C.strict ?? A.strict ?? !0, E = {
3637
3650
  check_types: C.checkTypes ?? !1,
3638
3651
  check_references: C.checkReferences ?? !1,
3639
3652
  strict: B,
3640
3653
  semantic: C.semantic ?? !1,
3641
3654
  strict_syntax: C.strictSyntax ?? !1
3642
- }, D = kg(
3655
+ }, D = Mg(
3643
3656
  g,
3644
3657
  JSON.stringify(A),
3645
3658
  Q,
3646
3659
  JSON.stringify(E)
3647
3660
  );
3648
- return _w(D);
3661
+ return Io(D);
3649
3662
  }
3650
- const Ao = {
3663
+ const Co = {
3651
3664
  Error: "error",
3652
3665
  Warning: "warning"
3653
- }, n = Lg;
3654
- function vA(g) {
3666
+ }, n = sg;
3667
+ function WA(g) {
3655
3668
  return typeof g == "string" ? JSON.parse(g) : g;
3656
3669
  }
3657
- function go(g, A = "generic", Q = {}) {
3670
+ function Bo(g, A = "generic", Q = {}) {
3658
3671
  const C = Q.strictSyntax ? n.validate_with_options(
3659
3672
  g,
3660
3673
  A,
@@ -3662,80 +3675,90 @@ function go(g, A = "generic", Q = {}) {
3662
3675
  ) : n.validate(g, A), B = JSON.parse(C);
3663
3676
  if (!B.valid || !Q.semantic)
3664
3677
  return B;
3665
- const E = typeof n.parse_value == "function" ? vA(
3678
+ const E = typeof n.parse_value == "function" ? WA(
3666
3679
  n.parse_value(g, A)
3667
- ) : vA(
3680
+ ) : WA(
3668
3681
  n.parse(g, A)
3669
3682
  );
3670
3683
  if (!E.success || !E.ast)
3671
3684
  return B;
3672
3685
  const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, o = [...B.errors];
3673
3686
  for (const M of D) {
3674
- const J = nw(M);
3675
- o.push(...J);
3687
+ const a = Ao(M);
3688
+ o.push(...a);
3676
3689
  }
3677
3690
  return {
3678
3691
  valid: !o.some((M) => M.severity === "error"),
3679
3692
  errors: o
3680
3693
  };
3681
3694
  }
3682
- function $g(g, A, Q = "generic", C = !1) {
3695
+ function AI(g, A, Q = "generic", C = !1) {
3683
3696
  const B = og(A, g, Q, C);
3684
3697
  return JSON.parse(B);
3685
3698
  }
3686
- function AI(g, A, Q = "generic") {
3687
- const C = Ng(A, g, Q);
3699
+ function gI(g, A, Q, C = "generic", B = !1) {
3700
+ const E = Gg(
3701
+ A,
3702
+ g,
3703
+ JSON.stringify(Q),
3704
+ C,
3705
+ B
3706
+ );
3707
+ return JSON.parse(E);
3708
+ }
3709
+ function II(g, A, Q = "generic") {
3710
+ const C = kg(A, g, Q);
3688
3711
  return JSON.parse(C);
3689
3712
  }
3690
- function gI(g, A, Q = "generic", C = {}) {
3713
+ function QI(g, A, Q = "generic", C = {}) {
3691
3714
  const { deltaOnly: B = !1, f: E = 0.6, t: D = 0.6 } = C, o = wg(g, A, Q, B, E, D);
3692
3715
  return JSON.parse(o);
3693
3716
  }
3694
- function II(g) {
3717
+ function CI(g) {
3695
3718
  return g.some((A) => A.type !== "keep");
3696
3719
  }
3697
- function QI(g) {
3720
+ function BI(g) {
3698
3721
  return g.filter((A) => A.type !== "keep");
3699
3722
  }
3700
- function CI(g, A = "generic") {
3701
- const Q = Gg(g, A);
3723
+ function EI(g, A = "generic") {
3724
+ const Q = Ng(g, A);
3702
3725
  return JSON.parse(Q);
3703
3726
  }
3704
- var FA = /* @__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))(FA || {});
3705
- const L = Lg;
3706
- function SA(g) {
3727
+ 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 || {});
3728
+ const L = sg;
3729
+ function FA(g) {
3707
3730
  return g instanceof Error && g.message ? g.message : typeof g == "string" ? g : String(g);
3708
3731
  }
3709
3732
  function LA(g, A) {
3710
3733
  return {
3711
3734
  success: !1,
3712
3735
  sql: void 0,
3713
- error: `WASM ${g} failed: ${SA(A)}`,
3736
+ error: `WASM ${g} failed: ${FA(A)}`,
3714
3737
  errorLine: void 0,
3715
3738
  errorColumn: void 0
3716
3739
  };
3717
3740
  }
3718
- function Io(g, A) {
3741
+ function Eo(g, A) {
3719
3742
  return {
3720
3743
  success: !1,
3721
3744
  ast: void 0,
3722
- error: `WASM ${g} failed: ${SA(A)}`,
3745
+ error: `WASM ${g} failed: ${FA(A)}`,
3723
3746
  errorLine: void 0,
3724
3747
  errorColumn: void 0
3725
3748
  };
3726
3749
  }
3727
- function W(g) {
3750
+ function f(g) {
3728
3751
  return typeof g == "string" ? JSON.parse(g) : g;
3729
3752
  }
3730
- async function BI() {
3753
+ async function DI() {
3731
3754
  return Promise.resolve();
3732
3755
  }
3733
- function EI() {
3756
+ function iI() {
3734
3757
  return !0;
3735
3758
  }
3736
3759
  function sA(g, A, Q) {
3737
3760
  try {
3738
- return typeof L.transpile_value == "function" ? W(
3761
+ return typeof L.transpile_value == "function" ? f(
3739
3762
  L.transpile_value(g, A, Q)
3740
3763
  ) : JSON.parse(L.transpile(g, A, Q));
3741
3764
  } catch (C) {
@@ -3745,30 +3768,30 @@ function sA(g, A, Q) {
3745
3768
  function pA(g, A = "generic") {
3746
3769
  try {
3747
3770
  if (typeof L.parse_value == "function")
3748
- return W(L.parse_value(g, A));
3771
+ return f(L.parse_value(g, A));
3749
3772
  const Q = JSON.parse(L.parse(g, A));
3750
3773
  return Q.success && typeof Q.ast == "string" && (Q.ast = JSON.parse(Q.ast)), Q;
3751
3774
  } catch (Q) {
3752
- return Io("parse", Q);
3775
+ return Eo("parse", Q);
3753
3776
  }
3754
3777
  }
3755
- function TA(g, A = "generic") {
3778
+ function OA(g, A = "generic") {
3756
3779
  try {
3757
- return typeof L.tokenize_value == "function" ? W(
3780
+ return typeof L.tokenize_value == "function" ? f(
3758
3781
  L.tokenize_value(g, A)
3759
3782
  ) : JSON.parse(L.tokenize(g, A));
3760
3783
  } catch (Q) {
3761
3784
  return {
3762
3785
  success: !1,
3763
3786
  tokens: void 0,
3764
- error: `WASM tokenize failed: ${SA(Q)}`
3787
+ error: `WASM tokenize failed: ${FA(Q)}`
3765
3788
  };
3766
3789
  }
3767
3790
  }
3768
3791
  function xA(g, A = "generic") {
3769
3792
  try {
3770
3793
  if (typeof L.generate_value == "function" && Array.isArray(g))
3771
- return W(
3794
+ return f(
3772
3795
  L.generate_value(g, A)
3773
3796
  );
3774
3797
  const Q = JSON.stringify(g);
@@ -3778,28 +3801,28 @@ function xA(g, A = "generic") {
3778
3801
  }
3779
3802
  }
3780
3803
  function jA(g, A = "generic") {
3781
- return OA(g, A, {});
3804
+ return tA(g, A, {});
3782
3805
  }
3783
- function OA(g, A = "generic", Q = {}) {
3806
+ function tA(g, A = "generic", Q = {}) {
3784
3807
  try {
3785
- return typeof L.format_sql_with_options_value == "function" ? W(
3808
+ return typeof L.format_sql_with_options_value == "function" ? f(
3786
3809
  L.format_sql_with_options_value(g, A, Q)
3787
3810
  ) : typeof L.format_sql_with_options == "function" ? JSON.parse(
3788
3811
  L.format_sql_with_options(g, A, JSON.stringify(Q))
3789
- ) : typeof L.format_sql_value == "function" ? W(
3812
+ ) : typeof L.format_sql_value == "function" ? f(
3790
3813
  L.format_sql_value(g, A)
3791
3814
  ) : JSON.parse(L.format_sql(g, A));
3792
3815
  } catch (C) {
3793
3816
  return LA("format", C);
3794
3817
  }
3795
3818
  }
3796
- function tA() {
3797
- return typeof L.get_dialects_value == "function" ? W(L.get_dialects_value()) : JSON.parse(L.get_dialects());
3819
+ function TA() {
3820
+ return typeof L.get_dialects_value == "function" ? f(L.get_dialects_value()) : JSON.parse(L.get_dialects());
3798
3821
  }
3799
- function lA() {
3822
+ function dA() {
3800
3823
  return L.version();
3801
3824
  }
3802
- class e {
3825
+ class r {
3803
3826
  static instance = null;
3804
3827
  constructor() {
3805
3828
  }
@@ -3808,7 +3831,7 @@ class e {
3808
3831
  * The WASM module is automatically initialized on import.
3809
3832
  */
3810
3833
  static getInstance() {
3811
- return e.instance || (e.instance = new e()), e.instance;
3834
+ return r.instance || (r.instance = new r()), r.instance;
3812
3835
  }
3813
3836
  /**
3814
3837
  * Transpile SQL from one dialect to another.
@@ -3830,7 +3853,7 @@ class e {
3830
3853
  * Tokenize SQL into a token stream.
3831
3854
  */
3832
3855
  tokenize(A, Q = "generic") {
3833
- return TA(A, Q);
3856
+ return OA(A, Q);
3834
3857
  }
3835
3858
  /**
3836
3859
  * Generate SQL from an AST.
@@ -3848,247 +3871,249 @@ class e {
3848
3871
  * Format SQL with explicit guard limits.
3849
3872
  */
3850
3873
  formatWithOptions(A, Q = "generic", C = {}) {
3851
- return OA(A, Q, C);
3874
+ return tA(A, Q, C);
3852
3875
  }
3853
3876
  /**
3854
3877
  * Get supported dialects in this build.
3855
3878
  * Per-dialect builds return only `"generic"` and the selected dialect.
3856
3879
  */
3857
3880
  getDialects() {
3858
- return tA();
3881
+ return TA();
3859
3882
  }
3860
3883
  /**
3861
3884
  * Get library version.
3862
3885
  */
3863
3886
  getVersion() {
3864
- return lA();
3887
+ return dA();
3865
3888
  }
3866
3889
  }
3867
- const Qo = {
3868
- init: BI,
3869
- isInitialized: EI,
3890
+ const Do = {
3891
+ init: DI,
3892
+ isInitialized: iI,
3870
3893
  transpile: sA,
3871
3894
  parse: pA,
3872
- tokenize: TA,
3895
+ tokenize: OA,
3873
3896
  generate: xA,
3874
3897
  format: jA,
3875
- getDialects: tA,
3876
- getVersion: lA,
3877
- lineage: $g,
3878
- getSourceTables: AI,
3879
- diff: gI,
3880
- hasChanges: II,
3881
- changesOnly: QI,
3882
- plan: CI,
3883
- Dialect: FA,
3884
- Polyglot: e
3885
- }, Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3898
+ getDialects: TA,
3899
+ getVersion: dA,
3900
+ lineage: AI,
3901
+ lineageWithSchema: gI,
3902
+ getSourceTables: II,
3903
+ diff: QI,
3904
+ hasChanges: CI,
3905
+ changesOnly: BI,
3906
+ plan: EI,
3907
+ Dialect: SA,
3908
+ Polyglot: r
3909
+ }, io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3886
3910
  __proto__: null,
3887
- CaseBuilder: cA,
3911
+ CaseBuilder: UA,
3888
3912
  DeleteBuilder: ng,
3889
- Dialect: FA,
3913
+ Dialect: SA,
3890
3914
  Expr: R,
3891
3915
  InsertBuilder: vg,
3892
- MergeBuilder: _g,
3893
- Polyglot: e,
3894
- SelectBuilder: bg,
3895
- SetOpBuilder: X,
3916
+ MergeBuilder: $g,
3917
+ Polyglot: r,
3918
+ SelectBuilder: Wg,
3919
+ SetOpBuilder: _,
3896
3920
  UpdateBuilder: ug,
3897
- ValidationSeverity: Ao,
3898
- WindowDefBuilder: ei,
3921
+ ValidationSeverity: Co,
3922
+ WindowDefBuilder: Wi,
3899
3923
  abs: Uw,
3900
- alias: Xi,
3901
- and: $i,
3902
- ast: Pi,
3903
- avg: Cw,
3924
+ alias: gw,
3925
+ and: Qw,
3926
+ ast: fi,
3927
+ avg: iw,
3904
3928
  boolean: qA,
3905
- caseOf: Ww,
3906
- caseWhen: rw,
3907
- cast: ni,
3908
- ceil: qw,
3909
- changesOnly: QI,
3910
- coalesce: aw,
3911
- col: ri,
3912
- concatWs: Yw,
3913
- condition: fi,
3914
- count: gw,
3915
- countDistinct: Iw,
3916
- currentDate: xw,
3917
- currentTime: jw,
3918
- currentTimestamp: Ow,
3919
- default: Qo,
3920
- del: Pw,
3921
- deleteFrom: Xg,
3922
- denseRank: Zw,
3923
- diff: gI,
3924
- except: uw,
3925
- exp: Lw,
3926
- extract: tw,
3929
+ caseOf: Xw,
3930
+ caseWhen: vw,
3931
+ cast: Aw,
3932
+ ceil: Lw,
3933
+ changesOnly: BI,
3934
+ coalesce: hw,
3935
+ col: vi,
3936
+ concatWs: cw,
3937
+ condition: _i,
3938
+ count: Bw,
3939
+ countDistinct: Ew,
3940
+ currentDate: dw,
3941
+ currentTime: lw,
3942
+ currentTimestamp: Zw,
3943
+ default: Do,
3944
+ del: fw,
3945
+ deleteFrom: _g,
3946
+ denseRank: Pw,
3947
+ diff: QI,
3948
+ except: $w,
3949
+ exp: xw,
3950
+ extract: zw,
3927
3951
  findAll: JA,
3928
- floor: hw,
3952
+ floor: Fw,
3929
3953
  format: jA,
3930
- formatWithOptions: OA,
3931
- func: c,
3954
+ formatWithOptions: tA,
3955
+ func: U,
3932
3956
  generate: xA,
3933
3957
  getColumns: Vg,
3934
- getDialects: tA,
3935
- getSourceTables: AI,
3936
- getVersion: lA,
3937
- greatest: pw,
3938
- hasChanges: II,
3939
- ifNull: yw,
3940
- init: BI,
3941
- initcap: Mw,
3942
- insert: Vw,
3943
- insertInto: fg,
3944
- intersect: fw,
3945
- isColumn: pg,
3946
- isFunction: xg,
3947
- isInitialized: EI,
3948
- isLiteral: Tg,
3949
- isSelect: sg,
3958
+ getDialects: TA,
3959
+ getSourceTables: II,
3960
+ getVersion: dA,
3961
+ greatest: tw,
3962
+ hasChanges: CI,
3963
+ ifNull: qw,
3964
+ init: DI,
3965
+ initcap: Yw,
3966
+ insert: rw,
3967
+ insertInto: Xg,
3968
+ intersect: _w,
3969
+ isColumn: Og,
3970
+ isFunction: jg,
3971
+ isInitialized: iI,
3972
+ isLiteral: xg,
3973
+ isSelect: pg,
3950
3974
  least: Tw,
3951
- length: ww,
3952
- lineage: $g,
3953
- lit: Wi,
3954
- ln: Sw,
3955
- lower: iw,
3956
- ltrim: Gw,
3957
- max: Ew,
3958
- mergeInto: ew,
3959
- min: Bw,
3960
- not: ui,
3961
- nullIf: Rw,
3962
- or: Aw,
3975
+ length: kw,
3976
+ lineage: AI,
3977
+ lineageWithSchema: gI,
3978
+ lit: Xi,
3979
+ ln: Ow,
3980
+ lower: Nw,
3981
+ ltrim: Kw,
3982
+ max: ow,
3983
+ mergeInto: Ww,
3984
+ min: ww,
3985
+ not: $i,
3986
+ nullIf: Hw,
3987
+ or: Cw,
3963
3988
  parse: pA,
3964
- plan: CI,
3965
- power: cw,
3966
- rank: dw,
3967
- renameColumns: tg,
3968
- replace: Jw,
3969
- reverse: kw,
3970
- round: Hw,
3971
- rowNumber: lw,
3972
- rtrim: Nw,
3973
- select: zw,
3974
- sign: sw,
3975
- sqlExpr: Wg,
3976
- sqlNull: bi,
3977
- sqrt: Fw,
3978
- star: rg,
3979
- subquery: _i,
3980
- substring: Kw,
3981
- sum: Qw,
3982
- table: vi,
3983
- tokenize: TA,
3984
- transform: KA,
3989
+ plan: EI,
3990
+ power: sw,
3991
+ rank: Vw,
3992
+ renameColumns: dg,
3993
+ replace: Rw,
3994
+ reverse: Jw,
3995
+ round: Sw,
3996
+ rowNumber: mw,
3997
+ rtrim: aw,
3998
+ select: ew,
3999
+ sign: jw,
4000
+ sqlExpr: fg,
4001
+ sqlNull: ui,
4002
+ sqrt: pw,
4003
+ star: bg,
4004
+ subquery: Iw,
4005
+ substring: yw,
4006
+ sum: Dw,
4007
+ table: ni,
4008
+ tokenize: OA,
4009
+ transform: aA,
3985
4010
  transpile: sA,
3986
- trim: ow,
3987
- union: bw,
3988
- unionAll: vw,
3989
- update: mw,
3990
- upper: Dw,
3991
- validate: go,
3992
- validateWithSchema: $w,
3993
- walk: t
4011
+ trim: Mw,
4012
+ union: uw,
4013
+ unionAll: nw,
4014
+ update: bw,
4015
+ upper: Gw,
4016
+ validate: Bo,
4017
+ validateWithSchema: Qo,
4018
+ walk: d
3994
4019
  }, Symbol.toStringTag, { value: "Module" }));
3995
4020
  export {
3996
- cA as CaseBuilder,
4021
+ UA as CaseBuilder,
3997
4022
  ng as DeleteBuilder,
3998
- FA as Dialect,
4023
+ SA as Dialect,
3999
4024
  R as Expr,
4000
4025
  vg as InsertBuilder,
4001
- _g as MergeBuilder,
4002
- e as Polyglot,
4003
- bg as SelectBuilder,
4004
- X as SetOpBuilder,
4026
+ $g as MergeBuilder,
4027
+ r as Polyglot,
4028
+ Wg as SelectBuilder,
4029
+ _ as SetOpBuilder,
4005
4030
  ug as UpdateBuilder,
4006
- Ao as ValidationSeverity,
4031
+ Co as ValidationSeverity,
4007
4032
  Uw as abs,
4008
- Xi as alias,
4009
- $i as and,
4010
- Pi as ast,
4011
- Cw as avg,
4033
+ gw as alias,
4034
+ Qw as and,
4035
+ fi as ast,
4036
+ iw as avg,
4012
4037
  qA as boolean,
4013
- Ww as caseOf,
4014
- rw as caseWhen,
4015
- ni as cast,
4016
- qw as ceil,
4017
- aw as coalesce,
4018
- ri as col,
4019
- Yw as concatWs,
4020
- fi as condition,
4021
- gw as count,
4022
- Iw as countDistinct,
4023
- xw as currentDate,
4024
- jw as currentTime,
4025
- Ow as currentTimestamp,
4026
- Co as default,
4027
- Pw as del,
4028
- Xg as deleteFrom,
4029
- Zw as denseRank,
4030
- uw as except,
4031
- Lw as exp,
4032
- tw as extract,
4038
+ Xw as caseOf,
4039
+ vw as caseWhen,
4040
+ Aw as cast,
4041
+ Lw as ceil,
4042
+ hw as coalesce,
4043
+ vi as col,
4044
+ cw as concatWs,
4045
+ _i as condition,
4046
+ Bw as count,
4047
+ Ew as countDistinct,
4048
+ dw as currentDate,
4049
+ lw as currentTime,
4050
+ Zw as currentTimestamp,
4051
+ io as default,
4052
+ fw as del,
4053
+ _g as deleteFrom,
4054
+ Pw as denseRank,
4055
+ $w as except,
4056
+ xw as exp,
4057
+ zw as extract,
4033
4058
  JA as findAll,
4034
- hw as floor,
4059
+ Fw as floor,
4035
4060
  jA as format,
4036
- OA as formatWithOptions,
4037
- c as func,
4061
+ tA as formatWithOptions,
4062
+ U as func,
4038
4063
  xA as generate,
4039
4064
  Vg as getColumns,
4040
- tA as getDialects,
4041
- lA as getVersion,
4042
- pw as greatest,
4043
- yw as ifNull,
4044
- BI as init,
4045
- Mw as initcap,
4046
- Vw as insert,
4047
- fg as insertInto,
4048
- fw as intersect,
4049
- pg as isColumn,
4050
- xg as isFunction,
4051
- EI as isInitialized,
4052
- Tg as isLiteral,
4053
- sg as isSelect,
4065
+ TA as getDialects,
4066
+ dA as getVersion,
4067
+ tw as greatest,
4068
+ qw as ifNull,
4069
+ DI as init,
4070
+ Yw as initcap,
4071
+ rw as insert,
4072
+ Xg as insertInto,
4073
+ _w as intersect,
4074
+ Og as isColumn,
4075
+ jg as isFunction,
4076
+ iI as isInitialized,
4077
+ xg as isLiteral,
4078
+ pg as isSelect,
4054
4079
  Tw as least,
4055
- ww as length,
4056
- Wi as lit,
4057
- Sw as ln,
4058
- iw as lower,
4059
- Gw as ltrim,
4060
- Ew as max,
4061
- ew as mergeInto,
4062
- Bw as min,
4063
- ui as not,
4064
- Rw as nullIf,
4065
- Aw as or,
4080
+ kw as length,
4081
+ Xi as lit,
4082
+ Ow as ln,
4083
+ Nw as lower,
4084
+ Kw as ltrim,
4085
+ ow as max,
4086
+ Ww as mergeInto,
4087
+ ww as min,
4088
+ $i as not,
4089
+ Hw as nullIf,
4090
+ Cw as or,
4066
4091
  pA as parse,
4067
- cw as power,
4068
- dw as rank,
4069
- tg as renameColumns,
4070
- Jw as replace,
4071
- kw as reverse,
4072
- Hw as round,
4073
- lw as rowNumber,
4074
- Nw as rtrim,
4075
- zw as select,
4076
- sw as sign,
4077
- Wg as sqlExpr,
4078
- bi as sqlNull,
4079
- Fw as sqrt,
4080
- rg as star,
4081
- Kw as substring,
4082
- Qw as sum,
4083
- vi as table,
4084
- KA as transform,
4092
+ sw as power,
4093
+ Vw as rank,
4094
+ dg as renameColumns,
4095
+ Rw as replace,
4096
+ Jw as reverse,
4097
+ Sw as round,
4098
+ mw as rowNumber,
4099
+ aw as rtrim,
4100
+ ew as select,
4101
+ jw as sign,
4102
+ fg as sqlExpr,
4103
+ ui as sqlNull,
4104
+ pw as sqrt,
4105
+ bg as star,
4106
+ yw as substring,
4107
+ Dw as sum,
4108
+ ni as table,
4109
+ aA as transform,
4085
4110
  sA as transpile,
4086
- ow as trim,
4087
- bw as union,
4088
- vw as unionAll,
4089
- mw as update,
4090
- Dw as upper,
4091
- go as validate,
4092
- $w as validateWithSchema,
4093
- t as walk
4111
+ Mw as trim,
4112
+ uw as union,
4113
+ nw as unionAll,
4114
+ bw as update,
4115
+ Gw as upper,
4116
+ Bo as validate,
4117
+ Qo as validateWithSchema,
4118
+ d as walk
4094
4119
  };