@dpuse/dpuse-development 0.3.744 → 0.3.746

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.
@@ -19,7 +19,7 @@ var l = Object.defineProperty, u = /* @__PURE__ */ ((e, t) => {
19
19
  Position: () => _e,
20
20
  SourceLocation: () => ve,
21
21
  TokContext: () => P,
22
- Token: () => Yt,
22
+ Token: () => Xt,
23
23
  TokenType: () => x,
24
24
  defaultOptions: () => be,
25
25
  getLineInfo: () => ye,
@@ -30,12 +30,12 @@ var l = Object.defineProperty, u = /* @__PURE__ */ ((e, t) => {
30
30
  lineBreak: () => D,
31
31
  lineBreakG: () => ie,
32
32
  nonASCIIwhitespace: () => se,
33
- parse: () => en,
34
- parseExpressionAt: () => tn,
33
+ parse: () => tn,
34
+ parseExpressionAt: () => nn,
35
35
  tokContexts: () => F,
36
36
  tokTypes: () => E,
37
- tokenizer: () => nn,
38
- version: () => $t
37
+ tokenizer: () => rn,
38
+ version: () => en
39
39
  }), d = [
40
40
  509,
41
41
  0,
@@ -2438,15 +2438,15 @@ kt.prototype.separatedFrom = function(e) {
2438
2438
  }, kt.prototype.sibling = function() {
2439
2439
  return new kt(this.parent, this.base);
2440
2440
  };
2441
- var R = function(e) {
2441
+ var At = function(e) {
2442
2442
  this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = wt[e.options.ecmaVersion >= 14 ? 14 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = Object.create(null), this.backReferenceNames = [], this.branchID = null;
2443
2443
  };
2444
- R.prototype.reset = function(e, t, n) {
2444
+ At.prototype.reset = function(e, t, n) {
2445
2445
  var r = n.indexOf("v") !== -1, i = n.indexOf("u") !== -1;
2446
2446
  this.start = e | 0, this.source = t + "", this.flags = n, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = i && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = i && this.parser.options.ecmaVersion >= 9);
2447
- }, R.prototype.raise = function(e) {
2447
+ }, At.prototype.raise = function(e) {
2448
2448
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + e);
2449
- }, R.prototype.at = function(e, t) {
2449
+ }, At.prototype.at = function(e, t) {
2450
2450
  t === void 0 && (t = !1);
2451
2451
  var n = this.source, r = n.length;
2452
2452
  if (e >= r) return -1;
@@ -2454,21 +2454,21 @@ R.prototype.reset = function(e, t, n) {
2454
2454
  if (!(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r) return i;
2455
2455
  var a = n.charCodeAt(e + 1);
2456
2456
  return a >= 56320 && a <= 57343 ? (i << 10) + a - 56613888 : i;
2457
- }, R.prototype.nextIndex = function(e, t) {
2457
+ }, At.prototype.nextIndex = function(e, t) {
2458
2458
  t === void 0 && (t = !1);
2459
2459
  var n = this.source, r = n.length;
2460
2460
  if (e >= r) return r;
2461
2461
  var i = n.charCodeAt(e), a;
2462
2462
  return !(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r || (a = n.charCodeAt(e + 1)) < 56320 || a > 57343 ? e + 1 : e + 2;
2463
- }, R.prototype.current = function(e) {
2463
+ }, At.prototype.current = function(e) {
2464
2464
  return e === void 0 && (e = !1), this.at(this.pos, e);
2465
- }, R.prototype.lookahead = function(e) {
2465
+ }, At.prototype.lookahead = function(e) {
2466
2466
  return e === void 0 && (e = !1), this.at(this.nextIndex(this.pos, e), e);
2467
- }, R.prototype.advance = function(e) {
2467
+ }, At.prototype.advance = function(e) {
2468
2468
  e === void 0 && (e = !1), this.pos = this.nextIndex(this.pos, e);
2469
- }, R.prototype.eat = function(e, t) {
2469
+ }, At.prototype.eat = function(e, t) {
2470
2470
  return t === void 0 && (t = !1), this.current(t) === e && (this.advance(t), !0);
2471
- }, R.prototype.eatChars = function(e, t) {
2471
+ }, At.prototype.eatChars = function(e, t) {
2472
2472
  t === void 0 && (t = !1);
2473
2473
  for (var n = this.pos, r = 0, i = e; r < i.length; r += 1) {
2474
2474
  var a = i[r], o = this.at(n, t);
@@ -2483,12 +2483,12 @@ R.prototype.reset = function(e, t, n) {
2483
2483
  }
2484
2484
  this.options.ecmaVersion >= 15 && r && i && this.raise(e.start, "Invalid regular expression flag");
2485
2485
  };
2486
- function At(e) {
2486
+ function jt(e) {
2487
2487
  for (var t in e) return !0;
2488
2488
  return !1;
2489
2489
  }
2490
2490
  L.validateRegExpPattern = function(e) {
2491
- this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && At(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2491
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && jt(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2492
2492
  }, L.regexp_pattern = function(e) {
2493
2493
  e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
2494
2494
  for (var t = 0, n = e.backReferenceNames; t < n.length; t += 1) {
@@ -2572,10 +2572,10 @@ L.validateRegExpPattern = function(e) {
2572
2572
  }
2573
2573
  return !1;
2574
2574
  }, L.regexp_eatModifiers = function(e) {
2575
- for (var t = "", n = 0; (n = e.current()) !== -1 && jt(n);) t += he(n), e.advance();
2575
+ for (var t = "", n = 0; (n = e.current()) !== -1 && Mt(n);) t += he(n), e.advance();
2576
2576
  return t;
2577
2577
  };
2578
- function jt(e) {
2578
+ function Mt(e) {
2579
2579
  return e === 105 || e === 109 || e === 115;
2580
2580
  }
2581
2581
  L.regexp_eatExtendedAtom = function(e) {
@@ -2584,13 +2584,13 @@ L.regexp_eatExtendedAtom = function(e) {
2584
2584
  return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
2585
2585
  }, L.regexp_eatSyntaxCharacter = function(e) {
2586
2586
  var t = e.current();
2587
- return Mt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2587
+ return Nt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2588
2588
  };
2589
- function Mt(e) {
2589
+ function Nt(e) {
2590
2590
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2591
2591
  }
2592
2592
  L.regexp_eatPatternCharacters = function(e) {
2593
- for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !Mt(n);) e.advance();
2593
+ for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !Nt(n);) e.advance();
2594
2594
  return e.pos !== t;
2595
2595
  }, L.regexp_eatExtendedPatternCharacter = function(e) {
2596
2596
  var t = e.current();
@@ -2619,16 +2619,16 @@ L.regexp_eatPatternCharacters = function(e) {
2619
2619
  return !1;
2620
2620
  }, L.regexp_eatRegExpIdentifierStart = function(e) {
2621
2621
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2622
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Nt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2622
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Pt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2623
2623
  };
2624
- function Nt(e) {
2624
+ function Pt(e) {
2625
2625
  return y(e, !0) || e === 36 || e === 95;
2626
2626
  }
2627
2627
  L.regexp_eatRegExpIdentifierPart = function(e) {
2628
2628
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2629
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Pt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2629
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Ft(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2630
2630
  };
2631
- function Pt(e) {
2631
+ function Ft(e) {
2632
2632
  return b(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2633
2633
  }
2634
2634
  L.regexp_eatAtomEscape = function(e) {
@@ -2658,15 +2658,15 @@ L.regexp_eatAtomEscape = function(e) {
2658
2658
  }
2659
2659
  return !1;
2660
2660
  }, L.regexp_eatZero = function(e) {
2661
- return e.current() === 48 && !Gt(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
2661
+ return e.current() === 48 && !Kt(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
2662
2662
  }, L.regexp_eatControlEscape = function(e) {
2663
2663
  var t = e.current();
2664
2664
  return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 && (e.lastIntValue = 13, e.advance(), !0);
2665
2665
  }, L.regexp_eatControlLetter = function(e) {
2666
2666
  var t = e.current();
2667
- return Ft(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2667
+ return It(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2668
2668
  };
2669
- function Ft(e) {
2669
+ function It(e) {
2670
2670
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2671
2671
  }
2672
2672
  L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
@@ -2685,12 +2685,12 @@ L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2685
2685
  }
2686
2686
  return !0;
2687
2687
  }
2688
- if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && It(e.lastIntValue)) return !0;
2688
+ if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && Lt(e.lastIntValue)) return !0;
2689
2689
  r && e.raise("Invalid unicode escape"), e.pos = n;
2690
2690
  }
2691
2691
  return !1;
2692
2692
  };
2693
- function It(e) {
2693
+ function Lt(e) {
2694
2694
  return e >= 0 && e <= 1114111;
2695
2695
  }
2696
2696
  L.regexp_eatIdentityEscape = function(e) {
@@ -2708,20 +2708,20 @@ L.regexp_eatIdentityEscape = function(e) {
2708
2708
  }
2709
2709
  return !1;
2710
2710
  };
2711
- var Lt = 0, Rt = 1, z = 2;
2711
+ var Rt = 0, zt = 1, R = 2;
2712
2712
  L.regexp_eatCharacterClassEscape = function(e) {
2713
2713
  var t = e.current();
2714
- if (zt(t)) return e.lastIntValue = -1, e.advance(), Rt;
2714
+ if (Bt(t)) return e.lastIntValue = -1, e.advance(), zt;
2715
2715
  var n = !1;
2716
2716
  if (e.switchU && this.options.ecmaVersion >= 9 && ((n = t === 80) || t === 112)) {
2717
2717
  e.lastIntValue = -1, e.advance();
2718
2718
  var r;
2719
- if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === z && e.raise("Invalid property name"), r;
2719
+ if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === R && e.raise("Invalid property name"), r;
2720
2720
  e.raise("Invalid property name");
2721
2721
  }
2722
- return Lt;
2722
+ return Rt;
2723
2723
  };
2724
- function zt(e) {
2724
+ function Bt(e) {
2725
2725
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2726
2726
  }
2727
2727
  L.regexp_eatUnicodePropertyValueExpression = function(e) {
@@ -2730,46 +2730,46 @@ L.regexp_eatUnicodePropertyValueExpression = function(e) {
2730
2730
  var n = e.lastStringValue;
2731
2731
  if (this.regexp_eatUnicodePropertyValue(e)) {
2732
2732
  var r = e.lastStringValue;
2733
- return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), Rt;
2733
+ return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), zt;
2734
2734
  }
2735
2735
  }
2736
2736
  if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2737
2737
  var i = e.lastStringValue;
2738
2738
  return this.regexp_validateUnicodePropertyNameOrValue(e, i);
2739
2739
  }
2740
- return Lt;
2740
+ return Rt;
2741
2741
  }, L.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
2742
2742
  de(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
2743
2743
  }, L.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2744
- if (e.unicodeProperties.binary.test(t)) return Rt;
2745
- if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return z;
2744
+ if (e.unicodeProperties.binary.test(t)) return zt;
2745
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return R;
2746
2746
  e.raise("Invalid property name");
2747
2747
  }, L.regexp_eatUnicodePropertyName = function(e) {
2748
2748
  var t = 0;
2749
- for (e.lastStringValue = ""; Bt(t = e.current());) e.lastStringValue += he(t), e.advance();
2749
+ for (e.lastStringValue = ""; Vt(t = e.current());) e.lastStringValue += he(t), e.advance();
2750
2750
  return e.lastStringValue !== "";
2751
2751
  };
2752
- function Bt(e) {
2753
- return Ft(e) || e === 95;
2752
+ function Vt(e) {
2753
+ return It(e) || e === 95;
2754
2754
  }
2755
2755
  L.regexp_eatUnicodePropertyValue = function(e) {
2756
2756
  var t = 0;
2757
- for (e.lastStringValue = ""; Vt(t = e.current());) e.lastStringValue += he(t), e.advance();
2757
+ for (e.lastStringValue = ""; Ht(t = e.current());) e.lastStringValue += he(t), e.advance();
2758
2758
  return e.lastStringValue !== "";
2759
2759
  };
2760
- function Vt(e) {
2761
- return Bt(e) || Gt(e);
2760
+ function Ht(e) {
2761
+ return Vt(e) || Kt(e);
2762
2762
  }
2763
2763
  L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2764
2764
  return this.regexp_eatUnicodePropertyValue(e);
2765
2765
  }, L.regexp_eatCharacterClass = function(e) {
2766
2766
  if (e.eat(91)) {
2767
2767
  var t = e.eat(94), n = this.regexp_classContents(e);
2768
- return e.eat(93) || e.raise("Unterminated character class"), t && n === z && e.raise("Negated character class may contain strings"), !0;
2768
+ return e.eat(93) || e.raise("Unterminated character class"), t && n === R && e.raise("Negated character class may contain strings"), !0;
2769
2769
  }
2770
2770
  return !1;
2771
2771
  }, L.regexp_classContents = function(e) {
2772
- return e.current() === 93 ? Rt : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), Rt);
2772
+ return e.current() === 93 ? zt : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), zt);
2773
2773
  }, L.regexp_nonEmptyClassRanges = function(e) {
2774
2774
  for (; this.regexp_eatClassAtom(e);) {
2775
2775
  var t = e.lastIntValue;
@@ -2784,7 +2784,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2784
2784
  if (this.regexp_eatClassEscape(e)) return !0;
2785
2785
  if (e.switchU) {
2786
2786
  var n = e.current();
2787
- (n === 99 || Jt(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2787
+ (n === 99 || Yt(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2788
2788
  }
2789
2789
  e.pos = t;
2790
2790
  }
@@ -2800,13 +2800,13 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2800
2800
  }
2801
2801
  return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2802
2802
  }, L.regexp_classSetExpression = function(e) {
2803
- var t = Rt, n;
2803
+ var t = zt, n;
2804
2804
  if (!this.regexp_eatClassSetRange(e)) {
2805
2805
  if (n = this.regexp_eatClassSetOperand(e)) {
2806
- n === z && (t = z);
2806
+ n === R && (t = R);
2807
2807
  for (var r = e.pos; e.eatChars([38, 38]);) {
2808
2808
  if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
2809
- n !== z && (t = Rt);
2809
+ n !== R && (t = zt);
2810
2810
  continue;
2811
2811
  }
2812
2812
  e.raise("Invalid character in character class");
@@ -2818,7 +2818,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2818
2818
  }
2819
2819
  for (;;) if (!this.regexp_eatClassSetRange(e)) {
2820
2820
  if (n = this.regexp_eatClassSetOperand(e), !n) return t;
2821
- n === z && (t = z);
2821
+ n === R && (t = R);
2822
2822
  }
2823
2823
  }, L.regexp_eatClassSetRange = function(e) {
2824
2824
  var t = e.pos;
@@ -2832,12 +2832,12 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2832
2832
  }
2833
2833
  return !1;
2834
2834
  }, L.regexp_eatClassSetOperand = function(e) {
2835
- return this.regexp_eatClassSetCharacter(e) ? Rt : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2835
+ return this.regexp_eatClassSetCharacter(e) ? zt : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2836
2836
  }, L.regexp_eatNestedClass = function(e) {
2837
2837
  var t = e.pos;
2838
2838
  if (e.eat(91)) {
2839
2839
  var n = e.eat(94), r = this.regexp_classContents(e);
2840
- if (e.eat(93)) return n && r === z && e.raise("Negated character class may contain strings"), r;
2840
+ if (e.eat(93)) return n && r === R && e.raise("Negated character class may contain strings"), r;
2841
2841
  e.pos = t;
2842
2842
  }
2843
2843
  if (e.eat(92)) {
@@ -2857,33 +2857,33 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2857
2857
  }
2858
2858
  return null;
2859
2859
  }, L.regexp_classStringDisjunctionContents = function(e) {
2860
- for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === z && (t = z);
2860
+ for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === R && (t = R);
2861
2861
  return t;
2862
2862
  }, L.regexp_classString = function(e) {
2863
2863
  for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
2864
- return t === 1 ? Rt : z;
2864
+ return t === 1 ? zt : R;
2865
2865
  }, L.regexp_eatClassSetCharacter = function(e) {
2866
2866
  var t = e.pos;
2867
2867
  if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(98) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
2868
2868
  var n = e.current();
2869
- return n < 0 || n === e.lookahead() && Ht(n) || Ut(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
2869
+ return n < 0 || n === e.lookahead() && Ut(n) || Wt(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
2870
2870
  };
2871
- function Ht(e) {
2871
+ function Ut(e) {
2872
2872
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2873
2873
  }
2874
- function Ut(e) {
2874
+ function Wt(e) {
2875
2875
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2876
2876
  }
2877
2877
  L.regexp_eatClassSetReservedPunctuator = function(e) {
2878
2878
  var t = e.current();
2879
- return Wt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2879
+ return Gt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2880
2880
  };
2881
- function Wt(e) {
2881
+ function Gt(e) {
2882
2882
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2883
2883
  }
2884
2884
  L.regexp_eatClassControlLetter = function(e) {
2885
2885
  var t = e.current();
2886
- return Gt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2886
+ return Kt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2887
2887
  }, L.regexp_eatHexEscapeSequence = function(e) {
2888
2888
  var t = e.pos;
2889
2889
  if (e.eat(120)) {
@@ -2893,21 +2893,21 @@ L.regexp_eatClassControlLetter = function(e) {
2893
2893
  return !1;
2894
2894
  }, L.regexp_eatDecimalDigits = function(e) {
2895
2895
  var t = e.pos, n = 0;
2896
- for (e.lastIntValue = 0; Gt(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
2896
+ for (e.lastIntValue = 0; Kt(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
2897
2897
  return e.pos !== t;
2898
2898
  };
2899
- function Gt(e) {
2899
+ function Kt(e) {
2900
2900
  return e >= 48 && e <= 57;
2901
2901
  }
2902
2902
  L.regexp_eatHexDigits = function(e) {
2903
2903
  var t = e.pos, n = 0;
2904
- for (e.lastIntValue = 0; Kt(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + qt(n), e.advance();
2904
+ for (e.lastIntValue = 0; qt(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + Jt(n), e.advance();
2905
2905
  return e.pos !== t;
2906
2906
  };
2907
- function Kt(e) {
2907
+ function qt(e) {
2908
2908
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2909
2909
  }
2910
- function qt(e) {
2910
+ function Jt(e) {
2911
2911
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2912
2912
  }
2913
2913
  L.regexp_eatLegacyOctalEscapeSequence = function(e) {
@@ -2922,9 +2922,9 @@ L.regexp_eatLegacyOctalEscapeSequence = function(e) {
2922
2922
  return !1;
2923
2923
  }, L.regexp_eatOctalDigit = function(e) {
2924
2924
  var t = e.current();
2925
- return Jt(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2925
+ return Yt(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2926
2926
  };
2927
- function Jt(e) {
2927
+ function Yt(e) {
2928
2928
  return e >= 48 && e <= 55;
2929
2929
  }
2930
2930
  L.regexp_eatFixedHexDigits = function(e, t) {
@@ -2932,19 +2932,19 @@ L.regexp_eatFixedHexDigits = function(e, t) {
2932
2932
  e.lastIntValue = 0;
2933
2933
  for (var r = 0; r < t; ++r) {
2934
2934
  var i = e.current();
2935
- if (!Kt(i)) return e.pos = n, !1;
2936
- e.lastIntValue = 16 * e.lastIntValue + qt(i), e.advance();
2935
+ if (!qt(i)) return e.pos = n, !1;
2936
+ e.lastIntValue = 16 * e.lastIntValue + Jt(i), e.advance();
2937
2937
  }
2938
2938
  return !0;
2939
2939
  };
2940
- var Yt = function(e) {
2940
+ var Xt = function(e) {
2941
2941
  this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new ve(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2942
- }, B = k.prototype;
2943
- B.next = function(e) {
2944
- !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Yt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2945
- }, B.getToken = function() {
2946
- return this.next(), new Yt(this);
2947
- }, typeof Symbol < "u" && (B[Symbol.iterator] = function() {
2942
+ }, z = k.prototype;
2943
+ z.next = function(e) {
2944
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Xt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2945
+ }, z.getToken = function() {
2946
+ return this.next(), new Xt(this);
2947
+ }, typeof Symbol < "u" && (z[Symbol.iterator] = function() {
2948
2948
  var e = this;
2949
2949
  return { next: function() {
2950
2950
  var t = e.getToken();
@@ -2953,28 +2953,28 @@ B.next = function(e) {
2953
2953
  value: t
2954
2954
  };
2955
2955
  } };
2956
- }), B.nextToken = function() {
2956
+ }), z.nextToken = function() {
2957
2957
  var e = this.curContext();
2958
2958
  if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) return this.finishToken(E.eof);
2959
2959
  if (e.override) return e.override(this);
2960
2960
  this.readToken(this.fullCharCodeAtPos());
2961
- }, B.readToken = function(e) {
2961
+ }, z.readToken = function(e) {
2962
2962
  return y(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2963
- }, B.fullCharCodeAt = function(e) {
2963
+ }, z.fullCharCodeAt = function(e) {
2964
2964
  var t = this.input.charCodeAt(e);
2965
2965
  if (t <= 55295 || t >= 56320) return t;
2966
2966
  var n = this.input.charCodeAt(e + 1);
2967
2967
  return n <= 56319 || n >= 57344 ? t : (t << 10) + n - 56613888;
2968
- }, B.fullCharCodeAtPos = function() {
2968
+ }, z.fullCharCodeAtPos = function() {
2969
2969
  return this.fullCharCodeAt(this.pos);
2970
- }, B.skipBlockComment = function() {
2970
+ }, z.skipBlockComment = function() {
2971
2971
  var e = this.options.onComment && this.curPosition(), t = this.pos, n = this.input.indexOf("*/", this.pos += 2);
2972
2972
  if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var r = void 0, i = t; (r = oe(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
2973
2973
  this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, n), t, this.pos, e, this.curPosition());
2974
- }, B.skipLineComment = function(e) {
2974
+ }, z.skipLineComment = function(e) {
2975
2975
  for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !ae(r);) r = this.input.charCodeAt(++this.pos);
2976
2976
  this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, n, this.curPosition());
2977
- }, B.skipSpace = function() {
2977
+ }, z.skipSpace = function() {
2978
2978
  loop: for (; this.pos < this.input.length;) {
2979
2979
  var e = this.input.charCodeAt(this.pos);
2980
2980
  switch (e) {
@@ -3003,36 +3003,36 @@ B.next = function(e) {
3003
3003
  else break loop;
3004
3004
  }
3005
3005
  }
3006
- }, B.finishToken = function(e, t) {
3006
+ }, z.finishToken = function(e, t) {
3007
3007
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
3008
3008
  var n = this.type;
3009
3009
  this.type = e, this.value = t, this.updateContext(n);
3010
- }, B.readToken_dot = function() {
3010
+ }, z.readToken_dot = function() {
3011
3011
  var e = this.input.charCodeAt(this.pos + 1);
3012
3012
  if (e >= 48 && e <= 57) return this.readNumber(!0);
3013
3013
  var t = this.input.charCodeAt(this.pos + 2);
3014
3014
  return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(E.ellipsis)) : (++this.pos, this.finishToken(E.dot));
3015
- }, B.readToken_slash = function() {
3015
+ }, z.readToken_slash = function() {
3016
3016
  var e = this.input.charCodeAt(this.pos + 1);
3017
3017
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.slash, 1);
3018
- }, B.readToken_mult_modulo_exp = function(e) {
3018
+ }, z.readToken_mult_modulo_exp = function(e) {
3019
3019
  var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? E.star : E.modulo;
3020
3020
  return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = E.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(E.assign, n + 1) : this.finishOp(r, n);
3021
- }, B.readToken_pipe_amp = function(e) {
3021
+ }, z.readToken_pipe_amp = function(e) {
3022
3022
  var t = this.input.charCodeAt(this.pos + 1);
3023
3023
  return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(E.assign, 3) : this.finishOp(e === 124 ? E.logicalOR : E.logicalAND, 2) : t === 61 ? this.finishOp(E.assign, 2) : this.finishOp(e === 124 ? E.bitwiseOR : E.bitwiseAND, 1);
3024
- }, B.readToken_caret = function() {
3024
+ }, z.readToken_caret = function() {
3025
3025
  return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.bitwiseXOR, 1);
3026
- }, B.readToken_plus_min = function(e) {
3026
+ }, z.readToken_plus_min = function(e) {
3027
3027
  var t = this.input.charCodeAt(this.pos + 1);
3028
3028
  return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || D.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(E.incDec, 2) : t === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.plusMin, 1);
3029
- }, B.readToken_lt_gt = function(e) {
3029
+ }, z.readToken_lt_gt = function(e) {
3030
3030
  var t = this.input.charCodeAt(this.pos + 1), n = 1;
3031
3031
  return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(E.assign, n + 1) : this.finishOp(E.bitShift, n)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (n = 2), this.finishOp(E.relational, n));
3032
- }, B.readToken_eq_excl = function(e) {
3032
+ }, z.readToken_eq_excl = function(e) {
3033
3033
  var t = this.input.charCodeAt(this.pos + 1);
3034
3034
  return t === 61 ? this.finishOp(E.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(E.arrow)) : this.finishOp(e === 61 ? E.eq : E.prefix, 1);
3035
- }, B.readToken_question = function() {
3035
+ }, z.readToken_question = function() {
3036
3036
  var e = this.options.ecmaVersion;
3037
3037
  if (e >= 11) {
3038
3038
  var t = this.input.charCodeAt(this.pos + 1);
@@ -3043,11 +3043,11 @@ B.next = function(e) {
3043
3043
  if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(E.assign, 3) : this.finishOp(E.coalesce, 2);
3044
3044
  }
3045
3045
  return this.finishOp(E.question, 1);
3046
- }, B.readToken_numberSign = function() {
3046
+ }, z.readToken_numberSign = function() {
3047
3047
  var e = this.options.ecmaVersion, t = 35;
3048
3048
  if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), y(t, !0) || t === 92)) return this.finishToken(E.privateId, this.readWord1());
3049
3049
  this.raise(this.pos, "Unexpected character '" + he(t) + "'");
3050
- }, B.getTokenFromCode = function(e) {
3050
+ }, z.getTokenFromCode = function(e) {
3051
3051
  switch (e) {
3052
3052
  case 46: return this.readToken_dot();
3053
3053
  case 40: return ++this.pos, this.finishToken(E.parenL);
@@ -3097,10 +3097,10 @@ B.next = function(e) {
3097
3097
  case 35: return this.readToken_numberSign();
3098
3098
  }
3099
3099
  this.raise(this.pos, "Unexpected character '" + he(e) + "'");
3100
- }, B.finishOp = function(e, t) {
3100
+ }, z.finishOp = function(e, t) {
3101
3101
  var n = this.input.slice(this.pos, this.pos + t);
3102
3102
  return this.pos += t, this.finishToken(e, n);
3103
- }, B.readRegexp = function() {
3103
+ }, z.readRegexp = function() {
3104
3104
  for (var e, t, n = this.pos;;) {
3105
3105
  this.pos >= this.input.length && this.raise(n, "Unterminated regular expression");
3106
3106
  var r = this.input.charAt(this.pos);
@@ -3117,7 +3117,7 @@ B.next = function(e) {
3117
3117
  ++this.pos;
3118
3118
  var a = this.pos, o = this.readWord1();
3119
3119
  this.containsEsc && this.unexpected(a);
3120
- var s = this.regexpState ||= new R(this);
3120
+ var s = this.regexpState ||= new At(this);
3121
3121
  s.reset(n, i, o), this.validateRegExpFlags(s), this.validateRegExpPattern(s);
3122
3122
  var c = null;
3123
3123
  try {
@@ -3128,7 +3128,7 @@ B.next = function(e) {
3128
3128
  flags: o,
3129
3129
  value: c
3130
3130
  });
3131
- }, B.readInt = function(e, t, n) {
3131
+ }, z.readInt = function(e, t, n) {
3132
3132
  for (var r = this.options.ecmaVersion >= 12 && t === void 0, i = n && this.input.charCodeAt(this.pos) === 48, a = this.pos, o = 0, s = 0, c = 0, l = t ?? Infinity; c < l; ++c, ++this.pos) {
3133
3133
  var u = this.input.charCodeAt(this.pos), d = void 0;
3134
3134
  if (r && u === 95) {
@@ -3140,31 +3140,31 @@ B.next = function(e) {
3140
3140
  }
3141
3141
  return r && s === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === a || t != null && this.pos - a !== t ? null : o;
3142
3142
  };
3143
- function Xt(e, t) {
3143
+ function Zt(e, t) {
3144
3144
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
3145
3145
  }
3146
- function Zt(e) {
3146
+ function Qt(e) {
3147
3147
  return typeof BigInt == "function" ? BigInt(e.replace(/_/g, "")) : null;
3148
3148
  }
3149
- B.readRadixNumber = function(e) {
3149
+ z.readRadixNumber = function(e) {
3150
3150
  var t = this.pos;
3151
3151
  this.pos += 2;
3152
3152
  var n = this.readInt(e);
3153
- return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Zt(this.input.slice(t, this.pos)), ++this.pos) : y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, n);
3154
- }, B.readNumber = function(e) {
3153
+ return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Qt(this.input.slice(t, this.pos)), ++this.pos) : y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, n);
3154
+ }, z.readNumber = function(e) {
3155
3155
  var t = this.pos;
3156
3156
  !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
3157
3157
  var n = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
3158
3158
  n && this.strict && this.raise(t, "Invalid number");
3159
3159
  var r = this.input.charCodeAt(this.pos);
3160
3160
  if (!n && !e && this.options.ecmaVersion >= 11 && r === 110) {
3161
- var i = Zt(this.input.slice(t, this.pos));
3161
+ var i = Qt(this.input.slice(t, this.pos));
3162
3162
  return ++this.pos, y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, i);
3163
3163
  }
3164
3164
  n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3165
- var a = Xt(this.input.slice(t, this.pos), n);
3165
+ var a = Zt(this.input.slice(t, this.pos), n);
3166
3166
  return this.finishToken(E.num, a);
3167
- }, B.readCodePoint = function() {
3167
+ }, z.readCodePoint = function() {
3168
3168
  var e = this.input.charCodeAt(this.pos), t;
3169
3169
  if (e === 123) {
3170
3170
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -3172,7 +3172,7 @@ B.readRadixNumber = function(e) {
3172
3172
  t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(n, "Code point out of bounds");
3173
3173
  } else t = this.readHexChar(4);
3174
3174
  return t;
3175
- }, B.readString = function(e) {
3175
+ }, z.readString = function(e) {
3176
3176
  for (var t = "", n = ++this.pos;;) {
3177
3177
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3178
3178
  var r = this.input.charCodeAt(this.pos);
@@ -3181,20 +3181,20 @@ B.readRadixNumber = function(e) {
3181
3181
  }
3182
3182
  return t += this.input.slice(n, this.pos++), this.finishToken(E.string, t);
3183
3183
  };
3184
- var Qt = {};
3185
- B.tryReadTemplateToken = function() {
3184
+ var $t = {};
3185
+ z.tryReadTemplateToken = function() {
3186
3186
  this.inTemplateElement = !0;
3187
3187
  try {
3188
3188
  this.readTmplToken();
3189
3189
  } catch (e) {
3190
- if (e === Qt) this.readInvalidTemplateToken();
3190
+ if (e === $t) this.readInvalidTemplateToken();
3191
3191
  else throw e;
3192
3192
  }
3193
3193
  this.inTemplateElement = !1;
3194
- }, B.invalidStringToken = function(e, t) {
3195
- if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Qt;
3194
+ }, z.invalidStringToken = function(e, t) {
3195
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw $t;
3196
3196
  this.raise(e, t);
3197
- }, B.readTmplToken = function() {
3197
+ }, z.readTmplToken = function() {
3198
3198
  for (var e = "", t = this.pos;;) {
3199
3199
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3200
3200
  var n = this.input.charCodeAt(this.pos);
@@ -3211,7 +3211,7 @@ B.tryReadTemplateToken = function() {
3211
3211
  this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
3212
3212
  } else ++this.pos;
3213
3213
  }
3214
- }, B.readInvalidTemplateToken = function() {
3214
+ }, z.readInvalidTemplateToken = function() {
3215
3215
  for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
3216
3216
  case "\\":
3217
3217
  ++this.pos;
@@ -3224,7 +3224,7 @@ B.tryReadTemplateToken = function() {
3224
3224
  case "\u2029": ++this.curLine, this.lineStart = this.pos + 1;
3225
3225
  }
3226
3226
  this.raise(this.start, "Unterminated template");
3227
- }, B.readEscapedChar = function(e) {
3227
+ }, z.readEscapedChar = function(e) {
3228
3228
  var t = this.input.charCodeAt(++this.pos);
3229
3229
  switch (++this.pos, t) {
3230
3230
  case 110: return "\n";
@@ -3249,10 +3249,10 @@ B.tryReadTemplateToken = function() {
3249
3249
  }
3250
3250
  return ae(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
3251
3251
  }
3252
- }, B.readHexChar = function(e) {
3252
+ }, z.readHexChar = function(e) {
3253
3253
  var t = this.pos, n = this.readInt(16, e);
3254
3254
  return n === null && this.invalidStringToken(t, "Bad character escape sequence"), n;
3255
- }, B.readWord1 = function() {
3255
+ }, z.readWord1 = function() {
3256
3256
  this.containsEsc = !1;
3257
3257
  for (var e = "", t = !0, n = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
3258
3258
  var i = this.fullCharCodeAtPos();
@@ -3267,14 +3267,14 @@ B.tryReadTemplateToken = function() {
3267
3267
  t = !1;
3268
3268
  }
3269
3269
  return e + this.input.slice(n, this.pos);
3270
- }, B.readWord = function() {
3270
+ }, z.readWord = function() {
3271
3271
  var e = this.readWord1(), t = E.name;
3272
3272
  return this.keywords.test(e) && (t = re[e]), this.finishToken(t, e);
3273
3273
  };
3274
- var $t = "8.18.0";
3274
+ var en = "8.18.0";
3275
3275
  k.acorn = {
3276
3276
  Parser: k,
3277
- version: $t,
3277
+ version: en,
3278
3278
  defaultOptions: be,
3279
3279
  Position: _e,
3280
3280
  SourceLocation: ve,
@@ -3287,24 +3287,24 @@ k.acorn = {
3287
3287
  tokContexts: F,
3288
3288
  isIdentifierChar: b,
3289
3289
  isIdentifierStart: y,
3290
- Token: Yt,
3290
+ Token: Xt,
3291
3291
  isNewLine: ae,
3292
3292
  lineBreak: D,
3293
3293
  lineBreakG: ie,
3294
3294
  nonASCIIwhitespace: se
3295
3295
  };
3296
- function en(e, t) {
3296
+ function tn(e, t) {
3297
3297
  return k.parse(e, t);
3298
3298
  }
3299
- function tn(e, t, n) {
3299
+ function nn(e, t, n) {
3300
3300
  return k.parseExpressionAt(e, t, n);
3301
3301
  }
3302
- function nn(e, t) {
3302
+ function rn(e, t) {
3303
3303
  return k.tokenizer(e, t);
3304
3304
  }
3305
3305
  //#endregion
3306
3306
  //#region node_modules/acorn-typescript/lib/index.mjs
3307
- function rn(e, t) {
3307
+ function an(e, t) {
3308
3308
  for (var n = 0; n < t.length; n++) {
3309
3309
  var r = t[n];
3310
3310
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, typeof (i = function(e, t) {
@@ -3320,36 +3320,36 @@ function rn(e, t) {
3320
3320
  }
3321
3321
  var i;
3322
3322
  }
3323
- function an() {
3324
- return an = Object.assign ? Object.assign.bind() : function(e) {
3323
+ function on() {
3324
+ return on = Object.assign ? Object.assign.bind() : function(e) {
3325
3325
  for (var t = 1; t < arguments.length; t++) {
3326
3326
  var n = arguments[t];
3327
3327
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3328
3328
  }
3329
3329
  return e;
3330
- }, an.apply(this, arguments);
3331
- }
3332
- function on(e, t) {
3333
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, sn(e, t);
3330
+ }, on.apply(this, arguments);
3334
3331
  }
3335
3332
  function sn(e, t) {
3336
- return sn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
3337
- return e.__proto__ = t, e;
3338
- }, sn(e, t);
3333
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, cn(e, t);
3339
3334
  }
3340
3335
  function cn(e, t) {
3336
+ return cn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
3337
+ return e.__proto__ = t, e;
3338
+ }, cn(e, t);
3339
+ }
3340
+ function ln(e, t) {
3341
3341
  (t == null || t > e.length) && (t = e.length);
3342
3342
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
3343
3343
  return r;
3344
3344
  }
3345
- function ln(e, t) {
3345
+ function un(e, t) {
3346
3346
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
3347
3347
  if (n) return (n = n.call(e)).next.bind(n);
3348
3348
  if (Array.isArray(e) || (n = function(e, t) {
3349
3349
  if (e) {
3350
- if (typeof e == "string") return cn(e, t);
3350
+ if (typeof e == "string") return ln(e, t);
3351
3351
  var n = Object.prototype.toString.call(e).slice(8, -1);
3352
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? cn(e, t) : void 0;
3352
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ln(e, t) : void 0;
3353
3353
  }
3354
3354
  }(e)) || t && e && typeof e.length == "number") {
3355
3355
  n && (e = n);
@@ -3363,28 +3363,28 @@ function ln(e, t) {
3363
3363
  }
3364
3364
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3365
3365
  }
3366
- var V = !0;
3367
- function H(e, t) {
3366
+ var B = !0;
3367
+ function V(e, t) {
3368
3368
  return t === void 0 && (t = {}), new x("name", t);
3369
3369
  }
3370
- var un = /* @__PURE__ */ new WeakMap();
3371
- function dn(e) {
3372
- var t = un.get(e.Parser.acorn || e);
3370
+ var dn = /* @__PURE__ */ new WeakMap();
3371
+ function fn(e) {
3372
+ var t = dn.get(e.Parser.acorn || e);
3373
3373
  if (!t) {
3374
3374
  var n = {
3375
- assert: H(0, { startsExpr: V }),
3376
- asserts: H(0, { startsExpr: V }),
3377
- global: H(0, { startsExpr: V }),
3378
- keyof: H(0, { startsExpr: V }),
3379
- readonly: H(0, { startsExpr: V }),
3380
- unique: H(0, { startsExpr: V }),
3381
- abstract: H(0, { startsExpr: V }),
3382
- declare: H(0, { startsExpr: V }),
3383
- enum: H(0, { startsExpr: V }),
3384
- module: H(0, { startsExpr: V }),
3385
- namespace: H(0, { startsExpr: V }),
3386
- interface: H(0, { startsExpr: V }),
3387
- type: H(0, { startsExpr: V })
3375
+ assert: V(0, { startsExpr: B }),
3376
+ asserts: V(0, { startsExpr: B }),
3377
+ global: V(0, { startsExpr: B }),
3378
+ keyof: V(0, { startsExpr: B }),
3379
+ readonly: V(0, { startsExpr: B }),
3380
+ unique: V(0, { startsExpr: B }),
3381
+ abstract: V(0, { startsExpr: B }),
3382
+ declare: V(0, { startsExpr: B }),
3383
+ enum: V(0, { startsExpr: B }),
3384
+ module: V(0, { startsExpr: B }),
3385
+ namespace: V(0, { startsExpr: B }),
3386
+ interface: V(0, { startsExpr: B }),
3387
+ type: V(0, { startsExpr: B })
3388
3388
  }, r = {
3389
3389
  at: new x("@"),
3390
3390
  jsxName: new x("jsxName"),
@@ -3402,8 +3402,8 @@ function dn(e) {
3402
3402
  var t = this.context.pop();
3403
3403
  t === i.tc_oTag && e === E.slash || t === i.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === i.tc_expr) : this.exprAllowed = !0;
3404
3404
  }, t = {
3405
- tokTypes: an({}, n, r),
3406
- tokContexts: an({}, i),
3405
+ tokTypes: on({}, n, r),
3406
+ tokContexts: on({}, i),
3407
3407
  keywordsRegExp: a,
3408
3408
  tokenIsLiteralPropertyName: function(e) {
3409
3409
  return [
@@ -3443,18 +3443,18 @@ function dn(e) {
3443
3443
  }
3444
3444
  return t;
3445
3445
  }
3446
- var fn = 1024, pn = RegExp("(?=(" + (/* @__PURE__ */ RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y")).source + "))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)", "y"), mn = function() {
3446
+ var pn = 1024, mn = RegExp("(?=(" + (/* @__PURE__ */ RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y")).source + "))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)", "y"), hn = function() {
3447
3447
  this.shorthandAssign = void 0, this.trailingComma = void 0, this.parenthesizedAssign = void 0, this.parenthesizedBind = void 0, this.doubleProto = void 0, this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
3448
3448
  };
3449
- function hn(e, t) {
3449
+ function gn(e, t) {
3450
3450
  var n = t.key.name, r = e[n], i = "true";
3451
3451
  return t.type !== "MethodDefinition" || t.kind !== "get" && t.kind !== "set" || (i = (t.static ? "s" : "i") + t.kind), r === "iget" && i === "iset" || r === "iset" && i === "iget" || r === "sget" && i === "sset" || r === "sset" && i === "sget" ? (e[n] = "true", !1) : !!r || (e[n] = i, !1);
3452
3452
  }
3453
- function gn(e, t) {
3453
+ function _n(e, t) {
3454
3454
  var n = e.key;
3455
3455
  return !e.computed && (n.type === "Identifier" && n.name === t || n.type === "Literal" && n.value === t);
3456
3456
  }
3457
- var U = {
3457
+ var H = {
3458
3458
  AbstractMethodHasImplementation: function(e) {
3459
3459
  return "Method '" + e.methodName + "' cannot have an implementation because it is marked abstract.";
3460
3460
  },
@@ -3555,7 +3555,7 @@ var U = {
3555
3555
  return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + e.type + ".";
3556
3556
  },
3557
3557
  LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations."
3558
- }, _n = {
3558
+ }, vn = {
3559
3559
  quot: "\"",
3560
3560
  amp: "&",
3561
3561
  apos: "'",
@@ -3809,38 +3809,38 @@ var U = {
3809
3809
  clubs: "♣",
3810
3810
  hearts: "♥",
3811
3811
  diams: "♦"
3812
- }, vn = /^[\da-fA-F]+$/, yn = /^\d+$/;
3813
- function bn(e) {
3814
- return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? bn(e.object) + "." + bn(e.property) : void 0);
3812
+ }, yn = /^[\da-fA-F]+$/, bn = /^\d+$/;
3813
+ function xn(e) {
3814
+ return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? xn(e.object) + "." + xn(e.property) : void 0);
3815
3815
  }
3816
- var xn = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
3817
- function Sn(e) {
3816
+ var Sn = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
3817
+ function Cn(e) {
3818
3818
  if (!e) throw Error("Assert fail");
3819
3819
  }
3820
- function Cn(e) {
3820
+ function wn(e) {
3821
3821
  return e === "accessor";
3822
3822
  }
3823
- function wn(e) {
3823
+ function Tn(e) {
3824
3824
  return e === "in" || e === "out";
3825
3825
  }
3826
- function Tn(e, t) {
3826
+ function En(e, t) {
3827
3827
  return 2 | (e ? 4 : 0) | (t ? 8 : 0);
3828
3828
  }
3829
- function En(e) {
3829
+ function Dn(e) {
3830
3830
  if (e.type !== "MemberExpression") return !1;
3831
3831
  var t = e.property;
3832
- return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && Dn(e.object);
3833
- }
3834
- function Dn(e) {
3835
- return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && Dn(e.object);
3832
+ return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && On(e.object);
3836
3833
  }
3837
3834
  function On(e) {
3838
- return e === "private" || e === "public" || e === "protected";
3835
+ return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && On(e.object);
3839
3836
  }
3840
3837
  function kn(e) {
3838
+ return e === "private" || e === "public" || e === "protected";
3839
+ }
3840
+ function An(e) {
3841
3841
  var t = e || {}, n = t.dts, r = n !== void 0 && n, i = t.allowSatisfies, a = i !== void 0 && i;
3842
3842
  return function(t) {
3843
- var n = t.acorn || u, i = dn(n), o = n.tokTypes, s = n.keywordTypes, c = n.isIdentifierStart, l = n.lineBreak, d = n.isNewLine, f = n.tokContexts, p = n.isIdentifierChar, m = i.tokTypes, h = i.tokContexts, g = i.keywordsRegExp, _ = i.tokenIsLiteralPropertyName, ee = i.tokenIsTemplate, te = i.tokenIsTSDeclarationStart, v = i.tokenIsIdentifier, ne = i.tokenIsKeywordOrIdentifier, y = i.tokenIsTSTypeOperator;
3843
+ var n = t.acorn || u, i = fn(n), o = n.tokTypes, s = n.keywordTypes, c = n.isIdentifierStart, l = n.lineBreak, d = n.isNewLine, f = n.tokContexts, p = n.isIdentifierChar, m = i.tokTypes, h = i.tokContexts, g = i.keywordsRegExp, _ = i.tokenIsLiteralPropertyName, ee = i.tokenIsTemplate, te = i.tokenIsTSDeclarationStart, v = i.tokenIsIdentifier, ne = i.tokenIsKeywordOrIdentifier, y = i.tokenIsTSTypeOperator;
3844
3844
  function b(e, t, n) {
3845
3845
  n === void 0 && (n = e.length);
3846
3846
  for (var r = t; r < n; r++) {
@@ -3855,7 +3855,7 @@ function kn(e) {
3855
3855
  function t() {
3856
3856
  return e.apply(this, arguments) || this;
3857
3857
  }
3858
- on(t, e);
3858
+ sn(t, e);
3859
3859
  var n = t.prototype;
3860
3860
  return n.takeDecorators = function(e) {
3861
3861
  var t = this.decoratorStack[this.decoratorStack.length - 1];
@@ -3898,7 +3898,7 @@ function kn(e) {
3898
3898
  function t() {
3899
3899
  return e.apply(this, arguments) || this;
3900
3900
  }
3901
- on(t, e);
3901
+ sn(t, e);
3902
3902
  var n = t.prototype;
3903
3903
  return n.jsx_readToken = function() {
3904
3904
  for (var e = "", t = this.pos;;) {
@@ -3931,7 +3931,7 @@ function kn(e) {
3931
3931
  r !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
3932
3932
  for (var i = ++this.pos; this.pos < this.input.length && n++ < 10;) {
3933
3933
  if ((r = this.input[this.pos++]) === ";") {
3934
- t[0] === "#" ? t[1] === "x" ? (t = t.substr(2), vn.test(t) && (e = String.fromCharCode(parseInt(t, 16)))) : (t = t.substr(1), yn.test(t) && (e = String.fromCharCode(parseInt(t, 10)))) : e = _n[t];
3934
+ t[0] === "#" ? t[1] === "x" ? (t = t.substr(2), yn.test(t) && (e = String.fromCharCode(parseInt(t, 16)))) : (t = t.substr(1), bn.test(t) && (e = String.fromCharCode(parseInt(t, 10)))) : e = vn[t];
3935
3935
  break;
3936
3936
  }
3937
3937
  t += r;
@@ -4005,7 +4005,7 @@ function kn(e) {
4005
4005
  break;
4006
4006
  default: this.unexpected();
4007
4007
  }
4008
- bn(s.name) !== bn(o.name) && this.raise(s.start, "Expected corresponding JSX closing tag for <" + bn(o.name) + ">");
4008
+ xn(s.name) !== xn(o.name) && this.raise(s.start, "Expected corresponding JSX closing tag for <" + xn(o.name) + ">");
4009
4009
  }
4010
4010
  var c = o.name ? "Element" : "Fragment";
4011
4011
  return n["opening" + c] = o, n["closing" + c] = s, n.children = r, this.type === i.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(n, "JSX" + c);
@@ -4023,7 +4023,7 @@ function kn(e) {
4023
4023
  function t() {
4024
4024
  return e.apply(this, arguments) || this;
4025
4025
  }
4026
- on(t, e);
4026
+ sn(t, e);
4027
4027
  var n = t.prototype;
4028
4028
  return n.parseMaybeImportAttributes = function(e) {
4029
4029
  if (this.type === i._with || this.type === r.assert) {
@@ -4054,10 +4054,10 @@ function kn(e) {
4054
4054
  }(i), {
4055
4055
  allowedModifiers: ["const"],
4056
4056
  disallowedModifiers: ["in", "out"],
4057
- errorTemplate: U.InvalidModifierOnTypeParameterPositions
4057
+ errorTemplate: H.InvalidModifierOnTypeParameterPositions
4058
4058
  }), i;
4059
4059
  }
4060
- on(t, e);
4060
+ sn(t, e);
4061
4061
  var u, x, S, C = t.prototype;
4062
4062
  return C.getTokenFromCodeInType = function(t) {
4063
4063
  return t === 62 || t === 60 ? this.finishOp(o.relational, 1) : e.prototype.getTokenFromCode.call(this, t);
@@ -4125,14 +4125,14 @@ function kn(e) {
4125
4125
  return this.nextTokenStartSince(this.pos);
4126
4126
  }, C.tsHasSomeModifiers = function(e, t) {
4127
4127
  return t.some(function(t) {
4128
- return On(t) ? e.accessibility === t : !!e[t];
4128
+ return kn(t) ? e.accessibility === t : !!e[t];
4129
4129
  });
4130
4130
  }, C.tsIsStartOfStaticBlocks = function() {
4131
4131
  return this.isContextual("static") && this.lookaheadCharCode() === 123;
4132
4132
  }, C.tsCheckForInvalidTypeCasts = function(e) {
4133
4133
  var t = this;
4134
4134
  e.forEach(function(e) {
4135
- e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, U.UnexpectedTypeAnnotation);
4135
+ e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, H.UnexpectedTypeAnnotation);
4136
4136
  });
4137
4137
  }, C.atPossibleAsyncArrow = function(e) {
4138
4138
  return e.type === "Identifier" && e.name === "async" && this.lastTokEndLoc.column === e.end && !this.canInsertSemicolon() && e.end - e.start == 5 && e.start === this.potentialArrowAt;
@@ -4173,7 +4173,7 @@ function kn(e) {
4173
4173
  }, C.isAbstractConstructorSignature = function() {
4174
4174
  return this.ts_isContextual(m.abstract) && this.lookahead().type === o._new;
4175
4175
  }, C.nextTokenStartSince = function(e) {
4176
- return xn.lastIndex = e, xn.test(this.input) ? xn.lastIndex : e;
4176
+ return Sn.lastIndex = e, Sn.test(this.input) ? Sn.lastIndex : e;
4177
4177
  }, C.lookaheadCharCode = function() {
4178
4178
  return this.input.charCodeAt(this.nextTokenStart());
4179
4179
  }, C.compareLookaheadState = function(e, t) {
@@ -4257,7 +4257,7 @@ function kn(e) {
4257
4257
  }, C.isLineTerminator = function() {
4258
4258
  return this.eat(o.semi) || e.prototype.canInsertSemicolon.call(this);
4259
4259
  }, C.hasFollowingLineBreak = function() {
4260
- return pn.lastIndex = this.end, pn.test(this.input);
4260
+ return mn.lastIndex = this.end, mn.test(this.input);
4261
4261
  }, C.addExtra = function(e, t, n, r) {
4262
4262
  if (r === void 0 && (r = !0), e) {
4263
4263
  var i = e.extra = e.extra || {};
@@ -4349,7 +4349,7 @@ function kn(e) {
4349
4349
  }
4350
4350
  return this.next(), e.prototype.exitScope.call(this), this.finishNode(t, "TSModuleBlock");
4351
4351
  }, C.tsParseAmbientExternalModuleDeclaration = function(t) {
4352
- return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this, fn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this)) : e.prototype.semicolon.call(this), this.finishNode(t, "TSModuleDeclaration");
4352
+ return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this, pn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this)) : e.prototype.semicolon.call(this), this.finishNode(t, "TSModuleDeclaration");
4353
4353
  }, C.tsTryParseDeclare = function(e) {
4354
4354
  var t = this;
4355
4355
  if (!this.isLineTerminator()) {
@@ -4450,7 +4450,7 @@ function kn(e) {
4450
4450
  }, C.tsParseBindingListForSignature = function() {
4451
4451
  var t = this;
4452
4452
  return e.prototype.parseBindingList.call(this, o.parenR, !0, !0).map(function(e) {
4453
- return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, U.UnsupportedSignatureParameterKind(e.type)), e;
4453
+ return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, H.UnsupportedSignatureParameterKind(e.type)), e;
4454
4454
  });
4455
4455
  }, C.tsParseTypePredicateAsserts = function() {
4456
4456
  if (this.type !== m.asserts) return !1;
@@ -4496,7 +4496,7 @@ function kn(e) {
4496
4496
  if (this.lookahead().type !== o._const) return null;
4497
4497
  this.next();
4498
4498
  var e = this.tsParseTypeReference();
4499
- return e.typeParameters && this.raise(e.typeName.start, U.CannotFindName({ name: "const" })), e;
4499
+ return e.typeParameters && this.raise(e.typeName.start, H.CannotFindName({ name: "const" })), e;
4500
4500
  }, C.tsParseFunctionOrConstructorType = function(e, t) {
4501
4501
  var n = this, r = this.startNode();
4502
4502
  return e === "TSConstructorType" && (r.abstract = !!t, t && this.next(), this.next()), this.tsInAllowConditionalTypesContext(function() {
@@ -4512,7 +4512,7 @@ function kn(e) {
4512
4512
  switch (e.typeAnnotation.type) {
4513
4513
  case "TSTupleType":
4514
4514
  case "TSArrayType": return;
4515
- default: this.raise(e.start, U.UnexpectedReadonly);
4515
+ default: this.raise(e.start, H.UnexpectedReadonly);
4516
4516
  }
4517
4517
  }, C.tsParseTypeOperator = function() {
4518
4518
  var e = this.startNode(), t = this.value;
@@ -4545,7 +4545,7 @@ function kn(e) {
4545
4545
  }(), this.finishNode(t, "TSLiteralType");
4546
4546
  }, C.tsParseImportType = function() {
4547
4547
  var e = this.startNode();
4548
- return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, U.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
4548
+ return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, H.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
4549
4549
  }, C.tsParseTypeQuery = function() {
4550
4550
  var e = this.startNode();
4551
4551
  return this.expect(o._typeof), e.exprName = this.match(o._import) ? this.tsParseImportType() : this.tsParseEntityName(), !this.hasPrecedingLineBreak() && this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeQuery");
@@ -4562,7 +4562,7 @@ function kn(e) {
4562
4562
  var e = this.startLoc, t = this.start, n = this.eat(o.ellipsis), r = this.tsParseType(), i = this.eat(o.question);
4563
4563
  if (this.eat(o.colon)) {
4564
4564
  var a = this.startNodeAtNode(r);
4565
- a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, U.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
4565
+ a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, H.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
4566
4566
  } else if (i) {
4567
4567
  var s = this.startNodeAtNode(r);
4568
4568
  s.typeAnnotation = r, r = this.finishNode(s, "TSOptionalType");
@@ -4578,11 +4578,11 @@ function kn(e) {
4578
4578
  var n = !1, r = null;
4579
4579
  return t.elementTypes.forEach(function(t) {
4580
4580
  var i = t.type;
4581
- !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, U.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
4581
+ !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, H.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
4582
4582
  var a = i;
4583
4583
  i === "TSRestType" && (a = (t = t.typeAnnotation).type);
4584
4584
  var o = a === "TSNamedTupleMember";
4585
- r ??= o, r !== o && e.raise(t.start, U.MixedLabeledAndUnlabeledElements);
4585
+ r ??= o, r !== o && e.raise(t.start, H.MixedLabeledAndUnlabeledElements);
4586
4586
  }), this.finishNode(t, "TSTupleType");
4587
4587
  }, C.tsParseTemplateLiteralType = function() {
4588
4588
  var e = this.startNode();
@@ -4665,7 +4665,7 @@ function kn(e) {
4665
4665
  return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(o._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
4666
4666
  }, C.tsParseType = function() {
4667
4667
  var e = this;
4668
- Sn(this.inType);
4668
+ Cn(this.inType);
4669
4669
  var t = this.tsParseNonConditionalType();
4670
4670
  if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(o._extends)) return t;
4671
4671
  var n = this.startNodeAtNode(t);
@@ -4699,7 +4699,7 @@ function kn(e) {
4699
4699
  modified: e,
4700
4700
  allowedModifiers: [],
4701
4701
  disallowedModifiers: ["in", "out"],
4702
- errorTemplate: U.InvalidModifierOnTypeParameterPositions
4702
+ errorTemplate: H.InvalidModifierOnTypeParameterPositions
4703
4703
  });
4704
4704
  }, C.tsParseTypeParameter = function(e) {
4705
4705
  e === void 0 && (e = this.tsParseNoneModifiers.bind(this));
@@ -4709,7 +4709,7 @@ function kn(e) {
4709
4709
  var t = this.startNode();
4710
4710
  this.tsMatchLeftRelational() || this.matchJsx("jsxTagStart") ? this.next() : this.unexpected();
4711
4711
  var n = { value: -1 };
4712
- return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, U.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
4712
+ return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, H.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
4713
4713
  }, C.tsTryParseTypeParameters = function(e) {
4714
4714
  if (this.tsMatchLeftRelational()) return this.tsParseTypeParameters(e);
4715
4715
  }, C.tsTryParse = function(e) {
@@ -4733,14 +4733,14 @@ function kn(e) {
4733
4733
  t[a] = n[a];
4734
4734
  }
4735
4735
  }, C.tsParseModifiers = function(e) {
4736
- for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? U.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
4737
- r === i && n[a] && t.raise(e.column, U.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
4736
+ for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? H.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
4737
+ r === i && n[a] && t.raise(e.column, H.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
4738
4738
  }, u = function(e, r, i, a) {
4739
- (n[i] && r === a || n[a] && r === i) && t.raise(e.column, U.IncompatibleModifiers({ modifiers: [i, a] }));
4739
+ (n[i] && r === a || n[a] && r === i) && t.raise(e.column, H.IncompatibleModifiers({ modifiers: [i, a] }));
4740
4740
  };;) {
4741
4741
  var d = this.startLoc, f = this.tsParseModifier(r.concat(i ?? []), a);
4742
4742
  if (!f) break;
4743
- On(f) ? n.accessibility ? this.raise(this.start, U.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : wn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : Cn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
4743
+ kn(f) ? n.accessibility ? this.raise(this.start, H.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : Tn(f) ? n[f] ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : wn(f) ? n[f] ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
4744
4744
  }
4745
4745
  return c;
4746
4746
  }, C.tsParseInOutModifiers = function(e) {
@@ -4756,7 +4756,7 @@ function kn(e) {
4756
4756
  "abstract",
4757
4757
  "override"
4758
4758
  ],
4759
- errorTemplate: U.InvalidModifierOnTypeParameter
4759
+ errorTemplate: H.InvalidModifierOnTypeParameter
4760
4760
  });
4761
4761
  }, C.tsParseTypeArguments = function() {
4762
4762
  var e = this, t = this.startNode();
@@ -4764,13 +4764,13 @@ function kn(e) {
4764
4764
  return e.tsInNoContext(function() {
4765
4765
  return e.expect(o.relational), e.tsParseDelimitedList("TypeParametersOrArguments", e.tsParseType.bind(e));
4766
4766
  });
4767
- }), t.params.length === 0 && this.raise(this.start, U.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
4767
+ }), t.params.length === 0 && this.raise(this.start, H.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
4768
4768
  }, C.tsParseHeritageClause = function(e) {
4769
4769
  var t = this, n = this.start, r = this.tsParseDelimitedList("HeritageClauseElement", function() {
4770
4770
  var e = t.startNode();
4771
4771
  return e.expression = t.tsParseEntityName(), t.tsMatchLeftRelational() && (e.typeParameters = t.tsParseTypeArguments()), t.finishNode(e, "TSExpressionWithTypeArguments");
4772
4772
  });
4773
- return r.length || this.raise(n, U.EmptyHeritageClauseType({ token: e })), r;
4773
+ return r.length || this.raise(n, H.EmptyHeritageClauseType({ token: e })), r;
4774
4774
  }, C.tsParseTypeMemberSemicolon = function() {
4775
4775
  this.eat(o.comma) || this.isLineTerminator() || this.expect(o.semi);
4776
4776
  }, C.tsTryParseAndCatch = function(e) {
@@ -4784,18 +4784,18 @@ function kn(e) {
4784
4784
  this.eat(o.question) && (e.optional = !0);
4785
4785
  var n = e;
4786
4786
  if (this.match(o.parenL) || this.tsMatchLeftRelational()) {
4787
- t && this.raise(e.start, U.ReadonlyForMethodSignature);
4787
+ t && this.raise(e.start, H.ReadonlyForMethodSignature);
4788
4788
  var r = n;
4789
- r.kind && this.tsMatchLeftRelational() && this.raise(this.start, U.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
4789
+ r.kind && this.tsMatchLeftRelational() && this.raise(this.start, H.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
4790
4790
  var i = "parameters", a = "typeAnnotation";
4791
- if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, U.AccesorCannotDeclareThisParameter));
4791
+ if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, H.AccesorCannotDeclareThisParameter));
4792
4792
  else if (r.kind === "set") {
4793
4793
  if (r[i].length !== 1) this.raise(this.start, "A 'get' accesor must not have any formal parameters.");
4794
4794
  else {
4795
4795
  var s = r[i][0];
4796
- this.isThisParam(s) && this.raise(this.start, U.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, U.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, U.SetAccesorCannotHaveRestParameter);
4796
+ this.isThisParam(s) && this.raise(this.start, H.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, H.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, H.SetAccesorCannotHaveRestParameter);
4797
4797
  }
4798
- r[a] && this.raise(r[a].start, U.SetAccesorCannotHaveReturnType);
4798
+ r[a] && this.raise(r[a].start, H.SetAccesorCannotHaveReturnType);
4799
4799
  } else r.kind = "method";
4800
4800
  return this.finishNode(r, "TSMethodSignature");
4801
4801
  }
@@ -4832,7 +4832,7 @@ function kn(e) {
4832
4832
  return this.expect(o.braceR), e;
4833
4833
  }, C.tsParseInterfaceDeclaration = function(e, t) {
4834
4834
  if (t === void 0 && (t = {}), this.hasFollowingLineBreak()) return null;
4835
- this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, U.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
4835
+ this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, H.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
4836
4836
  var n = this.startNode();
4837
4837
  return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), e.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode(e, "TSInterfaceDeclaration");
4838
4838
  }, C.tsParseAbstractDeclaration = function(e) {
@@ -4850,7 +4850,7 @@ function kn(e) {
4850
4850
  break;
4851
4851
  case "global":
4852
4852
  if (this.match(o.braceL)) {
4853
- e.prototype.enterScope.call(this, fn);
4853
+ e.prototype.enterScope.call(this, pn);
4854
4854
  var i = t;
4855
4855
  return i.global = !0, i.id = n, i.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this), this.finishNode(i, "TSModuleDeclaration");
4856
4856
  }
@@ -4889,7 +4889,7 @@ function kn(e) {
4889
4889
  if (n === void 0 && (n = !1), t.id = this.parseIdent(), n || this.checkLValSimple(t.id, 8), this.eat(o.dot)) {
4890
4890
  var r = this.startNode();
4891
4891
  this.tsParseModuleOrNamespaceDeclaration(r, !0), t.body = r;
4892
- } else e.prototype.enterScope.call(this, fn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this);
4892
+ } else e.prototype.enterScope.call(this, pn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this);
4893
4893
  return this.finishNode(t, "TSModuleDeclaration");
4894
4894
  }, C.checkLValSimple = function(t, n, r) {
4895
4895
  return n === void 0 && (n = 0), e.prototype.checkLValSimple.call(this, t, n, r);
@@ -4923,7 +4923,7 @@ function kn(e) {
4923
4923
  }, C.tsParseImportEqualsDeclaration = function(t, n) {
4924
4924
  t.isExport = n || !1, t.id = this.parseIdent(), this.checkLValSimple(t.id, 2), e.prototype.expect.call(this, o.eq);
4925
4925
  var r = this.tsParseModuleReference();
4926
- return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, U.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
4926
+ return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, H.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
4927
4927
  }, C.isExportDefaultSpecifier = function() {
4928
4928
  if (this.tsIsDeclarationStart()) return !1;
4929
4929
  var e = this.type;
@@ -4950,13 +4950,13 @@ function kn(e) {
4950
4950
  }, C.parseFunction = function(e, t, n, r, i) {
4951
4951
  this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && 2 & t && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), 1 & t && (e.id = 4 & t && this.type !== o.name ? null : this.parseIdent());
4952
4952
  var a = this.yieldPos, s = this.awaitPos, c = this.awaitIdentPos, l = this.maybeInArrowParameters;
4953
- this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Tn(e.async, e.generator)), 1 & t || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e);
4953
+ this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(En(e.async, e.generator)), 1 & t || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e);
4954
4954
  var u = 1 & t;
4955
4955
  return this.parseFunctionBody(e, n, !1, i, { isFunctionDeclaration: u }), this.yieldPos = a, this.awaitPos = s, this.awaitIdentPos = c, 1 & t && e.id && !(2 & t) && this.checkLValSimple(e.id, e.body ? this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters = l, this.finishNode(e, u ? "FunctionDeclaration" : "FunctionExpression");
4956
4956
  }, C.parseFunctionBody = function(t, n, r, i, a) {
4957
4957
  n === void 0 && (n = !1), r === void 0 && (r = !1), i === void 0 && (i = !1), this.match(o.colon) && (t.returnType = this.tsParseTypeOrTypePredicateAnnotation(o.colon));
4958
4958
  var s = a != null && a.isFunctionDeclaration ? "TSDeclareFunction" : a != null && a.isClassMethod ? "TSDeclareMethod" : void 0;
4959
- return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, U.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
4959
+ return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, H.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
4960
4960
  }, C.parseNew = function() {
4961
4961
  var e;
4962
4962
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
@@ -4997,7 +4997,7 @@ function kn(e) {
4997
4997
  return this.importOrExportOuterKind = "value", r;
4998
4998
  }
4999
4999
  }
5000
- return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, U.TypeImportCannotSpecifyDefaultAndNamed), e;
5000
+ return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, H.TypeImportCannotSpecifyDefaultAndNamed), e;
5001
5001
  }, C.parseExportDefaultDeclaration = function() {
5002
5002
  if (this.isAbstractClass()) {
5003
5003
  var t = this.startNode();
@@ -5037,7 +5037,7 @@ function kn(e) {
5037
5037
  else {
5038
5038
  if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== o.string && this.unexpected(), e.source = this.parseExprAtom(), this.parseMaybeImportAttributes(e);
5039
5039
  else {
5040
- for (var s, c = ln(e.specifiers); !(s = c()).done;) {
5040
+ for (var s, c = un(e.specifiers); !(s = c()).done;) {
5041
5041
  var l = s.value;
5042
5042
  this.checkUnreserved(l.local), this.checkLocalExport(l.local), l.local.type === "Literal" && this.raise(l.local.start, "A string literal cannot be used as an exported binding without `from`.");
5043
5043
  }
@@ -5050,7 +5050,7 @@ function kn(e) {
5050
5050
  e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), e[t] = !0);
5051
5051
  }, C.parseMaybeDefault = function(t, n, r) {
5052
5052
  var i = e.prototype.parseMaybeDefault.call(this, t, n, r);
5053
- return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, U.TypeAnnotationAfterAssign), i;
5053
+ return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, H.TypeAnnotationAfterAssign), i;
5054
5054
  }, C.typeCastToParameter = function(e) {
5055
5055
  return e.expression.typeAnnotation = e.typeAnnotation, this.resetEndLocation(e.expression, e.typeAnnotation.end), e.expression;
5056
5056
  }, C.toAssignableList = function(t, n) {
@@ -5099,9 +5099,9 @@ function kn(e) {
5099
5099
  this.next(), e.prototype.parseVar.call(this, t, !1, n, r || i), this.semicolon();
5100
5100
  var a = this.finishNode(t, "VariableDeclaration");
5101
5101
  if (!i) return a;
5102
- for (var o, s = ln(a.declarations); !(o = s()).done;) {
5102
+ for (var o, s = un(a.declarations); !(o = s()).done;) {
5103
5103
  var c = o.value, l = c.init;
5104
- l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, U.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !En(l) && this.raise(l.start, U.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5104
+ l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, H.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !Dn(l) && this.raise(l.start, H.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5105
5105
  }
5106
5106
  return a;
5107
5107
  }, C.parseStatement = function(t, n, r) {
@@ -5122,7 +5122,7 @@ function kn(e) {
5122
5122
  "private"
5123
5123
  ]);
5124
5124
  }, C.parsePostMemberNameModifiers = function(e) {
5125
- this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, U.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, U.ClassMethodHasDeclare);
5125
+ this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, H.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, H.ClassMethodHasDeclare);
5126
5126
  }, C.parseExpressionStatement = function(t, n) {
5127
5127
  return (n.type === "Identifier" ? this.tsParseExpressionStatement(t, n) : void 0) || e.prototype.parseExpressionStatement.call(this, t, n);
5128
5128
  }, C.shouldParseExportStatement = function() {
@@ -5154,7 +5154,7 @@ function kn(e) {
5154
5154
  return t.parseExportDeclaration(e);
5155
5155
  });
5156
5156
  var n = this.start, r = this.startLoc, i = this.eatContextual("declare");
5157
- !i || !this.ts_isContextual(m.declare) && this.shouldParseExportStatement() || this.raise(this.start, U.ExpectedAmbientAfterExportDeclare);
5157
+ !i || !this.ts_isContextual(m.declare) && this.shouldParseExportStatement() || this.raise(this.start, H.ExpectedAmbientAfterExportDeclare);
5158
5158
  var a = v(this.type) && this.tsTryParseExportDeclaration() || this.parseStatement(null);
5159
5159
  return a ? ((a.type === "TSInterfaceDeclaration" || a.type === "TSTypeAliasDeclaration" || i) && (e.exportKind = "type"), i && (this.resetStartLocation(a, n, r), a.declare = !0), a) : null;
5160
5160
  }, C.parseClassId = function(t, n) {
@@ -5168,19 +5168,19 @@ function kn(e) {
5168
5168
  var t = this.tsTryParseTypeAnnotation();
5169
5169
  t && (e.typeAnnotation = t);
5170
5170
  }, C.parseClassField = function(t) {
5171
- if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, U.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, U.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5172
- else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, U.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5171
+ if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, H.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, H.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5172
+ else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, H.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5173
5173
  var n = t.key;
5174
- this.raise(this.start, U.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5174
+ this.raise(this.start, H.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5175
5175
  }
5176
5176
  return e.prototype.parseClassField.call(this, t);
5177
5177
  }, C.parseClassMethod = function(e, t, n, r) {
5178
5178
  var i = e.kind === "constructor", a = e.key.type === "PrivateIdentifier", o = this.tsTryParseTypeParameters();
5179
- a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, U.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, U.ConstructorHasTypeParameters);
5179
+ a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, H.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, H.ConstructorHasTypeParameters);
5180
5180
  var s = e.declare, c = e.kind;
5181
- !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, U.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5181
+ !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, H.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5182
5182
  var l = e.key;
5183
- e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && gn(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
5183
+ e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && _n(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
5184
5184
  var u = e.value = this.parseMethod(t, n, r, !0, e);
5185
5185
  return e.kind === "get" && u.params.length !== 0 && this.raiseRecoverable(u.start, "getter should have no params"), e.kind === "set" && u.params.length !== 1 && this.raiseRecoverable(u.start, "setter should have exactly one param"), e.kind === "set" && u.params[0].type === "RestElement" && this.raiseRecoverable(u.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
5186
5186
  }, C.isClassMethod = function() {
@@ -5204,23 +5204,23 @@ function kn(e) {
5204
5204
  allowedModifiers: d,
5205
5205
  disallowedModifiers: ["in", "out"],
5206
5206
  stopOnStartOfClassStaticBlock: !0,
5207
- errorTemplate: U.InvalidModifierOnTypeParameterPositions
5207
+ errorTemplate: H.InvalidModifierOnTypeParameterPositions
5208
5208
  }).static;
5209
5209
  var f = function() {
5210
5210
  if (!n.tsIsStartOfStaticBlocks()) {
5211
5211
  var f = n.tsTryParseIndexSignature(a);
5212
- if (f) return a.abstract && n.raise(a.start, U.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, U.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, U.IndexSignatureHasDeclare), a.override && n.raise(a.start, U.IndexSignatureHasOverride), f;
5213
- if (!n.inAbstractClass && a.abstract && n.raise(a.start, U.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, U.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5212
+ if (f) return a.abstract && n.raise(a.start, H.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, H.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, H.IndexSignatureHasDeclare), a.override && n.raise(a.start, H.IndexSignatureHasOverride), f;
5213
+ if (!n.inAbstractClass && a.abstract && n.raise(a.start, H.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, H.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5214
5214
  var p = n.value;
5215
5215
  (n.eatContextual("get") || n.eatContextual("set")) && (n.isClassElementNameStart() ? u = p : s = p);
5216
5216
  }
5217
5217
  if (s ? (a.computed = !1, a.key = n.startNodeAt(n.lastTokStart, n.lastTokStartLoc), a.key.name = s, n.finishNode(a.key, "Identifier")) : n.parseClassElementName(a), n.parsePostMemberNameModifiers(a), n.isClassMethod() || i < 13 || n.type === o.parenL || u !== "method" || c || l) {
5218
- var m = !a.static && gn(a, "constructor"), h = m && t;
5218
+ var m = !a.static && _n(a, "constructor"), h = m && t;
5219
5219
  m && u !== "method" && n.raise(a.key.start, "Constructor can't have get/set modifier"), a.kind = m ? "constructor" : u, n.parseClassMethod(a, c, l, h);
5220
5220
  } else n.parseClassField(a);
5221
5221
  return a;
5222
5222
  }
5223
- if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, U.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5223
+ if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, H.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5224
5224
  };
5225
5225
  return a.declare ? this.tsInAmbientContext(f) : f(), a;
5226
5226
  }, C.isClassElementNameStart = function() {
@@ -5237,7 +5237,7 @@ function kn(e) {
5237
5237
  }, C.parseArrowExpression = function(e, t, n, r) {
5238
5238
  this.match(o.colon) && (e.returnType = this.tsParseTypeAnnotation());
5239
5239
  var i = this.yieldPos, a = this.awaitPos, s = this.awaitIdentPos;
5240
- this.enterScope(16 | Tn(n, !1)), this.initFunction(e);
5240
+ this.enterScope(16 | En(n, !1)), this.initFunction(e);
5241
5241
  var c = this.maybeInArrowParameters;
5242
5242
  return this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.maybeInArrowParameters = !0, e.params = this.toAssignableList(t, !0), this.maybeInArrowParameters = !1, this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = s, this.maybeInArrowParameters = c, this.finishNode(e, "ArrowFunctionExpression");
5243
5243
  }, C.parseMaybeAssignOrigin = function(e, t, n) {
@@ -5246,7 +5246,7 @@ function kn(e) {
5246
5246
  this.exprAllowed = !1;
5247
5247
  }
5248
5248
  var r = !1, i = -1, a = -1, s = -1;
5249
- t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new mn(), r = !0);
5249
+ t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new hn(), r = !0);
5250
5250
  var c = this.start, l = this.startLoc;
5251
5251
  (this.type === o.parenL || v(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
5252
5252
  var u = this.parseMaybeConditional(e, t);
@@ -5273,7 +5273,7 @@ function kn(e) {
5273
5273
  return (a.type !== "ArrowFunctionExpression" || (i = a.extra) != null && i.parenthesized) && r(), f?.params.length !== 0 && p.resetStartLocationFromNode(a, f), a.typeParameters = f, a;
5274
5274
  }, l);
5275
5275
  if (!g.error && !g.aborted) return f && this.reportReservedArrowTypeParam(f), g.node;
5276
- if (!u && (Sn(!0), !(d = this.tryParse(function() {
5276
+ if (!u && (Cn(!0), !(d = this.tryParse(function() {
5277
5277
  return p.parseMaybeAssignOrigin(e, t, n);
5278
5278
  }, l)).error)) return d.node;
5279
5279
  if ((a = u) != null && a.node) return this.setLookaheadState(u.failState), u.node;
@@ -5294,20 +5294,20 @@ function kn(e) {
5294
5294
  "override",
5295
5295
  "readonly"
5296
5296
  ]
5297
- }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, U.UnexpectedParameterModifier);
5297
+ }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, H.UnexpectedParameterModifier);
5298
5298
  }
5299
5299
  var c = this.parseMaybeDefault(r, i);
5300
5300
  this.parseBindingListItem(c);
5301
5301
  var l = this.parseMaybeDefault(c.start, c.loc, c);
5302
5302
  if (t.length && (l.decorators = t), n || a || o) {
5303
5303
  var u = this.startNodeAt(r, i);
5304
- return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, U.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5304
+ return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, H.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5305
5305
  }
5306
5306
  return l;
5307
5307
  }, C.checkLValInnerPattern = function(t, n, r) {
5308
5308
  n === void 0 && (n = 0), t.type === "TSParameterProperty" ? this.checkLValInnerPattern(t.parameter, n, r) : e.prototype.checkLValInnerPattern.call(this, t, n, r);
5309
5309
  }, C.parseBindingListItem = function(e) {
5310
- this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, U.PatternIsOptional), e.optional = !0);
5310
+ this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, H.PatternIsOptional), e.optional = !0);
5311
5311
  var t = this.tsTryParseTypeAnnotation();
5312
5312
  return t && (e.typeAnnotation = t), this.resetEndLocation(e), e;
5313
5313
  }, C.isAssignable = function(e, t) {
@@ -5338,12 +5338,12 @@ function kn(e) {
5338
5338
  default: return !1;
5339
5339
  }
5340
5340
  }, C.toAssignable = function(t, n, r) {
5341
- switch (n === void 0 && (n = !1), r === void 0 && (r = new mn()), t.type) {
5341
+ switch (n === void 0 && (n = !1), r === void 0 && (r = new hn()), t.type) {
5342
5342
  case "ParenthesizedExpression": return this.toAssignableParenthesizedExpression(t, n, r);
5343
5343
  case "TSAsExpression":
5344
5344
  case "TSSatisfiesExpression":
5345
5345
  case "TSNonNullExpression":
5346
- case "TSTypeAssertion": return n || this.raise(t.start, U.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5346
+ case "TSTypeAssertion": return n || this.raise(t.start, H.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5347
5347
  case "MemberExpression": break;
5348
5348
  case "AssignmentExpression": return n || t.left.type !== "TSTypeCastExpression" || (t.left = this.typeCastToParameter(t.left)), e.prototype.toAssignable.call(this, t, n, r);
5349
5349
  case "TSTypeCastExpression": return this.typeCastToParameter(t);
@@ -5395,7 +5395,7 @@ function kn(e) {
5395
5395
  if (this.options.ecmaVersion >= 6) {
5396
5396
  var s = this.maybeInArrowParameters;
5397
5397
  this.maybeInArrowParameters = !0, this.next();
5398
- var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new mn(), h = this.yieldPos, g = this.awaitPos;
5398
+ var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new hn(), h = this.yieldPos, g = this.awaitPos;
5399
5399
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR;) {
5400
5400
  if (f ? f = !1 : this.expect(o.comma), a && this.afterTrailingComma(o.parenR, !0)) {
5401
5401
  p = !0;
@@ -5464,7 +5464,7 @@ function kn(e) {
5464
5464
  return u.typeParameters = a, u;
5465
5465
  }
5466
5466
  if (!r && c.eat(o.parenL)) {
5467
- var p = new mn(), m = c.startNodeAt(t, n);
5467
+ var p = new hn(), m = c.startNodeAt(t, n);
5468
5468
  return m.callee = e, m.arguments = c.parseExprList(o.parenR, c.options.ecmaVersion >= 8, !1, p), c.tsCheckForInvalidTypeCasts(m.arguments), m.typeParameters = a, l && (m.optional = d), c.checkExpressionErrors(p, !0), e = c.finishNode(m, "CallExpression");
5469
5469
  }
5470
5470
  var h = c.type;
@@ -5473,7 +5473,7 @@ function kn(e) {
5473
5473
  return _.expression = e, _.typeParameters = a, c.finishNode(_, "TSInstantiationExpression");
5474
5474
  }
5475
5475
  });
5476
- if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, U.InvalidPropertyAccessAfterInstantiationExpression), e = p;
5476
+ if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, H.InvalidPropertyAccessAfterInstantiationExpression), e = p;
5477
5477
  }
5478
5478
  var m = this.options.ecmaVersion >= 11, h = m && this.eat(o.questionDot);
5479
5479
  r && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
@@ -5484,7 +5484,7 @@ function kn(e) {
5484
5484
  } else if (!r && this.eat(o.parenL)) {
5485
5485
  var te = this.maybeInArrowParameters;
5486
5486
  this.maybeInArrowParameters = !0;
5487
- var v = new mn(), ne = this.yieldPos, y = this.awaitPos, b = this.awaitIdentPos;
5487
+ var v = new hn(), ne = this.yieldPos, y = this.awaitPos, b = this.awaitIdentPos;
5488
5488
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
5489
5489
  var x = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, v);
5490
5490
  if (i && !h && this.shouldParseAsyncArrow()) this.checkPatternErrors(v, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = ne, this.awaitPos = y, this.awaitIdentPos = b, e = this.parseSubscriptAsyncArrow(t, n, x, s);
@@ -5530,7 +5530,7 @@ function kn(e) {
5530
5530
  for (this.expect(o.braceL); this.type !== o.braceR;) if (this.match(m.at)) c.push(this.parseDecorator());
5531
5531
  else {
5532
5532
  var l = this.parseClassElement(e.superClass !== null);
5533
- c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" && hn(i, l) && this.raiseRecoverable(l.key.start, "Identifier '#" + l.key.name + "' has already been declared"));
5533
+ c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" && gn(i, l) && this.raiseRecoverable(l.key.start, "Identifier '#" + l.key.name + "' has already been declared"));
5534
5534
  }
5535
5535
  return this.strict = r, this.next(), c.length && this.raise(this.start, "Decorators must be attached to a class element."), e.body = this.finishNode(a, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
5536
5536
  } finally {
@@ -5541,9 +5541,9 @@ function kn(e) {
5541
5541
  return e && (t.typeParameters = e), t;
5542
5542
  }, C.parseMethod = function(e, t, n, r, i) {
5543
5543
  var a = this.startNode(), s = this.yieldPos, c = this.awaitPos, l = this.awaitIdentPos;
5544
- if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | Tn(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
5544
+ if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | En(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
5545
5545
  var u = i.key;
5546
- this.raise(i.start, U.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
5546
+ this.raise(i.start, H.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
5547
5547
  }
5548
5548
  return this.finishNode(a, "FunctionExpression");
5549
5549
  }, t.parse = function(e, t) {
@@ -5580,7 +5580,7 @@ function kn(e) {
5580
5580
  ne(this.type) ? (c = !0, s = d, i = n ? this.parseIdent() : this.parseModuleExportName(), l = !1) : (i = f, l = !1);
5581
5581
  } else ne(this.type) ? (l = !1, i = n ? this.parseIdent() : this.parseModuleExportName()) : (c = !0, s = d);
5582
5582
  } else ne(this.type) && (c = !0, n ? (s = e.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(s)) : s = this.parseModuleExportName());
5583
- c && r && this.raise(u, n ? U.TypeModifierIsUsedInTypeImports : U.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
5583
+ c && r && this.raise(u, n ? H.TypeModifierIsUsedInTypeImports : H.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
5584
5584
  }, C.raiseCommonCheck = function(t, n, r) {
5585
5585
  return n === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(o.comma) && this.lookaheadCharCode() === 41 ? void this.next() : e.prototype.raise.call(this, t, n) : r ? e.prototype.raiseRecoverable.call(this, t, n) : e.prototype.raise.call(this, t, n);
5586
5586
  }, C.raiseRecoverable = function(e, t) {
@@ -5607,11 +5607,11 @@ function kn(e) {
5607
5607
  for (r.attributes = []; this.type !== o.slash && this.type !== m.jsxTagEnd;) r.attributes.push(this.jsx_parseAttribute());
5608
5608
  return r.selfClosing = this.eat(o.slash), this.expect(m.jsxTagEnd), this.finishNode(r, i ? "JSXOpeningElement" : "JSXOpeningFragment");
5609
5609
  }, C.enterScope = function(t) {
5610
- t === fn && this.importsStack.push([]), e.prototype.enterScope.call(this, t);
5610
+ t === pn && this.importsStack.push([]), e.prototype.enterScope.call(this, t);
5611
5611
  var n = e.prototype.currentScope.call(this);
5612
5612
  n.types = [], n.enums = [], n.constEnums = [], n.classes = [], n.exportOnlyBindings = [];
5613
5613
  }, C.exitScope = function() {
5614
- e.prototype.currentScope.call(this).flags === fn && this.importsStack.pop(), e.prototype.exitScope.call(this);
5614
+ e.prototype.currentScope.call(this).flags === pn && this.importsStack.pop(), e.prototype.exitScope.call(this);
5615
5615
  }, C.hasImport = function(e, t) {
5616
5616
  var n = this.importsStack.length;
5617
5617
  if (this.importsStack[n - 1].indexOf(e) > -1) return !0;
@@ -5649,13 +5649,13 @@ function kn(e) {
5649
5649
  get: function() {
5650
5650
  return i;
5651
5651
  }
5652
- }]) && rn(u.prototype, x), S && rn(u, S), Object.defineProperty(u, "prototype", { writable: !1 }), t;
5652
+ }]) && an(u.prototype, x), S && an(u, S), Object.defineProperty(u, "prototype", { writable: !1 }), t;
5653
5653
  }(t);
5654
5654
  };
5655
5655
  }
5656
5656
  //#endregion
5657
5657
  //#region src/utilities/index.ts
5658
- var An = [
5658
+ var jn = [
5659
5659
  {
5660
5660
  idPrefix: "dpuse-app",
5661
5661
  typeId: "app",
@@ -5740,9 +5740,9 @@ var An = [
5740
5740
  publishedTo: "github",
5741
5741
  uploadGroupName: void 0
5742
5742
  }
5743
- ], jn = r(i);
5744
- async function Mn(e, r) {
5745
- e !== void 0 && J(`${e} - clear(${r})`);
5743
+ ], Mn = r(i);
5744
+ async function Nn(e, r) {
5745
+ e !== void 0 && q(`${e} - clear(${r})`);
5746
5746
  let i;
5747
5747
  try {
5748
5748
  i = await t.readdir(r, { withFileTypes: !0 });
@@ -5762,16 +5762,16 @@ async function Mn(e, r) {
5762
5762
  }
5763
5763
  }));
5764
5764
  }
5765
- async function Nn(e, n) {
5765
+ async function Pn(e, n) {
5766
5766
  return t.readdir(e, n);
5767
5767
  }
5768
- async function Pn(e, n, r, i) {
5769
- e !== void 0 && J(`${e} - exec(${n} ${r.join(" ")})`);
5770
- let { stdout: a, stderr: o } = await jn(n, r);
5768
+ async function Fn(e, n, r, i) {
5769
+ e !== void 0 && q(`${e} - exec(${n} ${r.join(" ")})`);
5770
+ let { stdout: a, stderr: o } = await Mn(n, r);
5771
5771
  i === void 0 ? a.trim() && console.log(a.trim()) : await t.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
5772
5772
  }
5773
- async function W(e, t, n, r = !1, i = !1) {
5774
- return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
5773
+ async function U(e, t, n, r = !1, i = !1) {
5774
+ return q(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
5775
5775
  a(t, n, {
5776
5776
  shell: i,
5777
5777
  stdio: "inherit"
@@ -5780,8 +5780,8 @@ async function W(e, t, n, r = !1, i = !1) {
5780
5780
  });
5781
5781
  });
5782
5782
  }
5783
- async function Fn(e, r, i, o, s = !1) {
5784
- return J(`${e} - spawn(${r} ${i.join(" ")}) > ${o}`), new Promise((e, c) => {
5783
+ async function In(e, r, i, o, s = !1) {
5784
+ return q(`${e} - spawn(${r} ${i.join(" ")}) > ${o}`), new Promise((e, c) => {
5785
5785
  let l = a(r, i, {
5786
5786
  shell: !1,
5787
5787
  stdio: [
@@ -5803,13 +5803,13 @@ async function Fn(e, r, i, o, s = !1) {
5803
5803
  });
5804
5804
  });
5805
5805
  }
5806
- async function G(e) {
5806
+ async function W(e) {
5807
5807
  return JSON.parse(await t.readFile(e, "utf-8"));
5808
5808
  }
5809
- async function In(e) {
5809
+ async function Ln(e) {
5810
5810
  return await t.readFile(e, "utf-8");
5811
5811
  }
5812
- async function Ln(e) {
5812
+ async function Rn(e) {
5813
5813
  try {
5814
5814
  return await t.readFile(e, "utf-8");
5815
5815
  } catch (e) {
@@ -5817,31 +5817,31 @@ async function Ln(e) {
5817
5817
  throw e;
5818
5818
  }
5819
5819
  }
5820
- async function Rn(e, n) {
5820
+ async function zn(e, n) {
5821
5821
  await t.writeFile(e, JSON.stringify(n, void 0, 4), "utf-8");
5822
5822
  }
5823
- async function zn(e, t, n) {
5824
- await Bn("README.md", Kn(await In("./README.md"), e, t, n));
5823
+ async function Bn(e, t, n) {
5824
+ await Vn("README.md", qn(await Ln("./README.md"), e, t, n));
5825
5825
  }
5826
- async function Bn(e, n) {
5826
+ async function Vn(e, n) {
5827
5827
  await t.writeFile(e, n, "utf-8");
5828
5828
  }
5829
- function K(e) {
5829
+ function G(e) {
5830
5830
  let t = "────────────────────────────────────────────────────────────────────────────────";
5831
5831
  console.info(`\n${t}`), console.info(`▶️ ${e}`), console.info(`${t}`);
5832
5832
  }
5833
- function q(e) {
5833
+ function K(e) {
5834
5834
  console.info(`\n✅ ${e}\n`);
5835
5835
  }
5836
- function J(e) {
5836
+ function q(e) {
5837
5837
  console.info(`\n${e}\n`);
5838
5838
  }
5839
- function Vn(e) {
5840
- let t = An.find((t) => e.startsWith(t.idPrefix));
5839
+ function Hn(e) {
5840
+ let t = jn.find((t) => e.startsWith(t.idPrefix));
5841
5841
  if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
5842
5842
  return t;
5843
5843
  }
5844
- function Hn(e, t) {
5844
+ function Un(e, t) {
5845
5845
  let n = e.repository, r = typeof n == "string" ? n : n?.url;
5846
5846
  if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
5847
5847
  let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
@@ -5851,16 +5851,16 @@ function Hn(e, t) {
5851
5851
  repo: a[2]
5852
5852
  };
5853
5853
  }
5854
- async function Un(e) {
5854
+ async function Wn(e) {
5855
5855
  return await t.stat(e);
5856
5856
  }
5857
- function Wn(e) {
5858
- let t = k.extend(kn()).parse(e, {
5857
+ function Gn(e) {
5858
+ let t = k.extend(An()).parse(e, {
5859
5859
  ecmaVersion: "latest",
5860
5860
  sourceType: "module",
5861
5861
  locations: !0
5862
5862
  }), n = [];
5863
- return Gn(t, (e) => {
5863
+ return Kn(t, (e) => {
5864
5864
  if (e.type !== "MethodDefinition") return;
5865
5865
  let t = e, r = t.key;
5866
5866
  if (r.type !== "Identifier") return;
@@ -5868,7 +5868,7 @@ function Wn(e) {
5868
5868
  i && i !== "constructor" && t.accessibility !== "private" && n.push(i);
5869
5869
  }), n;
5870
5870
  }
5871
- function Gn(e, t) {
5871
+ function Kn(e, t) {
5872
5872
  t(e);
5873
5873
  for (let [n, r] of Object.entries(e)) {
5874
5874
  if ([
@@ -5881,12 +5881,12 @@ function Gn(e, t) {
5881
5881
  let e = r;
5882
5882
  if (Array.isArray(e)) for (let n of e) {
5883
5883
  let e = n;
5884
- e && typeof e.type == "string" && Gn(e, t);
5884
+ e && typeof e.type == "string" && Kn(e, t);
5885
5885
  }
5886
- else e && typeof e == "object" && typeof e.type == "string" && Gn(e, t);
5886
+ else e && typeof e == "object" && typeof e.type == "string" && Kn(e, t);
5887
5887
  }
5888
5888
  }
5889
- function Kn(e, t, n, r) {
5889
+ function qn(e, t, n, r) {
5890
5890
  let i = e.indexOf(n), a = e.indexOf(r);
5891
5891
  if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
5892
5892
  let o = t.trim();
@@ -5894,47 +5894,47 @@ function Kn(e, t, n, r) {
5894
5894
  }
5895
5895
  //#endregion
5896
5896
  //#region src/actions/auditDependencies.ts
5897
- async function qn() {
5897
+ async function Jn() {
5898
5898
  try {
5899
- K("Audit Dependencies"), await W("1️⃣ Check using 'npm audit'", "npm", ["audit"]), q("Dependencies audited");
5899
+ G("Audit Dependencies"), await U("1️⃣ Check using 'npm audit'", "npm", ["audit"]), K("Dependencies audited");
5900
5900
  } catch (e) {
5901
5901
  console.error("❌ Error auditing dependencies", e), process.exit(1);
5902
5902
  }
5903
5903
  }
5904
5904
  //#endregion
5905
5905
  //#region src/actions/checkConfigFiles.ts
5906
- async function Jn() {
5906
+ async function Yn() {
5907
5907
  try {
5908
- K("Check configuration files"), J("1️⃣ Check individual files");
5909
- let e = Vn((await G("config.json")).id), t = n.dirname(o(import.meta.url));
5910
- await Y(t, ".editorconfig"), await Yn(e, t), await Y(t, ".gitignore", [".gitignore_default"]), await Y(t, ".markdownlint.json"), await Y(t, ".ncurc.json"), await Xn(e, t), await Y(t, "LICENSE"), await Zn(e, t), await Qn(e, t), await $n(e, t), await er(e, t), q("Configuration files checked");
5908
+ G("Check configuration files"), q("1️⃣ Check individual files");
5909
+ let e = Hn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
5910
+ await J(t, ".editorconfig"), await Xn(e, t), await J(t, ".gitignore", [".gitignore_default"]), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), await Zn(e, t), await J(t, "LICENSE"), await Qn(e, t), await $n(e, t), await er(e, t), await tr(e, t), K("Configuration files checked");
5911
5911
  } catch (e) {
5912
5912
  console.error("❌ Error checking configuration files", e), process.exit(1);
5913
5913
  }
5914
5914
  }
5915
- async function Yn(e, t) {
5916
- ["development"].includes(e.typeId) ? console.info("ℹ️ File '.gitattributes' is UNIQUE to this project") : await Y(t, ".gitattributes", [".gitattributes_default"]);
5917
- }
5918
5915
  async function Xn(e, t) {
5916
+ ["development"].includes(e.typeId) ? console.info("ℹ️ File '.gitattributes' is UNIQUE to this project") : await J(t, ".gitattributes", [".gitattributes_default"]);
5917
+ }
5918
+ async function Zn(e, t) {
5919
5919
  ["github", "kb"].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is NOT required by this project") : [
5920
5920
  "app",
5921
5921
  "api",
5922
5922
  "development",
5923
5923
  "eslint"
5924
- ].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is UNIQUE to this project") : await Y(t, "eslint.config.js", ["eslint.config.default.js"]);
5924
+ ].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is UNIQUE to this project") : await J(t, "eslint.config.js", ["eslint.config.default.js"]);
5925
5925
  }
5926
- async function Zn(e, t) {
5926
+ async function Qn(e, t) {
5927
5927
  ["github"].includes(e.typeId) ? console.info("ℹ️ File 'tsconfig.json' is NOT required by this project") : [
5928
5928
  "connector",
5929
5929
  "engine",
5930
5930
  "shared",
5931
5931
  "tool"
5932
- ].includes(e.typeId) ? await Y(t, "tsconfig.json", ["tsconfig.default.json"]) : console.info("ℹ️ File 'tsconfig.json' is UNIQUE to this project");
5933
- }
5934
- async function Qn(e, t) {
5935
- ["github"].includes(e.typeId) ? console.info("ℹ️ File 'tsconfig.scripts.json' is NOT required by this project") : await Y(t, "tsconfig.scripts.json");
5932
+ ].includes(e.typeId) ? await J(t, "tsconfig.json", ["tsconfig.default.json"]) : console.info("ℹ️ File 'tsconfig.json' is UNIQUE to this project");
5936
5933
  }
5937
5934
  async function $n(e, t) {
5935
+ ["github"].includes(e.typeId) ? console.info("ℹ️ File 'tsconfig.scripts.json' is NOT required by this project") : await J(t, "tsconfig.scripts.json");
5936
+ }
5937
+ async function er(e, t) {
5938
5938
  if ([
5939
5939
  "eslint",
5940
5940
  "github",
@@ -5949,27 +5949,27 @@ async function $n(e, t) {
5949
5949
  ].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project");
5950
5950
  else {
5951
5951
  let n;
5952
- n = e.typeId === "connector" ? ["vite.config.default.ts", "vite.config.wasm.ts"] : e.typeId === "tool" ? ["vite.config.tool.ts"] : ["vite.config.default.ts"], await Y(t, "vite.config.ts", n);
5952
+ n = e.typeId === "connector" ? ["vite.config.default.ts", "vite.config.wasm.ts"] : e.typeId === "tool" ? ["vite.config.tool.ts"] : ["vite.config.default.ts"], await J(t, "vite.config.ts", n);
5953
5953
  }
5954
5954
  }
5955
- async function er(e, t) {
5955
+ async function tr(e, t) {
5956
5956
  [
5957
5957
  "app",
5958
5958
  "api",
5959
5959
  "eslint",
5960
5960
  "github",
5961
5961
  "kb"
5962
- ].includes(e.typeId) ? console.info("ℹ️ File 'vitest.config.ts' is NOT required by this project") : await Y(t, "vitest.config.ts");
5962
+ ].includes(e.typeId) ? console.info("ℹ️ File 'vitest.config.ts' is NOT required by this project") : await J(t, "vitest.config.ts");
5963
5963
  }
5964
- async function Y(e, t, r = []) {
5964
+ async function J(e, t, r = []) {
5965
5965
  let i = n.resolve(process.cwd(), t), a = r.length > 0 ? r : [t], o;
5966
5966
  try {
5967
- o = await In(i);
5967
+ o = await Ln(i);
5968
5968
  } catch (e) {
5969
5969
  if (e.code !== "ENOENT") throw e;
5970
5970
  }
5971
5971
  for (let r of a) {
5972
- let i = await In(n.resolve(e, `../${r}`));
5972
+ let i = await Ln(n.resolve(e, `../${r}`));
5973
5973
  if (o === i) {
5974
5974
  console.info(`ℹ️ File '${t.split("_", 1)[0] ?? t}' is the same as '${r}'`);
5975
5975
  return;
@@ -5979,12 +5979,12 @@ async function Y(e, t, r = []) {
5979
5979
  }
5980
5980
  //#endregion
5981
5981
  //#region src/actions/checkDependencies.ts
5982
- async function tr() {
5982
+ async function nr() {
5983
5983
  try {
5984
- K("Check Dependencies"), await W("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), J("2️⃣ Check using 'npm-check-updates'");
5984
+ G("Check Dependencies"), await U("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), q("2️⃣ Check using 'npm-check-updates'");
5985
5985
  let e = {};
5986
5986
  try {
5987
- e = await G(n.resolve(process.cwd(), ".ncurc.json"));
5987
+ e = await W(n.resolve(process.cwd(), ".ncurc.json"));
5988
5988
  } catch (e) {
5989
5989
  if (e.code !== "ENOENT") throw e;
5990
5990
  }
@@ -5994,104 +5994,104 @@ async function tr() {
5994
5994
  dep: "dev,prod,peer,optional",
5995
5995
  install: "never",
5996
5996
  ...e
5997
- }), await W("3️⃣ Install updated dependencies", "npm", [
5997
+ }), await U("3️⃣ Install updated dependencies", "npm", [
5998
5998
  "install",
5999
5999
  "--prefer-online",
6000
6000
  "--no-strict-allow-scripts"
6001
6001
  ]);
6002
- let t = await nr();
6003
- t.length > 0 ? await W("4️⃣ Move install-script pins to installed versions", "npm", [
6002
+ let t = await rr();
6003
+ t.length > 0 ? await U("4️⃣ Move install-script pins to installed versions", "npm", [
6004
6004
  "install-scripts",
6005
6005
  "approve",
6006
6006
  ...t
6007
- ]) : J("4️⃣ No pinned install-script approvals to move"), process.platform === "darwin" ? await W("5️⃣ Remove unused install-script entries", "npm", ["install-scripts", "prune"]) : J("5️⃣ Skipped removing unused install-script entries (macOS only)"), t.length > 0 && await W("6️⃣ Run install scripts skipped in step 3", "npm", [
6007
+ ]) : q("4️⃣ No pinned install-script approvals to move"), process.platform === "darwin" ? await U("5️⃣ Remove unused install-script entries", "npm", ["install-scripts", "prune"]) : q("5️⃣ Skipped removing unused install-script entries (macOS only)"), t.length > 0 && await U("6️⃣ Run install scripts skipped in step 3", "npm", [
6008
6008
  "rebuild",
6009
6009
  ...t,
6010
6010
  "--no-strict-allow-scripts"
6011
- ]), await W("7️⃣ Confirm every install script is reviewed", "npm", ["install", "--strict-allow-scripts"]), q("Dependencies checked");
6011
+ ]), await U("7️⃣ Confirm every install script is reviewed", "npm", ["install", "--strict-allow-scripts"]), K("Dependencies checked");
6012
6012
  } catch (e) {
6013
6013
  console.error("❌ Error checking dependencies", e), process.exit(1);
6014
6014
  }
6015
6015
  }
6016
- async function nr() {
6017
- let { allowScripts: e = {} } = await G(n.resolve(process.cwd(), "package.json")), t = Object.entries(e).filter(([e, t]) => t && e.lastIndexOf("@") > 0).map(([e]) => e.slice(0, e.lastIndexOf("@")));
6016
+ async function rr() {
6017
+ let { allowScripts: e = {} } = await W(n.resolve(process.cwd(), "package.json")), t = Object.entries(e).filter(([e, t]) => t && e.lastIndexOf("@") > 0).map(([e]) => e.slice(0, e.lastIndexOf("@")));
6018
6018
  return [...new Set(t)];
6019
6019
  }
6020
6020
  //#endregion
6021
6021
  //#region src/actions/documentBundleSizes.ts
6022
- var rr = "<!-- BUNDLE_START -->", ir = "<!-- BUNDLE_END -->", ar = "&nbsp;&nbsp;&nbsp;&nbsp;", or = 20, sr = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.\n\n_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._", cr = "(bundler output, whitespace & JSON)", lr = `${cr} = bytes Sonda can't trace to a source file: whitespace (indentation and line breaks), code the bundler generates (region comments, the combined import/export lines, its small runtime helper and wrappers), and imported JSON such as \`config.json\`, which the bundler doesn't map. The JSON and the generated code are real bytes that ship; the whitespace mostly disappears once compressed.`;
6023
- async function ur(e) {
6022
+ var ir = "<!-- BUNDLE_START -->", ar = "<!-- BUNDLE_END -->", or = "&nbsp;&nbsp;&nbsp;&nbsp;", sr = 20, cr = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.\n\n_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._", lr = "(bundler output, whitespace & JSON)", ur = `${lr} = bytes Sonda can't trace to a source file: whitespace (indentation and line breaks), code the bundler generates (region comments, the combined import/export lines, its small runtime helper and wrappers), and imported JSON such as \`config.json\`, which the bundler doesn't map. The JSON and the generated code are real bytes that ship; the whitespace mostly disappears once compressed.`;
6023
+ async function dr(e) {
6024
6024
  try {
6025
- K("Document Bundle Sizes"), J("1️⃣ Read bundle analysis report");
6026
- let t = await G("./bundle-analysis-reports/sonda/index.json");
6027
- J("2️⃣ Insert table into 'README.md'"), await zn(`## Bundle Analysis\n\n${sr}\n\n${dr(t, e?.moduleLevel ?? !1)}\n\n${lr}`, rr, ir), q("Bundle sizes documented");
6025
+ G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
6026
+ let t = await W("./bundle-analysis-reports/sonda/index.json");
6027
+ q("2️⃣ Insert table into 'README.md'"), await Bn(`## Bundle Analysis\n\n${cr}\n\n${fr(t, e?.moduleLevel ?? !1)}\n\n${ur}`, ir, ar), K("Bundle sizes documented");
6028
6028
  } catch (e) {
6029
6029
  console.error("❌ Error documenting bundle sizes", e), process.exit(1);
6030
6030
  }
6031
6031
  }
6032
- function dr(e, t) {
6033
- let n = vr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, Sr(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
6032
+ function fr(e, t) {
6033
+ let n = yr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, Cr(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
6034
6034
  for (let [e, o] of i) {
6035
- let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? fr(e, o, gr(i), r, t) : pr(e, o, i, r, t);
6035
+ let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? pr(e, o, _r(i), r, t) : mr(e, o, i, r, t);
6036
6036
  a.push(...s);
6037
6037
  }
6038
6038
  return a.join("\n");
6039
6039
  }
6040
- function fr(e, t, n, r, i) {
6040
+ function pr(e, t, n, r, i) {
6041
6041
  let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.uncompressed / r * 100 : 0;
6042
- if (s.size === 1) return [`| ${e} → ${hr(a, _r(s))} | ${Cr(t)} · ${wr(c)} |`];
6043
- let l = [`| ${e} → ${a} | ${Cr(t)} · ${wr(c)} |`];
6044
- return i || l.push(...mr(s, ar, r)), l;
6042
+ if (s.size === 1) return [`| ${e} → ${gr(a, vr(s))} | ${wr(t)} · ${Tr(c)} |`];
6043
+ let l = [`| ${e} → ${a} | ${wr(t)} · ${Tr(c)} |`];
6044
+ return i || l.push(...hr(s, or, r)), l;
6045
6045
  }
6046
- function pr(e, t, n, r, i) {
6047
- let a = [`| ${e} | ${Cr(t)} |`];
6046
+ function mr(e, t, n, r, i) {
6047
+ let a = [`| ${e} | ${wr(t)} |`];
6048
6048
  for (let [e, { sizes: t, files: o }] of n) {
6049
6049
  let n = r > 0 ? t.uncompressed / r * 100 : 0;
6050
6050
  if (o.size === 1) {
6051
- let t = _r(o);
6052
- a.push(`| ${ar}${hr(e, t)} | ${wr(n)} |`);
6051
+ let t = vr(o);
6052
+ a.push(`| ${or}${gr(e, t)} | ${Tr(n)} |`);
6053
6053
  continue;
6054
6054
  }
6055
- a.push(`| ${ar}${e} | ${wr(n)} |`), i || a.push(...mr(o, `${ar}${ar}`, r));
6055
+ a.push(`| ${or}${e} | ${Tr(n)} |`), i || a.push(...hr(o, `${or}${or}`, r));
6056
6056
  }
6057
6057
  return a;
6058
6058
  }
6059
- function mr(e, t, n) {
6060
- return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${wr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6059
+ function hr(e, t, n) {
6060
+ return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${Tr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6061
6061
  }
6062
- function hr(e, t) {
6062
+ function gr(e, t) {
6063
6063
  return t === "" ? e : `${e} → ${t}`;
6064
6064
  }
6065
- function gr(e) {
6065
+ function _r(e) {
6066
6066
  let [t] = e;
6067
6067
  if (t === void 0) throw Error("Expected exactly one entry");
6068
6068
  return t;
6069
6069
  }
6070
- function _r(e) {
6070
+ function vr(e) {
6071
6071
  let [t] = e.keys();
6072
6072
  if (t === void 0) throw Error("Expected exactly one file");
6073
6073
  return t;
6074
6074
  }
6075
- function vr(e) {
6076
- let t = yr(e.dependencies), n = /* @__PURE__ */ new Map();
6075
+ function yr(e) {
6076
+ let t = br(e.dependencies), n = /* @__PURE__ */ new Map();
6077
6077
  for (let r of e.resources) {
6078
6078
  if (r.kind !== "chunk" || !r.parent) continue;
6079
- let { group: e, file: i } = br(r.name, t), a = Sr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6079
+ let { group: e, file: i } = xr(r.name, t), a = Cr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6080
6080
  n.set(r.parent, o);
6081
6081
  let s = o.get(e) ?? {
6082
- sizes: Tr(),
6082
+ sizes: Er(),
6083
6083
  files: /* @__PURE__ */ new Map()
6084
6084
  };
6085
- o.set(e, s), Er(s.sizes, a);
6086
- let c = s.files.get(i) ?? Tr();
6087
- s.files.set(i, c), Er(c, a);
6085
+ o.set(e, s), Dr(s.sizes, a);
6086
+ let c = s.files.get(i) ?? Er();
6087
+ s.files.set(i, c), Dr(c, a);
6088
6088
  }
6089
6089
  return n;
6090
6090
  }
6091
- function yr(e) {
6091
+ function br(e) {
6092
6092
  return e.flatMap((e) => e.paths.map((t) => [t, e.name])).toSorted((e, t) => t[0].length - e[0].length);
6093
6093
  }
6094
- function br(e, t) {
6094
+ function xr(e, t) {
6095
6095
  let n = t.find(([t]) => e === t || e.startsWith(`${t}/`));
6096
6096
  if (n) {
6097
6097
  let [t, r] = n;
@@ -6101,56 +6101,56 @@ function br(e, t) {
6101
6101
  };
6102
6102
  }
6103
6103
  return e === "[unassigned]" ? {
6104
- group: cr,
6104
+ group: lr,
6105
6105
  file: ""
6106
6106
  } : e.startsWith("\0") ? {
6107
6107
  group: "(runtime)",
6108
6108
  file: e.slice(1)
6109
6109
  } : {
6110
6110
  group: e.startsWith("rust/") || e.includes("vite-plugin-wasm") ? "wasm" : "src",
6111
- file: xr(e)
6111
+ file: Sr(e)
6112
6112
  };
6113
6113
  }
6114
- function xr(e) {
6114
+ function Sr(e) {
6115
6115
  return e.split("/").at(-1) ?? e;
6116
6116
  }
6117
- function Sr(e) {
6117
+ function Cr(e) {
6118
6118
  return {
6119
6119
  uncompressed: e.uncompressed,
6120
6120
  gzip: e.gzip ?? 0
6121
6121
  };
6122
6122
  }
6123
- function Cr(e) {
6124
- return `${Dr(e.uncompressed)} · gzip ${Dr(e.gzip)}`;
6125
- }
6126
6123
  function wr(e) {
6127
- let t = Math.round(e / 100 * or);
6128
- return `\`${"█".repeat(t)}${"░".repeat(or - t)}\` ${e.toFixed(1)}%`;
6124
+ return `${Or(e.uncompressed)} · gzip ${Or(e.gzip)}`;
6129
6125
  }
6130
- function Tr() {
6126
+ function Tr(e) {
6127
+ let t = Math.round(e / 100 * sr);
6128
+ return `\`${"█".repeat(t)}${"░".repeat(sr - t)}\` ${e.toFixed(1)}%`;
6129
+ }
6130
+ function Er() {
6131
6131
  return {
6132
6132
  uncompressed: 0,
6133
6133
  gzip: 0
6134
6134
  };
6135
6135
  }
6136
- function Er(e, t) {
6136
+ function Dr(e, t) {
6137
6137
  e.uncompressed += t.uncompressed, e.gzip += t.gzip;
6138
6138
  }
6139
- function Dr(e) {
6139
+ function Or(e) {
6140
6140
  return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
6141
6141
  }
6142
6142
  //#endregion
6143
6143
  //#region src/actions/documentDependencies.ts
6144
- var Or = "<!-- DEPENDENCY_LICENSES_START -->", kr = "<!-- DEPENDENCY_LICENSES_END -->", Ar = "## Dependency Licenses", jr = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.";
6145
- async function Mr(e = "MIT") {
6144
+ var kr = "<!-- DEPENDENCY_LICENSES_START -->", Ar = "<!-- DEPENDENCY_LICENSES_END -->", jr = "## Dependency Licenses", Mr = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.";
6145
+ async function Nr(e = "MIT") {
6146
6146
  try {
6147
- K("Document Dependencies");
6148
- let t = await G("package.json");
6147
+ G("Document Dependencies");
6148
+ let t = await W("package.json");
6149
6149
  if (t.name === "@dpuse/dpuse-development" || t.name === "@dpuse/eslint-config-dpuse") {
6150
- await Nr(t.name), q("Dependencies documented");
6150
+ await Pr(t.name), K("Dependencies documented");
6151
6151
  return;
6152
6152
  }
6153
- await Mn("1️⃣ Clear downloaded licenses", "licenses/downloads"), J("2️⃣ Identify production licenses"), await new Promise((n, r) => {
6153
+ await Nn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
6154
6154
  let i = {
6155
6155
  start: process.cwd(),
6156
6156
  production: !0,
@@ -6165,41 +6165,41 @@ async function Mr(e = "MIT") {
6165
6165
  c(i, (e) => {
6166
6166
  e == null ? n() : r(e);
6167
6167
  });
6168
- }), await Fn("3️⃣ Identify transitive dependencies", "npm", [
6168
+ }), await In("3️⃣ Identify transitive dependencies", "npm", [
6169
6169
  "ls",
6170
6170
  "--all",
6171
6171
  "--json",
6172
6172
  "--omit=dev"
6173
- ], "licenses/licenseTree.json"), await Pr("4️⃣ ", e), q("Dependencies documented");
6173
+ ], "licenses/licenseTree.json"), await Fr("4️⃣ ", e), K("Dependencies documented");
6174
6174
  } catch (e) {
6175
6175
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6176
6176
  }
6177
6177
  }
6178
- async function Nr(e) {
6179
- J(`1️⃣ Skip: ${e} is a development-only tool and is never part of a production release.`), await zn(`${Ar}\n\n${`> [!WARNING]\n> Dependency licenses are not documented here: ${e} is a development-only tool and is never part of a production release.`}`, Or, kr);
6178
+ async function Pr(e) {
6179
+ q(`1️⃣ Skip: ${e} is a development-only tool and is never part of a production release.`), await Bn(`${jr}\n\n${`> [!WARNING]\n> Dependency licenses are not documented here: ${e} is a development-only tool and is never part of a production release.`}`, kr, Ar);
6180
6180
  }
6181
- async function Pr(e, t) {
6182
- J(`${e} Insert licenses into 'README.md'`);
6183
- let [n, r] = await Promise.all([G("licenses/licenses.json"), G("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6184
- for (let [e, t] of Object.entries(n)) i.set(e, Lr(e, t));
6181
+ async function Fr(e, t) {
6182
+ q(`${e} Insert licenses into 'README.md'`);
6183
+ let [n, r] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6184
+ for (let [e, t] of Object.entries(n)) i.set(e, Rr(e, t));
6185
6185
  await Promise.all(i.values().map(async (e) => {
6186
- let t = await Rr(e.name, e.installedVersion);
6186
+ let t = await zr(e.name, e.installedVersion);
6187
6187
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6188
6188
  }));
6189
- let a = `${Fr(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6190
- for (let e of i.values()) a += zr(e);
6189
+ let a = `${Ir(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6190
+ for (let e of i.values()) a += Br(e);
6191
6191
  let o = [];
6192
- r.dependencies != null && Br(r.dependencies, i, o, 0);
6193
- let s = `${jr}\n\n${o.join("\n")}`;
6194
- await zn(`${Ar}\n\n${a.trimEnd()}\n\n### Dependency Tree\n\n${s}`, Or, kr);
6195
- }
6196
- function Fr(e) {
6197
- return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Ir(e.split(";"))} — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.`;
6192
+ r.dependencies != null && Vr(r.dependencies, i, o, 0);
6193
+ let s = `${Mr}\n\n${o.join("\n")}`;
6194
+ await Bn(`${jr}\n\n${a.trimEnd()}\n\n### Dependency Tree\n\n${s}`, kr, Ar);
6198
6195
  }
6199
6196
  function Ir(e) {
6197
+ return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Lr(e.split(";"))} — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.`;
6198
+ }
6199
+ function Lr(e) {
6200
6200
  return e.length === 1 ? e[0] ?? "" : e.length === 2 ? `${String(e[0])} or ${String(e[1])}` : `${e.slice(0, -1).join(", ")}, or ${String(e.at(-1))}`;
6201
6201
  }
6202
- function Lr(e, t) {
6202
+ function Rr(e, t) {
6203
6203
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6204
6204
  return {
6205
6205
  name: r,
@@ -6213,7 +6213,7 @@ function Lr(e, t) {
6213
6213
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6214
6214
  };
6215
6215
  }
6216
- async function Rr(e, t) {
6216
+ async function zr(e, t) {
6217
6217
  try {
6218
6218
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6219
6219
  if (n.ok) {
@@ -6231,25 +6231,25 @@ async function Rr(e, t) {
6231
6231
  publishedDate: ""
6232
6232
  };
6233
6233
  }
6234
- function zr(e) {
6234
+ function Br(e) {
6235
6235
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6236
6236
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6237
6237
  }
6238
- function Br(e, t, n, r) {
6238
+ function Vr(e, t, n, r) {
6239
6239
  let i = " ".repeat(r);
6240
6240
  for (let [a, o] of Object.entries(e)) {
6241
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Vr(s);
6242
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Br(o.dependencies, t, n, r + 1);
6241
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Hr(s);
6242
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Vr(o.dependencies, t, n, r + 1);
6243
6243
  }
6244
6244
  }
6245
- function Vr(e) {
6245
+ function Hr(e) {
6246
6246
  if (e == null) return "";
6247
- let t = e.publishedDate ? Hr(e.publishedDate.split("T", 1)[0]) : "";
6247
+ let t = e.publishedDate ? Ur(e.publishedDate.split("T", 1)[0]) : "";
6248
6248
  if (e.latestVersion === "" || e.latestVersion === e.installedVersion) return t === "" ? "" : ` — ${t}`;
6249
- let n = e.latestPublishedDate ? Hr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6249
+ let n = e.latestPublishedDate ? Ur(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6250
6250
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6251
6251
  }
6252
- function Hr(e) {
6252
+ function Ur(e) {
6253
6253
  if (e == null || e === "") return "n/a";
6254
6254
  let t = e.split("T", 1)[0];
6255
6255
  if (t == null || t === "") return "n/a";
@@ -6258,43 +6258,53 @@ function Hr(e) {
6258
6258
  }
6259
6259
  //#endregion
6260
6260
  //#region src/actions/documentGovernance.ts
6261
- var Ur = "<!-- GOVERNANCE_START -->", Wr = "<!-- GOVERNANCE_END -->", Gr = "code-health-reports/fallow", Kr = {
6261
+ var Wr = "<!-- GOVERNANCE_START -->", Gr = "<!-- GOVERNANCE_END -->", Kr = {
6262
+ "Branch-Protection": 3,
6263
+ "Code-Review": 0,
6264
+ Contributors: 0
6265
+ }, qr = /* @__PURE__ */ new Set(["CII-Best-Practices"]), Jr = {
6266
+ actions: "GitHub Actions",
6267
+ "javascript-typescript": "JavaScript/TypeScript",
6268
+ rust: "Rust"
6269
+ }, Yr = "code-health-reports/fallow", Xr = {
6262
6270
  A: "brightgreen",
6263
6271
  B: "green",
6264
6272
  C: "yellow",
6265
6273
  D: "orange",
6266
6274
  F: "red"
6267
- }, qr = `${Gr}/health.json`, Jr = `${Gr}/index.md`;
6268
- async function Yr() {
6275
+ }, Zr = `${Yr}/health.json`, Qr = `${Yr}/index.md`, $r = r(i);
6276
+ async function ei() {
6269
6277
  try {
6270
- K("Document Governance");
6271
- let [e, t] = await Promise.all([G("package.json"), G("config.json")]), n = await Xr(e), { owner: r, repo: i } = Hn(e, "document governance");
6272
- J("3️⃣ Look up OpenSSF Best Practices badge");
6273
- let a = await Qr(`https://github.com/${r}/${i}`);
6274
- J("4️⃣ Insert governance content into 'README.md'"), await zn(ti(r, i, $r(e), ei(t.firstCreatedAt), n, a), Ur, Wr), q("Governance documented");
6278
+ G("Document Governance");
6279
+ let [e, t] = await Promise.all([W("package.json"), W("config.json")]), n = await ti(e), { owner: r, repo: i } = Un(e, "document governance");
6280
+ q("3️⃣ Read security checks and settings");
6281
+ let a = await ri(r, i, e);
6282
+ q("4️⃣ Look up OpenSSF Best Practices badge and Scorecard results");
6283
+ let [o, s] = await Promise.all([ai(`https://github.com/${r}/${i}`), oi(`github.com/${r}/${i}`)]);
6284
+ q("5️⃣ Insert governance content into 'README.md'"), await Bn(di(r, i, ci(e), li(t.firstCreatedAt), n, o, a, s), Wr, Gr), K("Governance documented");
6275
6285
  } catch (e) {
6276
6286
  console.error("❌ Error documenting governance", e), process.exit(1);
6277
6287
  }
6278
6288
  }
6279
- async function Xr(e) {
6289
+ async function ti(e) {
6280
6290
  if (e.devDependencies?.fallow == null) {
6281
- J("1️⃣ Code health NOT measured, as Fallow is not installed"), J("2️⃣ Code health report NOT required");
6291
+ q("1️⃣ Code health NOT measured, as Fallow is not installed"), q("2️⃣ Code health report NOT required");
6282
6292
  return;
6283
6293
  }
6284
- return await Fn("1️⃣ Measure code health", "fallow", [
6294
+ return await In("1️⃣ Measure code health", "fallow", [
6285
6295
  "health",
6286
6296
  "--report-only",
6287
6297
  "--format",
6288
6298
  "json"
6289
- ], qr), await Fn("2️⃣ Write code health report", "fallow", ["--format", "markdown"], Jr, !0), await G(qr);
6299
+ ], Zr), await In("2️⃣ Write code health report", "fallow", ["--format", "markdown"], Qr, !0), await W(Zr);
6290
6300
  }
6291
- function Zr(e) {
6301
+ function ni(e) {
6292
6302
  let { score: t, grade: n } = e.health_score, { functions_above_threshold: r, functions_analyzed: i, average_maintainability: a } = e.summary, o = e.vital_signs;
6293
6303
  return `### Code Health
6294
6304
 
6295
- [![Fallow code health](${`https://img.shields.io/badge/fallow-${encodeURIComponent(`${n} (${String(Math.round(t))})`).replaceAll("-", "--").replaceAll("(", "%28").replaceAll(")", "%29")}-${Kr[n] ?? "lightgrey"}`})](./${Jr})
6305
+ [![Fallow code health](${`https://img.shields.io/badge/fallow-${encodeURIComponent(`${n} (${String(Math.round(t))})`).replaceAll("-", "--").replaceAll("(", "%28").replaceAll(")", "%29")}-${Xr[n] ?? "lightgrey"}`})](./${Qr})
6296
6306
 
6297
- [Fallow](https://github.com/fallow-rs/fallow) analyses the TypeScript source on each release for unused code, duplication, complexity, and dependency hygiene. See the [full Fallow report](./${Jr}) for every finding.
6307
+ [Fallow](https://github.com/fallow-rs/fallow) analyses the TypeScript source on each release for unused code, duplication, complexity, and dependency hygiene. See the [full Fallow report](./${Qr}) for every finding.
6298
6308
 
6299
6309
  |Measure|Value|
6300
6310
  |:-|-:|
@@ -6310,92 +6320,195 @@ function Zr(e) {
6310
6320
 
6311
6321
  `;
6312
6322
  }
6313
- async function Qr(e) {
6323
+ async function ri(e, t, n) {
6324
+ let [r, i, a] = await Promise.all([
6325
+ Rn(".github/workflows/ci.yml"),
6326
+ Rn(".github/workflows/codeql.yml"),
6327
+ Rn(".github/dependabot.yml")
6328
+ ]), [o, s, c, l] = await Promise.all([
6329
+ ii(`repos/${e}/${t}`),
6330
+ ii(`repos/${e}/${t}/private-vulnerability-reporting`),
6331
+ ii(`repos/${e}/${t}/vulnerability-alerts`),
6332
+ ii(`repos/${e}/${t}/commits/main/check-runs?per_page=100`)
6333
+ ]), u = o === void 0 ? void 0 : JSON.parse(o).security_and_analysis, d = (e) => u?.[e] === void 0 ? void 0 : u[e].status === "enabled", f = new Set((l === void 0 ? [] : JSON.parse(l).check_runs).map((e) => e.app?.slug)), p = a?.match(/package-ecosystem:/g)?.length ?? 0, m = a?.match(/open-pull-requests-limit: 0\b/g)?.length ?? 0;
6334
+ return {
6335
+ codeQLLanguages: (i ?? "").matchAll(/- language: ([\w-]+)/g).map(([, e = ""]) => Jr[e] ?? e).toArray(),
6336
+ dependabotAlerts: c !== void 0,
6337
+ dependabotSecurityUpdates: d("dependabot_security_updates"),
6338
+ dependabotVersionUpdates: p > m,
6339
+ npmAuditInCI: /npm (?:run )?audit/.test(r ?? ""),
6340
+ npmAuditLevel: /npm audit --audit-level=(\w+)/.exec(r ?? "")?.[1],
6341
+ privateVulnerabilityReporting: s === void 0 ? void 0 : JSON.parse(s).enabled,
6342
+ propertyTests: n.devDependencies?.["fast-check"] != null,
6343
+ pushProtection: d("secret_scanning_push_protection"),
6344
+ secretScanning: d("secret_scanning"),
6345
+ socket: f.has("socket-security"),
6346
+ sonarCloud: f.has("sonarqubecloud"),
6347
+ testsInCI: r?.includes("npm test") ?? !1
6348
+ };
6349
+ }
6350
+ async function ii(e) {
6351
+ try {
6352
+ let { stdout: t } = await $r("gh", ["api", e]);
6353
+ return t;
6354
+ } catch (e) {
6355
+ if (String(e.stderr).includes("HTTP 404")) return;
6356
+ throw e;
6357
+ }
6358
+ }
6359
+ async function ai(e) {
6314
6360
  let t = await fetch(`https://www.bestpractices.dev/projects.json?url=${encodeURIComponent(e)}`);
6315
6361
  if (!t.ok) throw Error(`OpenSSF Best Practices lookup failed with status ${String(t.status)}.`);
6316
6362
  return (await t.json()).find((t) => t.repo_url === e)?.id;
6317
6363
  }
6318
- function $r(e) {
6364
+ async function oi(e) {
6365
+ let t = await fetch(`https://api.scorecard.dev/projects/${e}`);
6366
+ if (t.status !== 404) {
6367
+ if (!t.ok) throw Error(`OpenSSF Scorecard lookup failed with status ${String(t.status)}.`);
6368
+ return await t.json();
6369
+ }
6370
+ }
6371
+ function si(e) {
6372
+ return e.checks.every(({ name: e, score: t }) => t === -1 || t === 10 || qr.has(e) || Kr[e] !== void 0 && t >= Kr[e]);
6373
+ }
6374
+ function ci(e) {
6319
6375
  let t = e.author, n = typeof t == "string" ? t : t?.name;
6320
6376
  if (n == null || n === "") throw Error("package.json 'author' field is required to document governance.");
6321
6377
  let r = n.indexOf("<"), i = r === -1 ? -1 : n.indexOf(">", r);
6322
6378
  return (i === -1 ? n : n.slice(0, r).trimEnd() + n.slice(i + 1).trimStart()).trim();
6323
6379
  }
6324
- function ei(e) {
6380
+ function li(e) {
6325
6381
  let t = (/* @__PURE__ */ new Date()).getFullYear();
6326
6382
  if (e == null) return String(t);
6327
6383
  let n = new Date(e).getFullYear();
6328
6384
  return n === t ? String(t) : `${String(n)}-present`;
6329
6385
  }
6330
- function ti(e, t, n, r, i, a) {
6331
- let o = `https://github.com/${e}/${t}`, s = `github.com/${e}/${t}`, c = `https://www.bestpractices.dev/projects/${String(a)}`, l = a === void 0 ? "" : `[![OpenSSF Best Practices](${c}/badge)](${c})\n`;
6332
- return `## Security & Quality
6333
-
6334
- ### CodeQL
6335
-
6336
- [CodeQL](${o}/security/code-scanning) static analysis runs on every push to \`main\` and on a weekly schedule, scanning TypeScript, JavaScript, Rust, and GitHub Actions workflow files for security vulnerabilities and coding errors.
6337
-
6338
- ### SonarCloud
6339
-
6340
- [SonarCloud](https://sonarcloud.io/summary/new_code?id=${e}_${t}) performs continuous code quality and security analysis on every push, detecting bugs, code smells, and security vulnerabilities in the TypeScript source.
6341
-
6342
- ${i === void 0 ? "" : Zr(i)}### Vulnerability Scanning
6343
-
6344
- Two complementary tools continuously monitor dependencies for known vulnerabilities:
6386
+ function Y(e, t = "On") {
6387
+ return e === void 0 ? "❔ Unknown" : e ? `✅ ${t}` : "❌ Off";
6388
+ }
6389
+ function ui(e, t, n) {
6390
+ let r = `https://github.com/${e}/${t}`, i = Y(n.codeQLLanguages.length > 0, n.codeQLLanguages.join(", "));
6391
+ return `### Checks & Settings
6345
6392
 
6346
- - [npm audit](https://docs.npmjs.com/cli/v8/commands/npm-audit) runs on every push to \`main\` via the CI workflow, failing the build if any high or critical severity vulnerabilities are detected.
6347
- - [GitHub Dependabot](https://docs.github.com/en/code-security/dependabot) automatically raises pull requests to update vulnerable dependencies, drawing on the GitHub Advisory Database which combines NVD and npm-specific advisories.
6393
+ Read from the repository each time this README is generated, so the status is current as of the latest release.
6348
6394
 
6349
- ### Supply Chain Security
6395
+ |Check or setting|Status|What it does|
6396
+ |:-|:-|:-|
6397
+ ${[
6398
+ [
6399
+ `[CodeQL](${r}/security/code-scanning)`,
6400
+ i,
6401
+ "Static analysis for security vulnerabilities and coding errors, on every push and pull request to `main` and weekly."
6402
+ ],
6403
+ [
6404
+ `[SonarCloud](https://sonarcloud.io/summary/new_code?id=${e}_${t})`,
6405
+ Y(n.sonarCloud),
6406
+ "Code quality and security analysis on every push: bugs, code smells and vulnerabilities."
6407
+ ],
6408
+ [
6409
+ "Unit tests",
6410
+ Y(n.testsInCI),
6411
+ "Run in CI on every push to `main`."
6412
+ ],
6413
+ [
6414
+ "Property-based tests",
6415
+ Y(n.propertyTests, "fast-check"),
6416
+ "Fuzz testing: many random inputs per test to find edge cases, run with the unit tests."
6417
+ ],
6418
+ [
6419
+ "npm audit",
6420
+ Y(n.npmAuditInCI),
6421
+ n.npmAuditLevel === void 0 ? "Fails CI when any dependency has a known vulnerability." : `Fails CI when a dependency has a known vulnerability of ${n.npmAuditLevel} severity or above.`
6422
+ ],
6423
+ [
6424
+ "[Socket.dev](https://socket.dev)",
6425
+ Y(n.socket),
6426
+ "Flags supply chain risk in dependencies: malicious packages, typosquatting and suspicious behaviour that may not yet have a CVE."
6427
+ ],
6428
+ [
6429
+ "Dependabot alerts",
6430
+ Y(n.dependabotAlerts),
6431
+ "Alerts when a dependency has a known vulnerability, using the GitHub Advisory Database."
6432
+ ],
6433
+ [
6434
+ "Dependabot security updates",
6435
+ Y(n.dependabotSecurityUpdates),
6436
+ "Opens pull requests that update vulnerable dependencies."
6437
+ ],
6438
+ [
6439
+ "Dependabot version updates",
6440
+ Y(n.dependabotVersionUpdates),
6441
+ "Opens pull requests for new dependency versions."
6442
+ ],
6443
+ [
6444
+ "Secret scanning",
6445
+ Y(n.secretScanning),
6446
+ "Detects credentials, such as API keys and tokens, committed to the repository."
6447
+ ],
6448
+ [
6449
+ "Push protection",
6450
+ Y(n.pushProtection),
6451
+ "Blocks pushes that contain credentials."
6452
+ ],
6453
+ [
6454
+ "Private vulnerability reporting",
6455
+ Y(n.privateVulnerabilityReporting),
6456
+ "Lets anyone report a vulnerability privately. See [Reporting Vulnerabilities](#reporting-vulnerabilities)."
6457
+ ]
6458
+ ].map((e) => `|${e.join("|")}|`).join("\n")}
6350
6459
 
6351
- [Socket.dev](https://socket.dev) monitors all dependencies for supply chain risk — detecting malicious packages, dependency confusion, typosquatting, and suspicious behaviour that may not yet have a CVE.
6460
+ `;
6461
+ }
6462
+ function di(e, t, n, r, i, a, o, s) {
6463
+ let c = `https://github.com/${e}/${t}`, l = `github.com/${e}/${t}`, u = `https://www.bestpractices.dev/projects/${String(a)}`, d = s !== void 0 && si(s) ? " Apart from the Best Practices badge above, the remaining Scorecard gaps need multi-person review or a pull-request workflow, which this solo-maintained project doesn't use." : "", f = a === void 0 ? "" : `[![OpenSSF Best Practices](${u}/badge)](${u})\n`, p = o.privateVulnerabilityReporting === !0 ? `Use [GitHub private vulnerability reporting](${c}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.` : "See [SECURITY.md](./SECURITY.md) for how to report one privately, the full disclosure policy, and expected response times.";
6464
+ return `## Security & Quality
6352
6465
 
6353
- ### Reporting Vulnerabilities
6466
+ ${ui(e, t, o)}${i === void 0 ? "" : ni(i)}### Reporting Vulnerabilities
6354
6467
 
6355
- Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](${o}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
6468
+ Please do not open public GitHub issues for security vulnerabilities. ${p}
6356
6469
 
6357
6470
  ### OpenSSF 🚧
6358
6471
 
6359
- ${l}[![OpenSSF Scorecard](https://api.scorecard.dev/projects/${s}/badge)](https://scorecard.dev/viewer/?uri=${s})
6472
+ ${f}[![OpenSSF Scorecard](https://api.scorecard.dev/projects/${l}/badge)](https://scorecard.dev/viewer/?uri=${l})
6360
6473
 
6361
- This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=${s}) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
6474
+ This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=${l}) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.${d}
6362
6475
 
6363
6476
  ## Contributing
6364
6477
 
6365
6478
  This repository is maintained solely by its owner and does not, at present, accept external contributions into the canonical repo. Its source is published openly under the MIT License — every DPUse project is fully open source except DPUse Engine, which remains closed and proprietary.
6366
6479
 
6367
- For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnerabilities). For bugs, inconsistencies, or other feedback, [open a GitHub issue](${o}/issues) — feedback is read, but responses and fixes are at the maintainer's discretion.
6480
+ For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnerabilities). For bugs, inconsistencies, or other feedback, [open a GitHub issue](${c}/issues) — feedback is read, but responses and fixes are at the maintainer's discretion.
6368
6481
 
6369
6482
  ## License
6370
6483
 
6371
6484
  This project is licensed under the MIT License, permitting free use, modification, and distribution.
6372
6485
 
6373
- [MIT](./LICENSE) © ${r}-present ${n}`;
6486
+ [MIT](./LICENSE) © ${r} ${n}`;
6374
6487
  }
6375
6488
  //#endregion
6376
6489
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DT3mO5rS.js
6377
- var ni = {
6490
+ var fi = {
6378
6491
  lang: void 0,
6379
6492
  message: void 0,
6380
6493
  abortEarly: void 0,
6381
6494
  abortPipeEarly: void 0
6382
6495
  };
6383
6496
  /* @__NO_SIDE_EFFECTS__ */
6384
- function ri(e) {
6497
+ function pi(e) {
6385
6498
  return e ? {
6386
6499
  lang: e?.lang ?? void 0,
6387
6500
  message: e?.message,
6388
6501
  abortEarly: e?.abortEarly ?? void 0,
6389
6502
  abortPipeEarly: e?.abortPipeEarly ?? void 0
6390
- } : ni;
6503
+ } : fi;
6391
6504
  }
6392
6505
  /* @__NO_SIDE_EFFECTS__ */
6393
- function ii(e) {
6506
+ function mi(e) {
6394
6507
  let t = typeof e;
6395
6508
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6396
6509
  }
6397
6510
  function X(e, t, n, r, i) {
6398
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ ii(a), c = {
6511
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ mi(a), c = {
6399
6512
  kind: e.kind,
6400
6513
  type: e.type,
6401
6514
  input: a,
@@ -6412,39 +6525,39 @@ function X(e, t, n, r, i) {
6412
6525
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6413
6526
  }
6414
6527
  /* @__NO_SIDE_EFFECTS__ */
6415
- function ai(e, t) {
6528
+ function hi(e, t) {
6416
6529
  return e === t || Number.isNaN(e) && Number.isNaN(t);
6417
6530
  }
6418
6531
  /* @__NO_SIDE_EFFECTS__ */
6419
- function oi(e, t) {
6532
+ function gi(e, t) {
6420
6533
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6421
6534
  }
6422
6535
  /* @__NO_SIDE_EFFECTS__ */
6423
- function si(e, t) {
6536
+ function _i(e, t) {
6424
6537
  let n = [...new Set(e)];
6425
6538
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6426
6539
  }
6427
- function ci(e) {
6540
+ function vi(e) {
6428
6541
  return e["~standard"] = {
6429
6542
  version: 1,
6430
6543
  vendor: "valibot",
6431
- validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ ri())
6544
+ validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ pi())
6432
6545
  }, e;
6433
6546
  }
6434
6547
  /* @__NO_SIDE_EFFECTS__ */
6435
- function li(e, t, n) {
6548
+ function yi(e, t, n) {
6436
6549
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6437
6550
  }
6438
6551
  /* @__NO_SIDE_EFFECTS__ */
6439
- function ui(e, t, n) {
6552
+ function bi(e, t, n) {
6440
6553
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6441
6554
  }
6442
6555
  /* @__NO_SIDE_EFFECTS__ */
6443
- function di(e, t) {
6444
- return ci({
6556
+ function xi(e, t) {
6557
+ return vi({
6445
6558
  kind: "schema",
6446
6559
  type: "array",
6447
- reference: di,
6560
+ reference: xi,
6448
6561
  expects: "Array",
6449
6562
  async: !1,
6450
6563
  item: e,
@@ -6477,11 +6590,11 @@ function di(e, t) {
6477
6590
  });
6478
6591
  }
6479
6592
  /* @__NO_SIDE_EFFECTS__ */
6480
- function fi(e) {
6481
- return ci({
6593
+ function Si(e) {
6594
+ return vi({
6482
6595
  kind: "schema",
6483
6596
  type: "boolean",
6484
- reference: fi,
6597
+ reference: Si,
6485
6598
  expects: "boolean",
6486
6599
  async: !1,
6487
6600
  message: e,
@@ -6491,23 +6604,23 @@ function fi(e) {
6491
6604
  });
6492
6605
  }
6493
6606
  /* @__NO_SIDE_EFFECTS__ */
6494
- function pi(e, t) {
6495
- return ci({
6607
+ function Ci(e, t) {
6608
+ return vi({
6496
6609
  kind: "schema",
6497
6610
  type: "literal",
6498
- reference: pi,
6499
- expects: /* @__PURE__ */ ii(e),
6611
+ reference: Ci,
6612
+ expects: /* @__PURE__ */ mi(e),
6500
6613
  async: !1,
6501
6614
  literal: e,
6502
6615
  message: t,
6503
6616
  "~run"(e, t) {
6504
- return /* @__PURE__ */ ai(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6617
+ return /* @__PURE__ */ hi(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6505
6618
  }
6506
6619
  });
6507
6620
  }
6508
6621
  /* @__NO_SIDE_EFFECTS__ */
6509
6622
  function Z(e, t) {
6510
- return ci({
6623
+ return vi({
6511
6624
  kind: "schema",
6512
6625
  type: "nullable",
6513
6626
  reference: Z,
@@ -6516,16 +6629,16 @@ function Z(e, t) {
6516
6629
  wrapped: e,
6517
6630
  default: t,
6518
6631
  "~run"(e, t) {
6519
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ui(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6632
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ bi(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6520
6633
  }
6521
6634
  });
6522
6635
  }
6523
6636
  /* @__NO_SIDE_EFFECTS__ */
6524
- function mi(e) {
6525
- return ci({
6637
+ function wi(e) {
6638
+ return vi({
6526
6639
  kind: "schema",
6527
6640
  type: "number",
6528
- reference: mi,
6641
+ reference: wi,
6529
6642
  expects: "number",
6530
6643
  async: !1,
6531
6644
  message: e,
@@ -6535,26 +6648,26 @@ function mi(e) {
6535
6648
  });
6536
6649
  }
6537
6650
  /* @__NO_SIDE_EFFECTS__ */
6538
- function hi(e, t) {
6539
- return ci({
6651
+ function Ti(e, t) {
6652
+ return vi({
6540
6653
  kind: "schema",
6541
6654
  type: "optional",
6542
- reference: hi,
6655
+ reference: Ti,
6543
6656
  expects: `(${e.expects} | undefined)`,
6544
6657
  async: !1,
6545
6658
  wrapped: e,
6546
6659
  default: t,
6547
6660
  "~run"(e, t) {
6548
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ui(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6661
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ bi(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6549
6662
  }
6550
6663
  });
6551
6664
  }
6552
6665
  /* @__NO_SIDE_EFFECTS__ */
6553
- function gi(e, t, n) {
6554
- return ci({
6666
+ function Ei(e, t, n) {
6667
+ return vi({
6555
6668
  kind: "schema",
6556
6669
  type: "record",
6557
- reference: gi,
6670
+ reference: Ei,
6558
6671
  expects: "Object",
6559
6672
  async: !1,
6560
6673
  key: e,
@@ -6564,7 +6677,7 @@ function gi(e, t, n) {
6564
6677
  let n = e.value;
6565
6678
  if (n && typeof n == "object") {
6566
6679
  e.typed = !0, e.value = {};
6567
- for (let r in n) if (/* @__PURE__ */ oi(n, r)) {
6680
+ for (let r in n) if (/* @__PURE__ */ gi(n, r)) {
6568
6681
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6569
6682
  if (a.issues) {
6570
6683
  let o = {
@@ -6604,7 +6717,7 @@ function gi(e, t, n) {
6604
6717
  }
6605
6718
  /* @__NO_SIDE_EFFECTS__ */
6606
6719
  function Q(e, t) {
6607
- return ci({
6720
+ return vi({
6608
6721
  kind: "schema",
6609
6722
  type: "strict_object",
6610
6723
  reference: Q,
@@ -6619,7 +6732,7 @@ function Q(e, t) {
6619
6732
  for (let r in this.entries) {
6620
6733
  let i = this.entries[r];
6621
6734
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6622
- let a = r in n ? n[r] : /* @__PURE__ */ ui(i), o = i["~run"]({ value: a }, t);
6735
+ let a = r in n ? n[r] : /* @__PURE__ */ bi(i), o = i["~run"]({ value: a }, t);
6623
6736
  if (o.issues) {
6624
6737
  let i = {
6625
6738
  type: "object",
@@ -6635,7 +6748,7 @@ function Q(e, t) {
6635
6748
  }
6636
6749
  }
6637
6750
  o.typed || (e.typed = !1), e.value[r] = o.value;
6638
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ li(i);
6751
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ yi(i);
6639
6752
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
6640
6753
  input: void 0,
6641
6754
  expected: `"${r}"`,
@@ -6671,7 +6784,7 @@ function Q(e, t) {
6671
6784
  }
6672
6785
  /* @__NO_SIDE_EFFECTS__ */
6673
6786
  function $(e) {
6674
- return ci({
6787
+ return vi({
6675
6788
  kind: "schema",
6676
6789
  type: "string",
6677
6790
  reference: $,
@@ -6684,19 +6797,19 @@ function $(e) {
6684
6797
  });
6685
6798
  }
6686
6799
  /* @__NO_SIDE_EFFECTS__ */
6687
- function _i(e) {
6800
+ function Di(e) {
6688
6801
  let t;
6689
6802
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6690
6803
  else t = n.issues;
6691
6804
  return t;
6692
6805
  }
6693
6806
  /* @__NO_SIDE_EFFECTS__ */
6694
- function vi(e, t) {
6695
- return ci({
6807
+ function Oi(e, t) {
6808
+ return vi({
6696
6809
  kind: "schema",
6697
6810
  type: "union",
6698
- reference: vi,
6699
- expects: /* @__PURE__ */ si(e.map((e) => e.expects), "|"),
6811
+ reference: Oi,
6812
+ expects: /* @__PURE__ */ _i(e.map((e) => e.expects), "|"),
6700
6813
  async: !1,
6701
6814
  options: e,
6702
6815
  message: t,
@@ -6715,29 +6828,29 @@ function vi(e, t) {
6715
6828
  if (n) return n;
6716
6829
  if (r) {
6717
6830
  if (r.length === 1) return r[0];
6718
- X(this, "type", e, t, { issues: /* @__PURE__ */ _i(r) }), e.typed = !0;
6831
+ X(this, "type", e, t, { issues: /* @__PURE__ */ Di(r) }), e.typed = !0;
6719
6832
  } else if (i?.length === 1) return i[0];
6720
- else X(this, "type", e, t, { issues: /* @__PURE__ */ _i(i) });
6833
+ else X(this, "type", e, t, { issues: /* @__PURE__ */ Di(i) });
6721
6834
  return e;
6722
6835
  }
6723
6836
  });
6724
6837
  }
6725
- var yi = /* @__PURE__ */ Q({
6838
+ var ki = /* @__PURE__ */ Q({
6726
6839
  en: /* @__PURE__ */ $(),
6727
6840
  es: /* @__PURE__ */ $()
6728
- }), bi = {
6841
+ }), Ai = {
6729
6842
  id: /* @__PURE__ */ $(),
6730
6843
  label: /* @__PURE__ */ Q({
6731
- en: /* @__PURE__ */ hi(/* @__PURE__ */ $()),
6732
- es: /* @__PURE__ */ hi(/* @__PURE__ */ $())
6844
+ en: /* @__PURE__ */ Ti(/* @__PURE__ */ $()),
6845
+ es: /* @__PURE__ */ Ti(/* @__PURE__ */ $())
6733
6846
  }),
6734
6847
  description: /* @__PURE__ */ Q({
6735
- en: /* @__PURE__ */ hi(/* @__PURE__ */ $()),
6736
- es: /* @__PURE__ */ hi(/* @__PURE__ */ $())
6848
+ en: /* @__PURE__ */ Ti(/* @__PURE__ */ $()),
6849
+ es: /* @__PURE__ */ Ti(/* @__PURE__ */ $())
6737
6850
  }),
6738
6851
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6739
6852
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6740
- }, xi = (e) => /* @__PURE__ */ vi(e.map((e) => /* @__PURE__ */ pi(e))), Si = xi([
6853
+ }, ji = (e) => /* @__PURE__ */ Oi(e.map((e) => /* @__PURE__ */ Ci(e))), Mi = ji([
6741
6854
  "app",
6742
6855
  "connector",
6743
6856
  "connectorConnection",
@@ -6759,33 +6872,33 @@ var yi = /* @__PURE__ */ Q({
6759
6872
  "presenter",
6760
6873
  "presenterPresentation",
6761
6874
  "tool"
6762
- ]), Ci = xi([
6875
+ ]), Ni = ji([
6763
6876
  "danger",
6764
6877
  "success",
6765
6878
  "warning"
6766
- ]), wi = xi([
6879
+ ]), Pi = ji([
6767
6880
  "alpha",
6768
6881
  "beta",
6769
6882
  "releaseCandidate",
6770
6883
  "generalAvailability"
6771
- ]), Ti = /* @__PURE__ */ Q({
6772
- color: Ci,
6884
+ ]), Fi = /* @__PURE__ */ Q({
6885
+ color: Ni,
6773
6886
  label: /* @__PURE__ */ $()
6774
- }), Ei = {
6775
- ...bi,
6776
- typeId: Si
6777
- }, Di = /* @__PURE__ */ Q({
6778
- ...Ei,
6779
- order: /* @__PURE__ */ mi(),
6887
+ }), Ii = {
6888
+ ...Ai,
6889
+ typeId: Mi
6890
+ }, Li = /* @__PURE__ */ Q({
6891
+ ...Ii,
6892
+ order: /* @__PURE__ */ wi(),
6780
6893
  path: /* @__PURE__ */ $()
6781
- }), Oi = {
6782
- ...Ei,
6783
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ mi()),
6784
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ mi()),
6785
- status: /* @__PURE__ */ Z(Ti),
6786
- statusId: /* @__PURE__ */ Z(wi)
6894
+ }), Ri = {
6895
+ ...Ii,
6896
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ wi()),
6897
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ wi()),
6898
+ status: /* @__PURE__ */ Z(Fi),
6899
+ statusId: /* @__PURE__ */ Z(Pi)
6787
6900
  };
6788
- ({ ...Oi }), xi([
6901
+ ({ ...Ri }), ji([
6789
6902
  "app",
6790
6903
  "engine",
6791
6904
  "connector",
@@ -6795,17 +6908,17 @@ var yi = /* @__PURE__ */ Q({
6795
6908
  ]);
6796
6909
  //#endregion
6797
6910
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-aYmFWSrn.js
6798
- var ki = {
6799
- ...Oi,
6911
+ var zi = {
6912
+ ...Ri,
6800
6913
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6801
6914
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6802
6915
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6803
6916
  version: /* @__PURE__ */ $()
6804
6917
  };
6805
- ({ ...ki });
6918
+ ({ ...zi });
6806
6919
  //#endregion
6807
6920
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6808
- var Ai = xi([
6921
+ var Bi = ji([
6809
6922
  "abortOperation",
6810
6923
  "auditObjectContent",
6811
6924
  "createObject",
@@ -6821,39 +6934,39 @@ var Ai = xi([
6821
6934
  "retrieveChunks",
6822
6935
  "retrieveRecords",
6823
6936
  "upsertRecords"
6824
- ]), ji = xi([
6937
+ ]), Vi = ji([
6825
6938
  "application",
6826
6939
  "curatedDataset",
6827
6940
  "database",
6828
6941
  "fileStore"
6829
- ]), Mi = /* @__PURE__ */ Q({ label: yi }), Ni = xi([
6942
+ ]), Hi = /* @__PURE__ */ Q({ label: ki }), Ui = ji([
6830
6943
  "bidirectional",
6831
6944
  "destination",
6832
6945
  "source",
6833
6946
  "unknown"
6834
- ]), Pi = /* @__PURE__ */ Q({ label: yi }), Fi = /* @__PURE__ */ Q({
6835
- authMethodId: xi([
6947
+ ]), Wi = /* @__PURE__ */ Q({ label: ki }), Gi = /* @__PURE__ */ Q({
6948
+ authMethodId: ji([
6836
6949
  "apiKey",
6837
6950
  "disabled",
6838
6951
  "oAuth2",
6839
6952
  "none"
6840
6953
  ]),
6841
- activeConnectionCount: /* @__PURE__ */ hi(/* @__PURE__ */ mi()),
6842
- canDescribe: /* @__PURE__ */ hi(/* @__PURE__ */ fi()),
6843
- id: /* @__PURE__ */ hi(/* @__PURE__ */ $()),
6844
- label: /* @__PURE__ */ hi(yi),
6845
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ mi()),
6846
- params: /* @__PURE__ */ hi(/* @__PURE__ */ di(/* @__PURE__ */ gi(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6847
- }), Ii = /* @__PURE__ */ Q({
6848
- ...ki,
6849
- typeId: /* @__PURE__ */ pi("connector"),
6850
- actionNames: /* @__PURE__ */ di(Ai),
6851
- category: /* @__PURE__ */ Z(Mi),
6852
- categoryId: ji,
6853
- implementations: /* @__PURE__ */ gi(/* @__PURE__ */ $(), Fi),
6854
- usage: /* @__PURE__ */ Z(Pi),
6855
- usageId: /* @__PURE__ */ Z(Ni)
6856
- }), Li = {
6954
+ activeConnectionCount: /* @__PURE__ */ Ti(/* @__PURE__ */ wi()),
6955
+ canDescribe: /* @__PURE__ */ Ti(/* @__PURE__ */ Si()),
6956
+ id: /* @__PURE__ */ Ti(/* @__PURE__ */ $()),
6957
+ label: /* @__PURE__ */ Ti(ki),
6958
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ wi()),
6959
+ params: /* @__PURE__ */ Ti(/* @__PURE__ */ xi(/* @__PURE__ */ Ei(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6960
+ }), Ki = /* @__PURE__ */ Q({
6961
+ ...zi,
6962
+ typeId: /* @__PURE__ */ Ci("connector"),
6963
+ actionNames: /* @__PURE__ */ xi(Bi),
6964
+ category: /* @__PURE__ */ Z(Hi),
6965
+ categoryId: Vi,
6966
+ implementations: /* @__PURE__ */ Ei(/* @__PURE__ */ $(), Gi),
6967
+ usage: /* @__PURE__ */ Z(Wi),
6968
+ usageId: /* @__PURE__ */ Z(Ui)
6969
+ }), qi = {
6857
6970
  abortOperation: "Abort Operation",
6858
6971
  auditObjectContent: "Audit Object Content",
6859
6972
  createObject: "Create Object",
@@ -6869,12 +6982,12 @@ var Ai = xi([
6869
6982
  retrieveChunks: "Retrieve Chunks",
6870
6983
  retrieveRecords: "Retrieve Records",
6871
6984
  upsertRecords: "Upsert Records"
6872
- }, Ri = /* @__PURE__ */ new Set([
6985
+ }, Ji = /* @__PURE__ */ new Set([
6873
6986
  "createObject",
6874
6987
  "dropObject",
6875
6988
  "removeRecords",
6876
6989
  "upsertRecords"
6877
- ]), zi = /* @__PURE__ */ new Set([
6990
+ ]), Yi = /* @__PURE__ */ new Set([
6878
6991
  "auditObjectContent",
6879
6992
  "findObject",
6880
6993
  "getInfo",
@@ -6885,57 +6998,57 @@ var Ai = xi([
6885
6998
  "retrieveChunks",
6886
6999
  "retrieveRecords"
6887
7000
  ]);
6888
- function Bi(e) {
7001
+ function Xi(e) {
6889
7002
  let t = !1, n = !1;
6890
- for (let r of e) zi.has(r) && (t = !0), Ri.has(r) && (n = !0);
7003
+ for (let r of e) Yi.has(r) && (t = !0), Ji.has(r) && (n = !0);
6891
7004
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6892
7005
  }
6893
- function Vi(e) {
7006
+ function Zi(e) {
6894
7007
  let t = new Set(e), n = "|Action|Supported|\n";
6895
7008
  n += "|:----|:-------:|\n";
6896
- for (let e of Object.keys(Li)) n += `| ${Li[e]} | ${t.has(e) ? "✓" : ""} |\n`;
7009
+ for (let e of Object.keys(qi)) n += `| ${qi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6897
7010
  return n;
6898
7011
  }
6899
7012
  //#endregion
6900
7013
  //#region src/actions/documentActions.ts
6901
- var Hi = "<!-- CONNECTOR_ACTIONS_START -->", Ui = "<!-- CONNECTOR_ACTIONS_END -->", Wi = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Gi = {
7014
+ var Qi = "<!-- CONNECTOR_ACTIONS_START -->", $i = "<!-- CONNECTOR_ACTIONS_END -->", ea = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", ta = {
6902
7015
  source: "This connector is a Source connector that supports only read actions. Connectors can also function as a Destination (write-only) or Bidirectional (read/write), depending on the actions they support.",
6903
7016
  destination: "This connector is a Destination connector that supports only write actions. Connectors can also function as a Source (read-only) or Bidirectional (read/write), depending on the actions they support.",
6904
7017
  bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support.",
6905
7018
  unknown: "This connector does not yet implement any read or write actions, so its type cannot be determined. Connectors function as a Source (read-only), a Destination (write-only), or Bidirectional (read/write), depending on the actions they support."
6906
- }, Ki = "The table below lists all connector actions and highlights those supported by this connector.";
6907
- async function qi() {
7019
+ }, na = "The table below lists all connector actions and highlights those supported by this connector.";
7020
+ async function ra() {
6908
7021
  try {
6909
- K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6910
- let e = (await G("config.json")).actionNames ?? [], t = Bi(e), n = Vi(e);
6911
- await zn(`${Wi}\n\n${Gi[t]} ${Ki}\n\n${n}`, Hi, Ui), q("Actions documented");
7022
+ G("Document Actions"), q("1️⃣ Insert actions description and table into 'README.md'");
7023
+ let e = (await W("config.json")).actionNames ?? [], t = Xi(e), n = Zi(e);
7024
+ await Bn(`${ea}\n\n${ta[t]} ${na}\n\n${n}`, Qi, $i), K("Actions documented");
6912
7025
  } catch (e) {
6913
7026
  console.error("❌ Error documenting actions", e), process.exit(1);
6914
7027
  }
6915
7028
  }
6916
7029
  //#endregion
6917
7030
  //#region src/actions/documentOpening.ts
6918
- var Ji = "<!-- OPENING_START -->", Yi = "<!-- OPENING_END -->";
6919
- async function Xi() {
7031
+ var ia = "<!-- OPENING_START -->", aa = "<!-- OPENING_END -->";
7032
+ async function oa() {
6920
7033
  try {
6921
- K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6922
- let e = await G("package.json"), t = await G("config.json"), { owner: n, repo: r } = Hn(e, "document opening");
6923
- await zn($i(n, r, Zi(e), Qi(t)), Ji, Yi), q("Opening documented");
7034
+ G("Document Opening"), q("1️⃣ Insert opening content into 'README.md'");
7035
+ let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Un(e, "document opening");
7036
+ await Bn(la(n, r, sa(e), ca(t)), ia, aa), K("Opening documented");
6924
7037
  } catch (e) {
6925
7038
  console.error("❌ Error documenting opening", e), process.exit(1);
6926
7039
  }
6927
7040
  }
6928
- function Zi(e) {
7041
+ function sa(e) {
6929
7042
  let t = e.license;
6930
7043
  if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6931
7044
  return t;
6932
7045
  }
6933
- function Qi(e) {
7046
+ function ca(e) {
6934
7047
  let t = e.description.en;
6935
7048
  if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6936
7049
  return t;
6937
7050
  }
6938
- function $i(e, t, n, r) {
7051
+ function la(e, t, n, r) {
6939
7052
  let i = `https://github.com/${e}/${t}`;
6940
7053
  return `[![License: ${n}](https://img.shields.io/badge/License-${n.replaceAll("-", "--")}-blue.svg)](./LICENSE)
6941
7054
  [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
@@ -6963,31 +7076,31 @@ ${r}`;
6963
7076
  }
6964
7077
  //#endregion
6965
7078
  //#region src/actions/documentUsage.ts
6966
- var ea = "<!-- USAGE_START -->", ta = "<!-- USAGE_END -->";
6967
- async function na() {
7079
+ var ua = "<!-- USAGE_START -->", da = "<!-- USAGE_END -->";
7080
+ async function fa() {
6968
7081
  try {
6969
- K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6970
- let e = await G("package.json"), t = ra(e);
6971
- await zn(oa(t, ia(t), aa(e.engines?.node), aa(e.engines?.npm), aa(e.devDependencies?.typescript)), ea, ta), q("Usage documented");
7082
+ G("Document Usage"), q("1️⃣ Insert usage content into 'README.md'");
7083
+ let e = await W("package.json"), t = pa(e);
7084
+ await Bn(ga(t, ma(t), ha(e.engines?.node), ha(e.engines?.npm), ha(e.devDependencies?.typescript)), ua, da), K("Usage documented");
6972
7085
  } catch (e) {
6973
7086
  console.error("❌ Error documenting usage", e), process.exit(1);
6974
7087
  }
6975
7088
  }
6976
- function ra(e) {
7089
+ function pa(e) {
6977
7090
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6978
7091
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6979
7092
  return n.replace(/^git\+/, "");
6980
7093
  }
6981
- function ia(e) {
7094
+ function ma(e) {
6982
7095
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6983
7096
  }
6984
- function aa(e) {
7097
+ function ha(e) {
6985
7098
  if (e == null) throw Error("package.json version range is required to document usage.");
6986
7099
  let t = /\d+(?:\.\d+)*/.exec(e);
6987
7100
  if (t == null) throw Error(`Unable to parse version from '${e}'.`);
6988
7101
  return t[0];
6989
7102
  }
6990
- function oa(e, t, n, r, i) {
7103
+ function ga(e, t, n, r, i) {
6991
7104
  return `This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
6992
7105
 
6993
7106
  You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
@@ -7002,43 +7115,43 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
7002
7115
  }
7003
7116
  //#endregion
7004
7117
  //#region src/actions/formatCode.ts
7005
- async function sa() {
7118
+ async function _a() {
7006
7119
  try {
7007
- K("Format Code"), await W("1️⃣ Format", "prettier", [
7120
+ G("Format Code"), await U("1️⃣ Format", "prettier", [
7008
7121
  "--write",
7009
7122
  "*.json",
7010
7123
  "*.md",
7011
7124
  "*.ts",
7012
7125
  ...["app", "src"].filter((t) => e(t)).map((e) => `${e}/**`)
7013
- ]), q("Code formatted");
7126
+ ]), K("Code formatted");
7014
7127
  } catch (e) {
7015
7128
  console.error("❌ Error formatting code", e), process.exit(1);
7016
7129
  }
7017
7130
  }
7018
7131
  //#endregion
7019
7132
  //#region src/actions/lintCode.ts
7020
- async function ca() {
7133
+ async function va() {
7021
7134
  try {
7022
- K("Lint Code"), await W("1️⃣ Lint", "eslint", ["."]), q("Code linted");
7135
+ G("Lint Code"), await U("1️⃣ Lint", "eslint", ["."]), K("Code linted");
7023
7136
  } catch (e) {
7024
7137
  console.error("❌ Error linting code", e), process.exit(1);
7025
7138
  }
7026
7139
  }
7027
7140
  //#endregion
7028
7141
  //#region src/utilities/cloudflare.ts
7029
- async function la() {
7030
- let e = await G("config.json"), t = {
7142
+ async function ya() {
7143
+ let e = await W("config.json"), t = {
7031
7144
  body: JSON.stringify(e),
7032
7145
  headers: { "Content-Type": "application/json" },
7033
7146
  method: "PUT"
7034
7147
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
7035
7148
  if (!n.ok) throw Error(await n.text());
7036
7149
  }
7037
- async function ua(e, t) {
7150
+ async function ba(e, t) {
7038
7151
  async function n(e, t, r) {
7039
7152
  for (let i of r) {
7040
7153
  let r = `${e}/${i}`, a = `${t}/${i}`;
7041
- (await Un(r)).isDirectory() ? await n(r, a, await Nn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Pn(void 0, "wrangler", [
7154
+ (await Wn(r)).isDirectory() ? await n(r, a, await Pn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Fn(void 0, "wrangler", [
7042
7155
  "r2",
7043
7156
  "object",
7044
7157
  "put",
@@ -7049,10 +7162,10 @@ async function ua(e, t) {
7049
7162
  ]));
7050
7163
  }
7051
7164
  }
7052
- let r = await Nn(`${e}/${t}/`);
7165
+ let r = await Pn(`${e}/${t}/`);
7053
7166
  await n(`${e}/${t}`, t, r);
7054
7167
  }
7055
- async function da(e) {
7168
+ async function xa(e) {
7056
7169
  let t = e.id, n = {
7057
7170
  body: JSON.stringify(e),
7058
7171
  headers: { "Content-Type": "application/json" },
@@ -7060,14 +7173,14 @@ async function da(e) {
7060
7173
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
7061
7174
  if (!r.ok) throw Error(await r.text());
7062
7175
  }
7063
- async function fa(e, t) {
7176
+ async function Sa(e, t) {
7064
7177
  let n = `v${e.version ?? "unknown"}`;
7065
7178
  async function r(e, r = "") {
7066
- let i = await Nn(e, { withFileTypes: !0 });
7179
+ let i = await Pn(e, { withFileTypes: !0 });
7067
7180
  for (let a of i) {
7068
7181
  if (a.isDirectory() || a.name.endsWith(".map")) continue;
7069
7182
  let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = a.name.endsWith(".css") ? "text/css" : "application/octet-stream", l = a.name.endsWith(".js") ? "application/javascript" : c;
7070
- console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Pn(void 0, "wrangler", [
7183
+ console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Fn(void 0, "wrangler", [
7071
7184
  "r2",
7072
7185
  "object",
7073
7186
  "put",
@@ -7084,24 +7197,24 @@ async function fa(e, t) {
7084
7197
  }
7085
7198
  //#endregion
7086
7199
  //#region node_modules/valibot/dist/index.mjs
7087
- var pa = {
7200
+ var Ca = {
7088
7201
  lang: void 0,
7089
7202
  message: void 0,
7090
7203
  abortEarly: void 0,
7091
7204
  abortPipeEarly: void 0
7092
7205
  };
7093
7206
  /* @__NO_SIDE_EFFECTS__ */
7094
- function ma(e) {
7207
+ function wa(e) {
7095
7208
  return e ? {
7096
7209
  lang: e?.lang ?? void 0,
7097
7210
  message: e?.message,
7098
7211
  abortEarly: e?.abortEarly ?? void 0,
7099
7212
  abortPipeEarly: e?.abortPipeEarly ?? void 0
7100
- } : pa;
7213
+ } : Ca;
7101
7214
  }
7102
7215
  /* @__NO_SIDE_EFFECTS__ */
7103
- function ha(e, t, n) {
7104
- let r = e["~run"]({ value: t }, /* @__PURE__ */ ma(n));
7216
+ function Ta(e, t, n) {
7217
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ wa(n));
7105
7218
  return {
7106
7219
  typed: r.typed,
7107
7220
  success: !r.issues,
@@ -7111,21 +7224,21 @@ function ha(e, t, n) {
7111
7224
  }
7112
7225
  //#endregion
7113
7226
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
7114
- var ga = xi([
7227
+ var Ea = ji([
7115
7228
  "list",
7116
7229
  "render",
7117
7230
  "setColorMode"
7118
- ]), _a = /* @__PURE__ */ Q({
7119
- ...ki,
7120
- typeId: /* @__PURE__ */ pi("presenter"),
7121
- actionNames: /* @__PURE__ */ di(ga),
7122
- presentations: /* @__PURE__ */ di(Di)
7123
- }), va = [
7231
+ ]), Da = /* @__PURE__ */ Q({
7232
+ ...zi,
7233
+ typeId: /* @__PURE__ */ Ci("presenter"),
7234
+ actionNames: /* @__PURE__ */ xi(Ea),
7235
+ presentations: /* @__PURE__ */ xi(Li)
7236
+ }), Oa = [
7124
7237
  "1️⃣ ",
7125
7238
  "2️⃣ ",
7126
7239
  "3️⃣ ",
7127
7240
  "4️⃣ "
7128
- ], ya = [{
7241
+ ], ka = [{
7129
7242
  id: "unit",
7130
7243
  label: "Run unit tests",
7131
7244
  command: "vitest",
@@ -7138,46 +7251,46 @@ var ga = xi([
7138
7251
  arguments: ["test", "--pass-with-no-tests"],
7139
7252
  configFileName: "playwright.config.ts"
7140
7253
  }];
7141
- async function ba() {
7254
+ async function Aa() {
7142
7255
  try {
7143
- K("Build Project"), await W("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7256
+ G("Build Project"), await U("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
7144
7257
  } catch (e) {
7145
7258
  console.error("❌ Error building project", e), process.exit(1);
7146
7259
  }
7147
7260
  }
7148
- async function xa() {
7261
+ async function ja() {
7149
7262
  try {
7150
- K("Publish Project");
7151
- let e = await G("package.json"), t = await G("config.json");
7152
- await Aa("1️⃣ ", e, t, Vn(t.id)), q(`Project version '${e.version ?? "unknown"}' published.`);
7263
+ G("Publish Project");
7264
+ let e = await W("package.json"), t = await W("config.json");
7265
+ await Ba("1️⃣ ", e, t, Hn(t.id)), K(`Project version '${e.version ?? "unknown"}' published.`);
7153
7266
  } catch (e) {
7154
7267
  console.error("❌ Error publishing project", e), process.exit(1);
7155
7268
  }
7156
7269
  }
7157
- async function Sa() {
7270
+ async function Ma() {
7158
7271
  try {
7159
- K("Release Project");
7160
- let e = await G("package.json"), t = await G("config.json");
7161
- await ka("1️⃣ ", e);
7162
- let n = Vn(t.id);
7272
+ G("Release Project");
7273
+ let e = await W("package.json"), t = await W("config.json");
7274
+ await za("1️⃣ ", e);
7275
+ let n = Hn(t.id);
7163
7276
  switch (n.typeId) {
7164
7277
  case "connector":
7165
- t = await wa("2️⃣ ", e);
7278
+ t = await Pa("2️⃣ ", e);
7166
7279
  break;
7167
7280
  case "presenter":
7168
- t = await Ta("2️⃣ ", e);
7281
+ t = await Fa("2️⃣ ", e);
7169
7282
  break;
7170
- default: t = await Ca("2️⃣ ", e);
7283
+ default: t = await Na("2️⃣ ", e);
7171
7284
  }
7172
- await W("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7285
+ await U("3️⃣ Bundle project", "vite", ["build"]), await Fn("4️⃣ Stage changes", "git", ["add", "."]), await Fn("5️⃣ Commit changes", "git", [
7173
7286
  "commit",
7174
7287
  "-m",
7175
7288
  `v${e.version ?? "unknown"}`
7176
- ]), await Pn("6️⃣ Push changes", "git", [
7289
+ ]), await Fn("6️⃣ Push changes", "git", [
7177
7290
  "push",
7178
7291
  "origin",
7179
7292
  "main:main"
7180
- ]), await Aa("7️⃣ ", e, t, n), n.publishedTo === "npm" ? await W("8️⃣ Create GitHub release", "gh", [
7293
+ ]), await Ba("7️⃣ ", e, t, n), n.publishedTo === "npm" ? await U("8️⃣ Create GitHub release", "gh", [
7181
7294
  "release",
7182
7295
  "create",
7183
7296
  `v${e.version ?? "unknown"}`,
@@ -7185,95 +7298,95 @@ async function Sa() {
7185
7298
  "main",
7186
7299
  "--generate-notes",
7187
7300
  "--latest"
7188
- ]) : J(`8️⃣ Publishing NOT required for package with type identifier of '${n.typeId}'.`), q(`Project version '${e.version ?? "unknown"}' released.`);
7301
+ ]) : q(`8️⃣ Publishing NOT required for package with type identifier of '${n.typeId}'.`), K(`Project version '${e.version ?? "unknown"}' released.`);
7189
7302
  } catch (e) {
7190
7303
  console.error("❌ Error releasing project", e), process.exit(1);
7191
7304
  }
7192
7305
  }
7193
- async function Ca(e, t) {
7194
- J(`${e} Build project configuration`);
7195
- let n = await G("config.json");
7196
- return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await Ln("logo.svg"), n.iconDark ??= await Ln("logoDark.svg"), await Rn("config.json", n), n;
7306
+ async function Na(e, t) {
7307
+ q(`${e} Build project configuration`);
7308
+ let n = await W("config.json");
7309
+ return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await Rn("logo.svg"), n.iconDark ??= await Rn("logoDark.svg"), await zn("config.json", n), n;
7197
7310
  }
7198
- async function wa(e, t) {
7199
- J(`${e} Build connector project configuration`);
7200
- let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ha(Ii, n);
7311
+ async function Pa(e, t) {
7312
+ q(`${e} Build connector project configuration`);
7313
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ta(Ki, n);
7201
7314
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7202
- let a = Wn(r);
7203
- return await Ea(t, n, a, Bi(a));
7315
+ let a = Gn(r);
7316
+ return await Ia(t, n, a, Xi(a));
7204
7317
  }
7205
- async function Ta(e, t) {
7206
- J(`${e} Build presenter project configuration`);
7207
- let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ha(_a, n);
7318
+ async function Fa(e, t) {
7319
+ q(`${e} Build presenter project configuration`);
7320
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ta(Da, n);
7208
7321
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7209
- return await Ea(t, n, Wn(r));
7322
+ return await Ia(t, n, Gn(r));
7210
7323
  }
7211
- async function Ea(e, t, n, r) {
7212
- return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await Rn("config.json", t), t;
7324
+ async function Ia(e, t, n, r) {
7325
+ return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await zn("config.json", t), t;
7213
7326
  }
7214
- async function Da() {
7327
+ async function La() {
7215
7328
  try {
7216
- K("Synchronise Project with GitHub");
7217
- let e = await G("package.json"), t = await G("config.json");
7218
- switch (await ka("1️⃣ ", e), Vn(t.id).typeId) {
7329
+ G("Synchronise Project with GitHub");
7330
+ let e = await W("package.json"), t = await W("config.json");
7331
+ switch (await za("1️⃣ ", e), Hn(t.id).typeId) {
7219
7332
  case "connector":
7220
- await wa("2️⃣ ", e);
7333
+ await Pa("2️⃣ ", e);
7221
7334
  break;
7222
7335
  case "presenter":
7223
- await Ta("2️⃣ ", e);
7336
+ await Fa("2️⃣ ", e);
7224
7337
  break;
7225
- default: await Ca("2️⃣ ", e);
7338
+ default: await Na("2️⃣ ", e);
7226
7339
  }
7227
- await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7340
+ await Fn("3️⃣ Stage changes", "git", ["add", "."]), await Fn("4️⃣ Commit changes", "git", [
7228
7341
  "commit",
7229
7342
  "-m",
7230
7343
  `v${e.version ?? "unknown"}`
7231
- ]), await Pn("5️⃣ Push changes", "git", [
7344
+ ]), await Fn("5️⃣ Push changes", "git", [
7232
7345
  "push",
7233
7346
  "origin",
7234
7347
  "main:main"
7235
- ]), q(`Project version '${e.version ?? "unknown"}' synchronised with GitHub.`);
7348
+ ]), K(`Project version '${e.version ?? "unknown"}' synchronised with GitHub.`);
7236
7349
  } catch (e) {
7237
7350
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7238
7351
  }
7239
7352
  }
7240
- async function Oa(e = ["unit"], t = !1) {
7353
+ async function Ra(e = ["unit"], t = !1) {
7241
7354
  try {
7242
- K("Test Project");
7355
+ G("Test Project");
7243
7356
  let n = 0;
7244
- for (let r of ya) {
7245
- if (!e.includes(r.id) || await Ln(r.configFileName) === null) continue;
7357
+ for (let r of ka) {
7358
+ if (!e.includes(r.id) || await Rn(r.configFileName) === null) continue;
7246
7359
  let i = t && r.id === "unit" ? ["--coverage"] : [];
7247
- await W(`${va[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7360
+ await U(`${Oa[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7248
7361
  }
7249
7362
  if (n === 0) {
7250
7363
  console.warn("\n⚠️ No tests configured for this project.\n");
7251
7364
  return;
7252
7365
  }
7253
- q("Project tested");
7366
+ K("Project tested");
7254
7367
  } catch (e) {
7255
7368
  console.error("❌ Error testing project", e), process.exit(1);
7256
7369
  }
7257
7370
  }
7258
- async function ka(e, t, n = "./") {
7259
- if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7371
+ async function za(e, t, n = "./") {
7372
+ if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7260
7373
  else {
7261
7374
  let e = t.version, n = t.version.split(".");
7262
7375
  t.version = `${n[0] ?? "unknown"}.${n[1] ?? "unknown"}.${String(Number(n[2]) + 1)}`, console.info(`Project version bumped from '${e}' to '${t.version}'.`);
7263
7376
  }
7264
- await Rn(`${n}package.json`, t);
7377
+ await zn(`${n}package.json`, t);
7265
7378
  }
7266
- async function Aa(e, t, n, r) {
7267
- if (r.typeId === "app") J(`${e} Register module`), await la();
7268
- else if (r.typeId === "engine") J(`${e} Register module`), await fa(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await da(n);
7269
- else if (r.uploadGroupName === void 0) J(`${e} Registration NOT required`);
7379
+ async function Ba(e, t, n, r) {
7380
+ if (r.typeId === "app") q(`${e} Register module`), await ya();
7381
+ else if (r.typeId === "engine") q(`${e} Register module`), await Sa(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await xa(n);
7382
+ else if (r.uploadGroupName === void 0) q(`${e} Registration NOT required`);
7270
7383
  else {
7271
- J(`${e} Register module`);
7384
+ q(`${e} Register module`);
7272
7385
  let i = n.id.split("-").slice(2).join("-");
7273
- await fa(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await da(n);
7386
+ await Sa(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await xa(n);
7274
7387
  }
7275
7388
  }
7276
7389
  //#endregion
7277
- export { qn as auditDependencies, ba as buildProject, Jn as checkConfigFiles, tr as checkDependencies, qi as documentActions, ur as documentBundleSizes, Mr as documentDependencies, Yr as documentGovernance, Xi as documentOpening, na as documentUsage, sa as formatCode, ca as lintCode, xa as publishProject, Sa as releaseProject, Da as syncProjectWithGitHub, Oa as testProject, ua as uploadDirectoryToR2 };
7390
+ export { Jn as auditDependencies, Aa as buildProject, Yn as checkConfigFiles, nr as checkDependencies, ra as documentActions, dr as documentBundleSizes, Nr as documentDependencies, ei as documentGovernance, oa as documentOpening, fa as documentUsage, _a as formatCode, va as lintCode, ja as publishProject, Ma as releaseProject, La as syncProjectWithGitHub, Ra as testProject, ba as uploadDirectoryToR2 };
7278
7391
 
7279
7392
  //# sourceMappingURL=dpuse-development.es.js.map